This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] gas: require an operand to .startof.()/.sizeof.()


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]