This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] gas: require an operand to .startof.()/.sizeof.()
- From: Hans-Peter Nilsson <hans-peter dot nilsson at axis dot com>
- To: JBeulich at suse dot com
- Cc: binutils at sourceware dot org
- Date: Wed, 22 Feb 2017 14:22:56 +0100
- Subject: Re: [PATCH] gas: require an operand to .startof.()/.sizeof.()
- Authentication-results: sourceware.org; auth=none
> Date: Tue, 21 Feb 2017 03:15:10 -0700
> From: "Jan Beulich" <JBeulich@suse.com>
> gas/
> 2017-02-21 Jan Beulich <jbeulich@suse.com>
>
> * expr.c (operand): Handle missing operand to .startof.() and
> .sizeof.().
> * testsuite/gas/all/err-sizeof.s: New.
Target is cris-axis-linux-gnu
Target is cris-axis-elf
Host is x86_64-pc-linux-gnu but compiling with -m32 (unknown if
that matters, but please consider your undoubtedly large list of
targets tested for your patches).
Running /tmp/hpautotest-binutils/bsrc/src/gas/testsuite/gas/all/gas.exp ...
FAIL: gas/all/err-sizeof.s (test for excess errors)
gas.log:
FAIL: gas/all/err-sizeof.s (test for excess errors)
Excess errors:
/tmp/hpautotest-binutils/bsrc/src/gas/testsuite/gas/all//err-sizeof.s:6: Error: expression too complex
Committed:
gas/
* testsuite/gas/all/err-sizeof.s: Include cris*-*-* in the list of
targets yielding an error message matching "too complex".
diff --git a/gas/testsuite/gas/all/err-sizeof.s b/gas/testsuite/gas/all/err-sizeof.s
index 4ddb5bd..457856b 100644
--- a/gas/testsuite/gas/all/err-sizeof.s
+++ b/gas/testsuite/gas/all/err-sizeof.s
@@ -16,6 +16,6 @@
;# { dg-error "UND" "undefined" { target *-*-* } 5 }
;# { dg-error "junk at end" "junk" { target *-*-* } 6 }
;# { dg-error "UND" "undefined" { target *-*-* } 6 }
-;# { dg-error "too complex" "too complex" { target powerpc*-*-* } 6 }
+;# { dg-error "too complex" "too complex" { target powerpc*-*-* cris*-*-* } 6 }
;# { dg-warning "zero assumed" "missing" { target *-*-* } 9 }
;# { dg-warning "zero assumed" "missing" { target *-*-* } 10 }
brgds, H-P