This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 ");
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]