[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #19 from hjl at gcc dot gnu dot org 2010-03-25 16:40 --- Subject: Bug 42450 Author: hjl Date: Thu Mar 25 16:39:51 2010 New Revision: 157726 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157726 Log: Backport regression testcases from mainline. 2010-03-25 H.J. Lu hongjiu...@intel.com Backport from mainline: 2010-03-22 Jason Merrill ja...@redhat.com PR c++/4 * g++.dg/ext/is_pod_98.C: New. 2010-03-22 Michael Matz m...@suse.de PR middle-end/43475 * gfortran.dg/pr43475.f90: New testcase. 2010-03-22 Richard Guenther rguent...@suse.de PR tree-optimization/43390 * gfortran.fortran-torture/execute/pr43390.f90: New testcase. 2010-03-20 Dodji Seketeli do...@redhat.com PR c++/43375 * g++.dg/abi/mangle42.C: New test. 2010-03-19 Andrew Pinski andrew_pin...@caviumnetworks.com PR C/43211 * gcc.dg/pr43211.c: New test. 2010-03-18 Martin Jambor mjam...@suse.cz PR middle-end/42450 * g++.dg/torture/pr42450.C: New test. 2010-03-18 Michael Matz m...@suse.de PR tree-optimization/43402 * gcc.dg/pr43402.c: New testcase. 2010-03-17 Peter Bergner berg...@vnet.ibm.com PR target/42427 * gcc.dg/pr42427.c: New test. 2010-03-16 Richard Guenther rguent...@suse.de PR middle-end/43379 * gcc.dg/pr43379.c: New testcase. 2010-03-15 Michael Matz m...@suse.de PR middle-end/43300 * gcc.dg/pr43300.c: New testcase. 2010-03-15 Richard Guenther rguent...@suse.de PR tree-optimization/43367 * gcc.c-torture/compile/pr43367.c: New testcase. Added: branches/gcc-4_4-branch/gcc/testsuite/g++.dg/abi/mangle42.C - copied unchanged from r157725, trunk/gcc/testsuite/g++.dg/abi/mangle42.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/ext/is_pod_98.C - copied unchanged from r157725, trunk/gcc/testsuite/g++.dg/ext/is_pod_98.C branches/gcc-4_4-branch/gcc/testsuite/g++.dg/torture/pr42450.C - copied unchanged from r157725, trunk/gcc/testsuite/g++.dg/torture/pr42450.C branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/compile/pr43367.c - copied unchanged from r157725, trunk/gcc/testsuite/gcc.c-torture/compile/pr43367.c branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr42427.c - copied unchanged from r157725, trunk/gcc/testsuite/gcc.dg/pr42427.c branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr43211.c - copied unchanged from r157725, trunk/gcc/testsuite/gcc.dg/pr43211.c branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr43300.c - copied unchanged from r157725, trunk/gcc/testsuite/gcc.dg/pr43300.c branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr43379.c - copied unchanged from r157725, trunk/gcc/testsuite/gcc.dg/pr43379.c branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr43402.c - copied unchanged from r157725, trunk/gcc/testsuite/gcc.dg/pr43402.c branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/pr43475.f90 - copied unchanged from r157725, trunk/gcc/testsuite/gfortran.dg/pr43475.f90 branches/gcc-4_4-branch/gcc/testsuite/gfortran.fortran-torture/execute/pr43390.f90 - copied unchanged from r157725, trunk/gcc/testsuite/gfortran.fortran-torture/execute/pr43390.f90 Modified: branches/gcc-4_4-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #18 from jamborm at gcc dot gnu dot org 2010-03-19 10:14 --- Fixed. -- jamborm at gcc dot gnu dot org changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution||FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #17 from jamborm at gcc dot gnu dot org 2010-03-18 20:07 --- Subject: Bug 42450 Author: jamborm Date: Thu Mar 18 20:07:13 2010 New Revision: 157546 URL: http://gcc.gnu.org/viewcvs?root=gccview=revrev=157546 Log: 2010-03-18 Martin Jambor mjam...@suse.cz PR middle-end/42450 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare. * cgraphunit.c (cgraph_materialize_all_clones): Update calls in all non-clones. Moved call redirection... (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function. (cgraph_materialize_all_clones): Dispose of all combined_args_to_skip bitmaps. (verify_cgraph_node): Do not check for edges pointing to wrong nodes in inline clones. * tree-inline.c (copy_bb): Call cgraph_redirect_edge_call_stmt_to_callee. * ipa.c (cgraph_remove_unreachable_nodes): Call cgraph_node_remove_callees even when there are used clones. * testsuite/g++.dg/torture/pr42450.C: New test. Added: trunk/gcc/testsuite/g++.dg/torture/pr42450.C Modified: trunk/gcc/ChangeLog trunk/gcc/cgraph.h trunk/gcc/cgraphunit.c trunk/gcc/ipa.c trunk/gcc/testsuite/ChangeLog trunk/gcc/tree-inline.c -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #16 from rguenth at gcc dot gnu dot org 2010-03-15 13:24 --- Re-assigning to Martin then. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|rth at gcc dot gnu dot org |jamborm at gcc dot gnu dot ||org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #15 from jamborm at gcc dot gnu dot org 2010-03-08 10:44 --- I came to the conclusion the patch was indeed a good fix. I have submitted it to the mailing list along with an explanation of what is going on: http://gcc.gnu.org/ml/gcc-patches/2010-03/msg00270.html -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #14 from jamborm at gcc dot gnu dot org 2010-03-05 19:42 --- (In reply to comment #13) I have a patch for this. I will submit it tomorrow. Unfortunately, I am not sure that my patch really fixes the issue rather than hides it. I'd like to discuss it with Honza first. Nevertheless, I'll keep working on this. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #12 from jamborm at gcc dot gnu dot org 2010-03-04 18:22 --- *** Bug 43198 has been marked as a duplicate of this bug. *** -- jamborm at gcc dot gnu dot org changed: What|Removed |Added CC||dcb314 at hotmail dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #13 from jamborm at gcc dot gnu dot org 2010-03-04 18:24 --- I have a patch for this. I will submit it tomorrow. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #9 from manu at gcc dot gnu dot org 2010-03-03 14:38 --- (In reply to comment #8) Created an attachment (id=19938) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19938action=view) [edit] smaller testcase Here is the smallest testcase I could get out of delta. I have a testcase of only 8K but delta is still running. I think I should be able to reduce it to less than 228 lines. -- manu at gcc dot gnu dot org changed: What|Removed |Added CC||manu at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #10 from manu at gcc dot gnu dot org 2010-03-03 22:11 --- Created an attachment (id=20015) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20015action=view) further reduced testcase This testcase is somehow smaller. I won't try to reduce it further. -- manu at gcc dot gnu dot org changed: What|Removed |Added Attachment #19938|0 |1 is obsolete|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #11 from zsojka at seznam dot cz 2010-03-04 01:28 --- Created an attachment (id=20016) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20016action=view) different reduced testcase Testcases from comment #0 and comment #10 don't fail for me (x86_64, r157161). However, attached testcase does (further reduced from comment #8). Compiler flags: -O3 ; -O2 ; -O1 -fipa-cp -fipa-sra -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #8 from pinskia at gcc dot gnu dot org 2010-02-23 04:06 --- Created an attachment (id=19938) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19938action=view) smaller testcase Here is the smallest testcase I could get out of delta. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #7 from hubicka at ucw dot cz 2010-01-24 13:55 --- Subject: Re: [4.5 Regression] another GCC 4.5 ICE on C++ templated code I think it was an accident as this is a P1 bug anyways. That was accident (i meant to update different PR). I tought I fixed that already. Honza -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
-- hubicka at gcc dot gnu dot org changed: What|Removed |Added Severity|normal |enhancement http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #5 from jacob dot benoit dot 1 at gmail dot com 2010-01-22 19:29 --- Sorry for the probably uninformed question, but this bug was just tagged enhancement, and I thought that enhancement meant not really a bug but rather a feature request. I would like to understand? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #6 from pinskia at gcc dot gnu dot org 2010-01-22 19:34 --- (In reply to comment #5) Sorry for the probably uninformed question, but this bug was just tagged enhancement, and I thought that enhancement meant not really a bug but rather a feature request. I would like to understand? I think it was an accident as this is a P1 bug anyways. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added Severity|enhancement |normal http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
-- rth at gcc dot gnu dot org changed: What|Removed |Added AssignedTo|unassigned at gcc dot gnu |rth at gcc dot gnu dot org |dot org | Status|NEW |ASSIGNED Last reconfirmed|2009-12-21 22:04:10 |2010-01-05 17:14:21 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
--- Comment #4 from dodji at gcc dot gnu dot org 2010-01-04 09:37 --- Confirmed on 4.5. The ICE happens only with -O2, with checking enabled. I think this should be flagged as P1. -- dodji at gcc dot gnu dot org changed: What|Removed |Added CC||dodji at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P1 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450
[Bug middle-end/42450] [4.5 Regression] another GCC 4.5 ICE on C++ templated code
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added CC||hubicka at gcc dot gnu dot ||org Component|c++ |middle-end Keywords||ice-checking, ice-on-valid- ||code Summary|another GCC 4.5 ICE on C++ |[4.5 Regression] another GCC |templated code |4.5 ICE on C++ templated ||code Target Milestone|--- |4.5.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42450