This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PR 27528: Expanding constant asm operands
- From: Richard Sandiford <richard at codesourcery dot com>
- To: Eric Botcazou <ebotcazou at libertysurf dot fr>
- Cc: gcc-patches at gcc dot gnu dot org, Ian Lance Taylor <iant at google dot com>
- Date: Mon, 11 Dec 2006 22:06:07 +0000
- Subject: Re: PR 27528: Expanding constant asm operands
- References: <874pt9vuax.fsf@talisman.home> <m37iy4h72f.fsf@dhcp-172-18-118-195.corp.google.com> <87bqne9uoe.fsf@talisman.home> <200612112237.32859.ebotcazou@libertysurf.fr>
Eric Botcazou <ebotcazou@libertysurf.fr> writes:
>> * gcc.c-torture/compile/pr27528.c: New test.
>
> The '#' character is not the marker for comments on Solaris so the
> above test fails to assemble
Doh! Sorry, I should have thought of that.
> The '!' character would need to be used instead. What's the least unelegant
> way to do that? Something like
>
> #if defined (sun) && defined (__svr4__)
> #define MARKER "!"
> #else
> #define MARKER "#"
> #endif
>
> plus string concatenation? Thanks in advance.
Does everything still work with empty asm strings? I found the
commented stuff useful for debugging, but it probably isn't much
use for testing purposes.
Richard