This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: GNU AS bug?
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Ben Elliston <bje at wasabisystems dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 10 Jun 2003 18:52:25 +0930
- Subject: Re: GNU AS bug?
- References: <3ED9DCFA.28598.587917@localhost><20030602140838.GB25578@bubble.sa.bigpond.net.au><87d6ht49gz.fsf@sashimi.wasabisystems.com>
On Thu, Jun 05, 2003 at 11:08:28AM +1000, Ben Elliston wrote:
> Alan Modra <amodra@bigpond.net.au> writes:
> > Fixed with this patch.
>
> How about a regression test case, Alan?
Hey, I thought you maintained the test suite?
gas/testsuite/ChangeLog
* gas/macros/and.s: New.
* gas/macros/macros.exp: Assemble it.
Index: gas/testsuite/gas/macros/and.s
===================================================================
RCS file: gas/testsuite/gas/macros/and.s
diff -N gas/testsuite/gas/macros/and.s
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ gas/testsuite/gas/macros/and.s 10 Jun 2003 09:19:20 -0000
@@ -0,0 +1,9 @@
+ .set TFLAG_C, 1
+
+ .macro check
+ .if (0 & TFLAG_C)
+ .endif
+ .endm
+
+ .text
+ check
Index: gas/testsuite/gas/macros/macros.exp
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/macros/macros.exp,v
retrieving revision 1.14
diff -u -p -r1.14 macros.exp
--- gas/testsuite/gas/macros/macros.exp 13 May 2003 01:57:10 -0000 1.14
+++ gas/testsuite/gas/macros/macros.exp 10 Jun 2003 09:16:22 -0000
@@ -18,6 +18,8 @@ if { ![istarget *c54x*-*-*] && ![istarge
gas_test_error "err.s" "" "macro infinite recursion"
+gas_test "and.s" "" "" "logical and in macro definition"
+
case $target_triplet in {
{ hppa*-*-* } { if [istarget *-*-linux*] { run_dump_test semi } }
{ *c4x*-*-* } { }
--
Alan Modra
IBM OzLabs - Linux Technology Centre