This is the mail archive of the
gcc-prs@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: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 5 Feb 2003 15:06:01 -0000
- Subject: Re: optimization/9570: [3.3/3.4 regression] Assember error with-finline-functions with g++-3.3
- Reply-to: Wolfgang Bangerth <bangerth at ticam dot utexas dot edu>
The following reply was made to PR optimization/9570; it has been noted by GNATS.
From: Wolfgang Bangerth <bangerth@ticam.utexas.edu>
To: Eric Botcazou <ebotcazou@libertysurf.fr>
Cc: gcc-bugs@gcc.gnu.org, <gcc-gnats@gcc.gnu.org>
Subject: Re: optimization/9570: [3.3/3.4 regression] Assember error with
-finline-functions with g++-3.3
Date: Wed, 5 Feb 2003 08:57:00 -0600 (CST)
On Wed, 5 Feb 2003, Eric Botcazou wrote:
> > 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.
Try again with the C++ front-end? ;-)
W.
-------------------------------------------------------------------------
Wolfgang Bangerth email: bangerth@ticam.utexas.edu
www: http://www.ticam.utexas.edu/~bangerth/