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: PATCH: Don't use # comments in inline asm (PR testsuite/41522)


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 #?

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


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