public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35099]  New: [OpenMP] ICE in remove_unreachable_regions with -O -fopenmp
@ 2008-02-06  8:02 t-gcc-bugzilla at snowelm dot com
  2008-02-06  8:04 ` [Bug c++/35099] " t-gcc-bugzilla at snowelm dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: t-gcc-bugzilla at snowelm dot com @ 2008-02-06  8:02 UTC (permalink / raw)
  To: gcc-bugs

g++ on the trunk (revision 132140) produces ICE when compiling the attached
test1.ii.  I tried to reduce the code but I couldn't.

$ g++-4.3 -E test.cpp -o test1.ii
$ g++-4.3 -O -fopenmp test1.ii
hoge.cpp: In function 'void
_Z15test_learnervecP15EnvironmentBaseRSt6vectorIP11LearnerBaseSaIS3_EEiSs.omp_fn.0(void*)':
hoge.cpp:85: internal compiler error: in remove_unreachable_regions, at
except.c:693
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
mak@cl26:~/src/tdn$ g++-4.3 -v                 
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/home/mak/local --program-suffix=-4.3 :
(reconfigured) ../configure --prefix=/home/mak/local --program-suffix=-4.3
CPPFLAGS=-I/home/mak/local/include LDFLAGS=-L/home/mak/local/lib
--enable-languages=c,c++,fortran,java,objc --no-create --no-recursion
Thread model: posix
gcc version 4.3.0 20080206 (experimental) (GCC)


-- 
           Summary: [OpenMP] ICE in remove_unreachable_regions with -O -
                    fopenmp
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: t-gcc-bugzilla at snowelm dot com
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c++/35099] [OpenMP] ICE in remove_unreachable_regions with -O -fopenmp
  2008-02-06  8:02 [Bug c++/35099] New: [OpenMP] ICE in remove_unreachable_regions with -O -fopenmp t-gcc-bugzilla at snowelm dot com
@ 2008-02-06  8:04 ` t-gcc-bugzilla at snowelm dot com
  2008-02-06 12:29 ` [Bug middle-end/35099] [4.3 Regression] " rguenth at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: t-gcc-bugzilla at snowelm dot com @ 2008-02-06  8:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from t-gcc-bugzilla at snowelm dot com  2008-02-06 08:03 -------
Created an attachment (id=15103)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15103&action=view)
Testcase


-- 


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


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

* [Bug middle-end/35099] [4.3 Regression] ICE in remove_unreachable_regions with -O -fopenmp
  2008-02-06  8:02 [Bug c++/35099] New: [OpenMP] ICE in remove_unreachable_regions with -O -fopenmp t-gcc-bugzilla at snowelm dot com
  2008-02-06  8:04 ` [Bug c++/35099] " t-gcc-bugzilla at snowelm dot com
@ 2008-02-06 12:29 ` rguenth at gcc dot gnu dot org
  2008-02-06 12:29 ` rguenth at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-02-06 12:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2008-02-06 12:29 -------
Also ICEs on x86_64 with -m32 (but not without).


-- 


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


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

* [Bug middle-end/35099] [4.3 Regression] ICE in remove_unreachable_regions with -O -fopenmp
  2008-02-06  8:02 [Bug c++/35099] New: [OpenMP] ICE in remove_unreachable_regions with -O -fopenmp t-gcc-bugzilla at snowelm dot com
  2008-02-06  8:04 ` [Bug c++/35099] " t-gcc-bugzilla at snowelm dot com
  2008-02-06 12:29 ` [Bug middle-end/35099] [4.3 Regression] " rguenth at gcc dot gnu dot org
@ 2008-02-06 12:29 ` rguenth at gcc dot gnu dot org
  2008-02-06 18:06 ` Ralf dot Wildenhues at gmx dot de
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-02-06 12:29 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |middle-end
           Keywords|                            |ice-on-valid-code, openmp
      Known to work|                            |4.2.2
            Summary|[OpenMP] ICE in             |[4.3 Regression] ICE in
                   |remove_unreachable_regions  |remove_unreachable_regions
                   |with -O -fopenmp            |with -O -fopenmp
   Target Milestone|---                         |4.3.0


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


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

