From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Carlsson To: Hans-Peter Nilsson Cc: binutils@sourceware.cygnus.com Subject: Re: gas macro arguments or escapes botched, perhaps related to ONLY_STANDARD_ESCAPES Date: Thu, 29 Jun 2000 03:52:00 -0000 Message-id: <14683.10776.989895.971418@calypso.engr.sgi.com> References: <200006291038.MAA24144@ignucius.axis.se> X-SW-Source: 2000-06/msg00584.html Hi Hans-Peter, > Targets that define ONLY_STANDARD_ESCAPES find themselves failing > the gas test "strings" in gas/testsuite/gas/macros/macros.exp. The > only target in CVS that does this is currently avr, which might > explain why the failure slipped through everyones extensive > testsuite runs. The problem is not an invalid testcase. ONLY_STANDARD_ESCAPES was defined in MIPS as well, but I removed it since it does more harm than good. If you want to use an argument name in an ascii string inside a macro you have to use an argument name that gives you a standard escape sequence: .macro narg1 .ascii "\narg1" .endm Instead of how you normally would write it: .macro arg1 .ascii "\arg1" .endm > I'll probably eventually get around to analyze it more thoroughly > and perhaps fix it, but why wait. The bug might even be a invalid > testcase for all I know right now. I think the problem has been in gas for years. Feel free to fix it. Ulf