This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug c/22052] [4.0/4.1 Regression] redefinition of inline functionsucceeds
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Eric Christopher <echristo at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 21 Jun 2005 22:44:13 +0000 (UTC)
- Subject: Re: [Bug c/22052] [4.0/4.1 Regression] redefinition of inline functionsucceeds
- References: <20050613190209.22052.echristo@redhat.com> <20050617204833.25859.qmail@sourceware.org> <1119392929.16400.9.camel@dzur.sfbay.redhat.com>
On Tue, 21 Jun 2005, Eric Christopher wrote:
> Here's the full patch then. Tested on x86-linux with a bootstrap and an
> --enable-intermodule bootstrap and no regressions. Four new testcases
> added.
What does the patch do for the case of two definitions, both extern
inline, in the same translation unit? The GCC versions (3.0 and later) I
have around reject it, older ones accept it. In any case, I think this
case should have a testcase.
extern inline int foo(void) { return 0; }
extern inline int foo(void) { return 0; }
In addition I think the tests should specify -std=gnu89 explicitly in
their dg-options.
--
Joseph S. Myers http://www.srcf.ucam.org/~jsm28/gcc/
jsm@polyomino.org.uk (personal mail)
joseph@codesourcery.com (CodeSourcery mail)
jsm28@gcc.gnu.org (Bugzilla assignments and CCs)