This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Don't use # comments in inline asm (PR testsuite/41522)
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Cc: gcc-patches at gcc dot gnu dot org, pinskia at gcc dot gnu dot org, Janis Johnson <janis187 at us dot ibm dot com>
- Date: Mon, 25 Jan 2010 14:21:57 +0100
- Subject: Re: PATCH: Don't use # comments in inline asm (PR testsuite/41522)
- References: <yddwrz676ic.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
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."