From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7745 invoked by alias); 3 Jun 2002 20:26:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 7729 invoked by uid 71); 3 Jun 2002 20:26:01 -0000 Date: Mon, 03 Jun 2002 13:26:00 -0000 Message-ID: <20020603202601.7728.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Kevin Nomura Subject: Re: optimization/6793: varargs constructor inlined inappropriately. Reply-To: Kevin Nomura X-SW-Source: 2002-06/txt/msg00077.txt.bz2 List-Id: The following reply was made to PR optimization/6793; it has been noted by GNATS. From: Kevin Nomura 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 "); }