This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/9570: [3.3/3.4 regression] Assember error with -finline-functions with g++-3.3
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: bangerth at dealii dot org
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 5 Feb 2003 09:18:15 +0100
- Subject: Re: optimization/9570: [3.3/3.4 regression] Assember error with -finline-functions with g++-3.3
- References: <20030204171345.26954.qmail@sources.redhat.com>
> Confirmed. Here's a minimal testcase:
> -------------------------------
> int i = 0;
>
> void foo() {
> static bool b;
> if (! i)
> asm("movl %%esp, %0" : "=r" (i));
> }
>
> asm(".p2align " "2" "; .globl mcount; mcount:"
> "call " "foo" "\n\t"
> "ret");
> -------------------------------
I get:
pr9570.c: In function `foo':
pr9570.c:5: error: syntax error before "b"
with this testcase.
--
Eric Botcazou