* [Bug middle-end/35099] [4.3 Regression] ICE in remove_unreachable_regions with -O -fopenmp
  2008-02-06  8:02 [Bug c++/35099] New: [OpenMP] ICE in remove_unreachable_regions with -O -fopenmp t-gcc-bugzilla at snowelm dot com
                   ` (2 preceding siblings ...)
  2008-02-06 12:29 ` rguenth at gcc dot gnu dot org
@ 2008-02-06 18:06 ` Ralf dot Wildenhues at gmx dot de
  2008-02-06 20:59 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: Ralf dot Wildenhues at gmx dot de @ 2008-02-06 18:06 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from Ralf dot Wildenhues at gmx dot de  2008-02-06 18:05 -------
Created an attachment (id=15110)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15110&action=view)
fairly reduced testcase


-- 


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


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

* [Bug middle-end/35099] [4.3 Regression] ICE in remove_unreachable_regions with -O -fopenmp
  2008-02-06  8:02 [Bug c++/35099] New: [OpenMP] ICE in remove_unreachable_regions with -O -fopenmp t-gcc-bugzilla at snowelm dot com
                   ` (3 preceding siblings ...)
  2008-02-06 18:06 ` Ralf dot Wildenhues at gmx dot de
@ 2008-02-06 20:59 ` rguenth at gcc dot gnu dot org
  2008-02-06 22:32 ` reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-02-06 20:59 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from rguenth at gcc dot gnu dot org  2008-02-06 20:58 -------
Confirmed.

If you remove the second #pragma omp single in

      if( s == 0 ) {
#pragma omp single
#pragma omp single
        {
          for( LearnerBase * i = learners[0]; s == 0; ) {
            if( os ) i->getInfo();
          }
        }

then the ICE is gone.  It also warns about this, but I don't see this
warning in the original testcase, so the reduced testcase may not
trigger exactly the same bug - who knows.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
      Known to fail|                            |4.3.0
           Priority|P3                          |P2
   Last reconfirmed|0000-00-00 00:00:00         |2008-02-06 20:58:59
               date|                            |


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


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

* [Bug middle-end/35099] [4.3 Regression] ICE in remove_unreachable_regions with -O -fopenmp
  2008-02-06  8:02 [Bug c++/35099] New: [OpenMP] ICE in remove_unreachable_regions with -O -fopenmp t-gcc-bugzilla at snowelm dot com
                   ` (4 preceding siblings ...)
  2008-02-06 20:59 ` rguenth at gcc dot gnu dot org
@ 2008-02-06 22:32 ` reichelt at gcc dot gnu dot org
  2008-03-10 13:49 ` [Bug middle-end/35099] [4.3/4.4 " jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-02-06 22:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from reichelt at gcc dot gnu dot org  2008-02-06 22:31 -------
Even shorter testcase that doesn't trigger a warning:

===============================
struct A
{
  ~A() throw();
  void foo();
};

struct B
{
  B() { A().foo(); }
};

void bar()
{
#pragma omp parallel
  {
#pragma omp critical
    B();
#pragma omp for
    for (int i=0; i<2; ++i)
      B();
  }
}
===============================


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org


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


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

* [Bug middle-end/35099] [4.3/4.4 Regression] ICE in remove_unreachable_regions with -O -fopenmp
  2008-02-06  8:02 [Bug c++/35099] New: [OpenMP] ICE in remove_unreachable_regions with -O -fopenmp t-gcc-bugzilla at snowelm dot com
                   ` (5 preceding siblings ...)
  2008-02-06 22:32 ` reichelt at gcc dot gnu dot org
@ 2008-03-10 13:49 ` jakub at gcc dot gnu dot org
  2008-03-10 19:40 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-10 13:49 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jakub at gcc dot gnu dot org  2008-03-10 13:48 -------
Testing a fix.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-02-06 20:58:59         |2008-03-10 13:48:25
               date|                            |


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


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

