optimization/9570: [3.3/3.4 regression] Assember error with -finline-functions with g++-3.3
Eric Botcazou
ebotcazou@libertysurf.fr
Wed Feb 5 08:17:00 GMT 2003
> 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
More information about the Gcc-bugs
mailing list