[Bug tree-optimization/43611] [4.5 Regression] ICE: SIGSEGV with -fipa-cp-clone -fkeep-inline-functions
jason at redhat dot com
gcc-bugzilla@gcc.gnu.org
Thu Apr 1 15:56:00 GMT 2010
------- Comment #4 from jason at redhat dot com 2010-04-01 15:55 -------
Subject: Re: [4.5 Regression] ICE: SIGSEGV with
-fipa-cp-clone -fkeep-inline-functions
On 04/01/2010 09:39 AM, rguenth at gcc dot gnu dot org wrote:
> The issue seems to be the C++ frontend marking inline functions needed
> at cp/semantics.c:3452 while the middle-end should already take care
> of that in cgraph_decide_is_function_needed.
Another example of why I've been thinking about reworking all the C++
front end linkage code to play better with cgraph...
> The following "fixes" it, but arguably the bug must then be latent
> with dllexport.
The patch looks OK since cgraph_decide_is_function_needed handles
flag_keep_inline_functions.
I'm not sure why doing this here would be a problem, however;
mark_needed ends up calling cgraph_mark_needed_node, which really ought
to be a reasonable way to indicate that a function is needed...
Jason
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43611
More information about the Gcc-bugs
mailing list