This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++ gnu_inline] fix ICE inlining after definition and redeclaration
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Jason Merrill <jason at redhat dot com>
- Date: Mon, 1 Oct 2007 17:42:29 -0400
- Subject: Re: [C++ gnu_inline] fix ICE inlining after definition and redeclaration
- References: <or1wceboj5.fsf@free.oliva.athome.lsd.ic.unicamp.br>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Oct 01, 2007 at 04:52:46PM -0300, Alexandre Oliva wrote:
> Jakub found an error in my earlier patch. If a gnu_inline function
> was redeclared without a new definition, and then called, we'd ICE
> when inlining it. Here's a patch that fixes it, by arranging for the
> linkage flags to not be affected by mere redeclarations, only by
> actual redefinitions.
>
> Jakub offered to test it, so I haven't, other than by compiling by
> hand the test included in the patch. Ok to install after Jakub
> completes testing it?
Bootstrapped/regtested on x86_64-linux.
Jakub