* [Bug middle-end/35099] [4.3/4.4 Regression] ICE in remove_unreachable_regions with -O -fopenmp
  2008-02-06  8:02 [Bug c++/35099] New: [OpenMP] ICE in remove_unreachable_regions with -O -fopenmp t-gcc-bugzilla at snowelm dot com
                   ` (6 preceding siblings ...)
  2008-03-10 13:49 ` [Bug middle-end/35099] [4.3/4.4 " jakub at gcc dot gnu dot org
@ 2008-03-10 19:40 ` jakub at gcc dot gnu dot org
  2008-03-10 20:52 ` jakub at gcc dot gnu dot org
  2008-03-13  8:18 ` reichelt at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-10 19:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from jakub at gcc dot gnu dot org  2008-03-10 19:40 -------
Subject: Bug 35099

Author: jakub
Date: Mon Mar 10 19:39:30 2008
New Revision: 133084

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133084
Log:
        PR middle-end/35099
        * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.

        * g++.dg/gomp/pr35099.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/gomp/pr35099.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-cfg.c


-- 


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


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

* [Bug middle-end/35099] [4.3/4.4 Regression] ICE in remove_unreachable_regions with -O -fopenmp
  2008-02-06  8:02 [Bug c++/35099] New: [OpenMP] ICE in remove_unreachable_regions with -O -fopenmp t-gcc-bugzilla at snowelm dot com
                   ` (7 preceding siblings ...)
  2008-03-10 19:40 ` jakub at gcc dot gnu dot org
@ 2008-03-10 20:52 ` jakub at gcc dot gnu dot org
  2008-03-13  8:18 ` reichelt at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-03-10 20:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from jakub at gcc dot gnu dot org  2008-03-10 20:52 -------
Subject: Bug 35099

Author: jakub
Date: Mon Mar 10 20:51:18 2008
New Revision: 133088

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=133088
Log:
        PR middle-end/35099
        * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.

        * g++.dg/gomp/pr35099.C: New test.

Added:
    branches/gcc-4_3-branch/gcc/testsuite/g++.dg/gomp/pr35099.C
Modified:
    branches/gcc-4_3-branch/gcc/ChangeLog
    branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_3-branch/gcc/tree-cfg.c


-- 


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


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

* [Bug middle-end/35099] [4.3/4.4 Regression] ICE in remove_unreachable_regions with -O -fopenmp
  2008-02-06  8:02 [Bug c++/35099] New: [OpenMP] ICE in remove_unreachable_regions with -O -fopenmp t-gcc-bugzilla at snowelm dot com
                   ` (8 preceding siblings ...)
  2008-03-10 20:52 ` jakub at gcc dot gnu dot org
@ 2008-03-13  8:18 ` reichelt at gcc dot gnu dot org
  9 siblings, 0 replies; 11+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-13  8:18 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from reichelt at gcc dot gnu dot org  2008-03-13 08:17 -------
Fixed by Jakub's patch.


-- 

reichelt at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|4.3.0                       |4.3.1


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


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

end of thread, other threads:[~2008-03-13  8:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-06  8:02 [Bug c++/35099] New: [OpenMP] ICE in remove_unreachable_regions with -O -fopenmp t-gcc-bugzilla at snowelm dot com
2008-02-06  8:04 ` [Bug c++/35099] " t-gcc-bugzilla at snowelm dot com
2008-02-06 12:29 ` [Bug middle-end/35099] [4.3 Regression] " rguenth at gcc dot gnu dot org
2008-02-06 12:29 ` rguenth at gcc dot gnu dot org
2008-02-06 18:06 ` Ralf dot Wildenhues at gmx dot de
2008-02-06 20:59 ` rguenth at gcc dot gnu dot org
2008-02-06 22:32 ` reichelt at gcc dot gnu dot org
2008-03-10 13:49 ` [Bug middle-end/35099] [4.3/4.4 " jakub at gcc dot gnu dot org
2008-03-10 19:40 ` jakub at gcc dot gnu dot org
2008-03-10 20:52 ` jakub at gcc dot gnu dot org
2008-03-13  8:18 ` reichelt 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).