This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PR 27528: Expanding constant asm operands


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]