This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/49494] [4.7 Regression] ICE: in remap_predicate at ipa-inline-analysis.c:1876 with -findirect-inlining -finline-small-functions
- From: "hubicka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 5 Aug 2011 15:25:37 +0000
- Subject: [Bug tree-optimization/49494] [4.7 Regression] ICE: in remap_predicate at ipa-inline-analysis.c:1876 with -findirect-inlining -finline-small-functions
- Auto-submitted: auto-generated
- References: <bug-49494-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49494
--- Comment #3 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-08-05 15:25:34 UTC ---
Problem here is that more_ok is compiled into function having 4 parameters
(where first parameter is return value) and it is called with 3 parameters.
My fortran fu is not on par to tell if this is expected. Originally I assumed
that we won't inline this case since we will consider the call uninlinable. We
however do that only on type mismatch, not on mismatch in number of parameters.
Will fix that with bounds check.