This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Make hack in C99 extern inline handling lesser hack
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 20 Jun 2008 20:59:03 +0000 (UTC)
- Subject: Re: Make hack in C99 extern inline handling lesser hack
- References: <20080618134607.GE1836@kam.mff.cuni.cz>
It appears this patch fixes an ICE-on-valid on the following testcase,
which I've added to trunk as gcc.dg/inline-31.c. It might be worth
backporting to 4.3 branch to fix the ICE-on-valid there. (I've verified
that applying this patch r136893 plus the followup r136958 to 4.3 branch
fixes this test on i686-pc-linux-gnu with no regressions.)
/* { dg-do compile } */
/* { dg-options "-std=c99 -pedantic-errors" } */
inline int f (void) { return 0; }
void
g (void)
{
extern int f();
}
--
Joseph S. Myers
joseph@codesourcery.com