This is the mail archive of the
gcc-bugs@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: andrea dot latina at to dot infn dot it, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Mon, 03 Jun 2002 13:19:06 -0700
- Subject: Re: optimization/6793: varargs constructor inlined inappropriately.
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 ");
}