public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/40642]  New: [4.5 regression] ICE with -fprofile-generate
@ 2009-07-03 16:43 bangerth at gmail dot com
  2009-07-03 17:20 ` [Bug tree-optimization/40642] " rguenth at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bangerth at gmail dot com @ 2009-07-03 16:43 UTC (permalink / raw)
  To: gcc-bugs

This is a regression in at least current mainline over 4.2. I can't check
4.3 and 4.4 for the moment. I found this working on a successor to the
447.dealII benchmark to be included in the next SPEC testsuite. It triggers
about half a dozen times on that code base.

Either way, here it is:
---------------------------
#include <vector>                                                               

void foo ()                                                                     
{                                                                               
  std::vector<std::vector<std::vector<int> > > v(3);                            
  for (unsigned int d=0; d<3; ++d)                                              
    v[d].resize (13);                                                           
}
---------------------------

>> c++ -O3 -fprofile-generate -c x.cc
x.cc: In function 'void foo()':
x.cc:8:1: error: EH edge 11->18 is missing
x.cc:8:1: error: unnecessary EH edge 11->23
x.cc:8:1: error: EH edge 16->18 is missing
x.cc:8:1: error: unnecessary EH edge 16->23
x.cc:8:1: internal compiler error: verify_flow_info failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.


>> c++ -v                            
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../mainline/configure --enable-languages=c,c++
--enable-checking --with-mpfr=/home/bangerth/bin/x86
--with-gmp=/home/bangerth/bin/x86 --prefix=/home/bangerth/bin/x86/gcc-mainline
Thread model: posix
gcc version 4.5.0 20090703 (experimental) [trunk revision 149208] (GCC)


-- 
           Summary: [4.5 regression] ICE with -fprofile-generate
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40642


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/40642] [4.5 regression] ICE with -fprofile-generate
  2009-07-03 16:43 [Bug tree-optimization/40642] New: [4.5 regression] ICE with -fprofile-generate bangerth at gmail dot com
@ 2009-07-03 17:20 ` rguenth at gcc dot gnu dot org
  2009-07-05 23:59 ` reichelt at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-03 17:20 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |hubicka at gcc dot gnu dot
                   |                            |org
   Target Milestone|---                         |4.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40642


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/40642] [4.5 regression] ICE with -fprofile-generate
  2009-07-03 16:43 [Bug tree-optimization/40642] New: [4.5 regression] ICE with -fprofile-generate bangerth at gmail dot com
  2009-07-03 17:20 ` [Bug tree-optimization/40642] " rguenth at gcc dot gnu dot org
@ 2009-07-05 23:59 ` reichelt at gcc dot gnu dot org
  2009-07-09 15:48 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-07-05 23:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from reichelt at gcc dot gnu dot org  2009-07-05 23:59 -------
Confirmed. Reduced testcase (crashes with "-O2 -fprofile-generate"):

========================================================================
inline void* operator new(__SIZE_TYPE__, void* p) throw() { return p; }
inline void operator delete (void*, void*) throw() { }

template<typename T> void foo(void* p, T t)
{
  new(p) T(t);
}

void bar();

template<typename T> struct A
{
  T* p;

  A() { try { foo(p, T()); } catch(...) {} }

  A(const A&) { try { bar(); } catch(...) { throw; } }
};

A<A<int> > a;
========================================================================

The bug appeared between 2009-04-24 and 2009-05-09.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2009-07-05 23:59:38
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40642


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/40642] [4.5 regression] ICE with -fprofile-generate
  2009-07-03 16:43 [Bug tree-optimization/40642] New: [4.5 regression] ICE with -fprofile-generate bangerth at gmail dot com
  2009-07-03 17:20 ` [Bug tree-optimization/40642] " rguenth at gcc dot gnu dot org
  2009-07-05 23:59 ` reichelt at gcc dot gnu dot org
@ 2009-07-09 15:48 ` rguenth at gcc dot gnu dot org
  2009-09-18  3:53 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-09 15:48 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40642


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/40642] [4.5 regression] ICE with -fprofile-generate
  2009-07-03 16:43 [Bug tree-optimization/40642] New: [4.5 regression] ICE with -fprofile-generate bangerth at gmail dot com
                   ` (2 preceding siblings ...)
  2009-07-09 15:48 ` rguenth at gcc dot gnu dot org
@ 2009-09-18  3:53 ` pinskia at gcc dot gnu dot org
  2009-09-20 20:05 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-09-18  3:53 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2009-09-18 03:53 -------
Can you try this again?  I think this has been fixed already as these testcase
works for me.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40642


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/40642] [4.5 regression] ICE with -fprofile-generate
  2009-07-03 16:43 [Bug tree-optimization/40642] New: [4.5 regression] ICE with -fprofile-generate bangerth at gmail dot com
                   ` (3 preceding siblings ...)
  2009-09-18  3:53 ` pinskia at gcc dot gnu dot org
@ 2009-09-20 20:05 ` pinskia at gcc dot gnu dot org
  2009-09-20 20:06 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-09-20 20:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2009-09-20 20:05 -------
Subject: Bug 40642

Author: pinskia
Date: Sun Sep 20 20:05:00 2009
New Revision: 151907

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=151907
Log:
2009-09-20  Andrew Pinski  <pinskia@gcc.gnu.org>

        PR middle-end/40642
        * g++.dg/torture/pr40642.C: New testcase.


Added:
    trunk/gcc/testsuite/g++.dg/torture/pr40642.C
