Fix gas's 'macro count' test for various targets

This commit is contained in:
Nick Clifton
2024-05-14 15:30:52 +01:00
parent 414aa6987f
commit b9a16391e8
2 changed files with 15 additions and 10 deletions

View File

@@ -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':

View File

@@ -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