PATCH: Don't use # comments in inline asm (PR testsuite/41522)
Rainer Orth
ro@CeBiTec.Uni-Bielefeld.DE
Mon Jan 25 13:38:00 GMT 2010
Andreas Schwab <schwab@linux-m68k.org> writes:
> Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> writes:
>
>> diff -r 580de06034a2 gcc/testsuite/gcc.c-torture/compile/pr38789.c
>> --- a/gcc/testsuite/gcc.c-torture/compile/pr38789.c Wed Jan 20 14:17:00 2010 +0000
>> +++ b/gcc/testsuite/gcc.c-torture/compile/pr38789.c Mon Jan 25 12:39:55 2010 +0100
>> @@ -6,13 +6,13 @@
>> unsigned a = (v == 1) ? 1 : 2;
>>
>> if (__builtin_constant_p (a))
>> - asm volatile ("# constant %0" :: "i" (a));
>> + asm volatile ("" :: "i" (a));
>> else
>
> Would it work to put a newline before #?
No, # is never a comment character, but used like this:
.section ".bss",#alloc,#write
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University
More information about the Gcc-patches
mailing list