Modified:
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40642


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/40642] [4.5 regression] ICE with -fprofile-generate
  2009-07-03 16:43 [Bug tree-optimization/40642] New: [4.5 regression] ICE with -fprofile-generate bangerth at gmail dot com
                   ` (4 preceding siblings ...)
  2009-09-20 20:05 ` pinskia at gcc dot gnu dot org
@ 2009-09-20 20:06 ` pinskia at gcc dot gnu dot org
  2009-09-20 20:28 ` reichelt at gcc dot gnu dot org
  2009-09-28 20:41 ` hjl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-09-20 20:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pinskia at gcc dot gnu dot org  2009-09-20 20:05 -------
Fixed, added a testcase also.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40642


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/40642] [4.5 regression] ICE with -fprofile-generate
  2009-07-03 16:43 [Bug tree-optimization/40642] New: [4.5 regression] ICE with -fprofile-generate bangerth at gmail dot com
                   ` (5 preceding siblings ...)
  2009-09-20 20:06 ` pinskia at gcc dot gnu dot org
@ 2009-09-20 20:28 ` reichelt at gcc dot gnu dot org
  2009-09-28 20:41 ` hjl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2009-09-20 20:28 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2009-09-20 20:28 -------
Btw, the bug disappeared between 2009-09-06 and 2009-09-11.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40642


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug tree-optimization/40642] [4.5 regression] ICE with -fprofile-generate
  2009-07-03 16:43 [Bug tree-optimization/40642] New: [4.5 regression] ICE with -fprofile-generate bangerth at gmail dot com
                   ` (6 preceding siblings ...)
  2009-09-20 20:28 ` reichelt at gcc dot gnu dot org
@ 2009-09-28 20:41 ` hjl at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-09-28 20:41 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from hjl at gcc dot gnu dot org  2009-09-28 20:39 -------
Subject: Bug 40642

Author: hjl
Date: Mon Sep 28 20:38:53 2009
New Revision: 152250

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=152250
Log:
2009-09-28  H.J. Lu  <hongjiu.lu@intel.com>

        Backport from mainline:
        2009-09-26  Andreas Schwab  <schwab@linux-m68k.org>

        PR c/41476
        * gcc.dg/cond-constqual-1.c: New test.

        2009-09-26  Michael Matz  <matz@suse.de>

        PR lto/40758
        PR middle-end/41470
        * gcc.dg/pr41470.c: New test.

        2009-09-23  Alexandre Oliva  <aoliva@redhat.com>

        PR debug/41248
        * gcc.dg/pr41248.c: New.

        2009-09-22  Alexandre Oliva  <aoliva@redhat.com>

        PR debug/41295
        * gcc.dg/pr41295.c: New.

        2009-09-20  Andrew Pinski  <pinskia@gcc.gnu.org>

        PR middle-end/40642
        * g++.dg/torture/pr40642.C: New testcase.

        2009-09-17  Michael Matz  <matz@suse.de>

        PR middle-end/41347
        * gfortran.dg/pr41347.f90: New test.

        2009-09-16  Michael Matz  <matz@suse.de>

        PR fortran/41212
        * gfortran.dg/pr41212.f90: New test.

        2009-09-11  Michael Matz  <matz@suse.de>

        PR middle-end/41275
        * g++.dg/tree-ssa/pr41275.C: New test.

        2009-09-11  Janus Weil  <janus@gcc.gnu.org>

        PR fortran/41242
        * gfortran.dg/proc_ptr_comp_21.f90: New.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/torture/pr40642.C
      - copied unchanged from r152249,
trunk/gcc/testsuite/g++.dg/torture/pr40642.C
    branches/gcc-4_4-branch/gcc/testsuite/g++.dg/tree-ssa/pr41275.C
      - copied unchanged from r152249,
trunk/gcc/testsuite/g++.dg/tree-ssa/pr41275.C
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/cond-constqual-1.c
      - copied unchanged from r152248,
trunk/gcc/testsuite/gcc.dg/cond-constqual-1.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr41248.c
      - copied unchanged from r152248, trunk/gcc/testsuite/gcc.dg/pr41248.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr41295.c
      - copied unchanged from r152249, trunk/gcc/testsuite/gcc.dg/pr41295.c
    branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr41470.c
      - copied unchanged from r152248, trunk/gcc/testsuite/gcc.dg/pr41470.c
    branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/pr41212.f90
      - copied unchanged from r152249,
trunk/gcc/testsuite/gfortran.dg/pr41212.f90
    branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/pr41347.f90
      - copied unchanged from r152249,
trunk/gcc/testsuite/gfortran.dg/pr41347.f90
    branches/gcc-4_4-branch/gcc/testsuite/gfortran.dg/proc_ptr_comp_21.f90
      - copied unchanged from r152249,
trunk/gcc/testsuite/gfortran.dg/proc_ptr_comp_21.f90
Modified:
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40642


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2009-09-28 20:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-03 16:43 [Bug tree-optimization/40642] New: [4.5 regression] ICE with -fprofile-generate bangerth at gmail dot com
2009-07-03 17:20 ` [Bug tree-optimization/40642] " rguenth at gcc dot gnu dot org
2009-07-05 23:59 ` reichelt at gcc dot gnu dot org
2009-07-09 15:48 ` rguenth at gcc dot gnu dot org
2009-09-18  3:53 ` pinskia at gcc dot gnu dot org
2009-09-20 20:05 ` pinskia at gcc dot gnu dot org
2009-09-20 20:06 ` pinskia at gcc dot gnu dot org
2009-09-20 20:28 ` reichelt at gcc dot gnu dot org
2009-09-28 20:41 ` hjl at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).