diff options
author | Nick Clifton <nickc@redhat.com> | 2024-05-14 15:30:52 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2024-05-14 15:30:52 +0100 |
commit | b9a16391e8fa89cb986b0788040f59cb8a089e81 (patch) | |
tree | ecb0d0ac007532d409641a282ce86d83cc566304 /gas | |
parent | 414aa6987f21a814851e5f3113388a3616993fa3 (diff) | |
download | binutils-b9a16391e8fa89cb986b0788040f59cb8a089e81.zip binutils-b9a16391e8fa89cb986b0788040f59cb8a089e81.tar.gz binutils-b9a16391e8fa89cb986b0788040f59cb8a089e81.tar.bz2 |
Fix gas's 'macro count' test for various targets
Diffstat (limited to 'gas')
-rw-r--r-- | gas/app.c | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/macros/count.s | 20 |
2 files changed, 15 insertions, 10 deletions
@@ -686,6 +686,11 @@ do_scrub_chars (size_t (*get) (char *, size_t), char *tostart, size_t tolen) PUT (quotechar); continue; + /* These two are used inside macros. */ + case '@': + case '+': + break; + case '"': case '\\': case 'b': diff --git a/gas/testsuite/gas/macros/count.s b/gas/testsuite/gas/macros/count.s index 650a416..c752ca8 100644 --- a/gas/testsuite/gas/macros/count.s +++ b/gas/testsuite/gas/macros/count.s @@ -1,19 +1,19 @@ -.macro mac1 count=10 + .macro mac1 count .print "\@" .print "\+" -.if \count > 1 + .if \count > 1 mac1 \count-1 -.endif -.endm + .endif + .endm -.macro mac2 count=100 + .macro mac2 count .print "\@" .print "\+" -.if \count > 1 + .if \count > 1 mac2 \count-1 -.endif -.endm + .endif + .endm -mac1 2 -mac2 3 + mac1 2 + mac2 3 |