This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/6793: varargs constructor inlined inappropriately.
- From: Kevin Nomura <nomura at netapp dot com>
- To: nobody at gcc dot gnu dot org
- Cc: gcc-prs at gcc dot gnu dot org,
- Date: 3 Jun 2002 20:26:01 -0000
- Subject: Re: optimization/6793: varargs constructor inlined inappropriately.
- Reply-to: Kevin Nomura <nomura at netapp dot com>
The following reply was made to PR optimization/6793; it has been noted by GNATS.
From: Kevin Nomura <nomura@netapp.com>
To: andrea.latina@to.infn.it, gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org,
gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: optimization/6793: varargs constructor inlined inappropriately.
Date: Mon, 03 Jun 2002 13:19:06 -0700
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=6793
I hit the same problem with a simpler, plain C testcase.
Compile the following at -O2. Fails with gcc 3.1, passes
with 3.0.4 and earlier.
static void inline chdebug(const char *fmt, ... )
{
__builtin_next_arg(fmt);
}
extern void foo(void);
void foo(void)
{
chdebug("ch_monitor: verifying connection ");
}