public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/27325]  New: ICE with enabled exceptions and -fopenmp
@ 2006-04-26 14:38 Georg dot Baum at post dot rwth-aachen dot de
  2006-04-26 15:46 ` [Bug middle-end/27325] " reichelt at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Georg dot Baum at post dot rwth-aachen dot de @ 2006-04-26 14:38 UTC (permalink / raw)
  To: gcc-bugs

The code

struct A {
        ~A();
};

int f()
{
        A a;
#pragma omp parallel firstprivate(a)
        for (int i = 0; i < 5; ++i)
                int x = 0;
        return 0;
}

gives the following ICE with gcc version 4.2.0 20060426 (experimental):

LANG=C g++-4.2 -c -fopenmp  -o gcc-bug.o gcc-bug.cpp
gcc-bug.cpp: In function 'int f()':
gcc-bug.cpp:5: internal compiler error: in find_outermost_region_in_block, at
tree-cfg.c:4758

This is reduced from the same code as PR26913 (thanks for the fix). The ICE
disappears with -fno-exceptions. I am not sure whether this is a duplicate of
PR26823, but the ICE appears in a different file, so maybe it is not.

In the process of reducing I got also two other ICEs:

gcc-bug.cpp:16: internal compiler error: in make_decl_rtl, at varasm.c:1009

and

gcc-bug.cpp:27: error: basic block 5 edge lists are corrupted
gcc-bug.cpp:27: internal compiler error: verify_flow_info failed

Since these appear in a rather large file I'll reduce them further and file
reports after this problem is fixed (if they still appear then).


-- 
           Summary: ICE with enabled exceptions and -fopenmp
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: Georg dot Baum at post dot rwth-aachen dot de


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


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

* [Bug middle-end/27325] ICE with enabled exceptions and -fopenmp
  2006-04-26 14:38 [Bug middle-end/27325] New: ICE with enabled exceptions and -fopenmp Georg dot Baum at post dot rwth-aachen dot de
@ 2006-04-26 15:46 ` reichelt at gcc dot gnu dot org
  2006-04-28 11:43 ` jakub at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-26 15:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from reichelt at gcc dot gnu dot org  2006-04-26 15:46 -------
Confirmed.


-- 

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
           Keywords|                            |ice-on-valid-code, monitored
   Last reconfirmed|0000-00-00 00:00:00         |2006-04-26 15:46:04
               date|                            |


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


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

* [Bug middle-end/27325] ICE with enabled exceptions and -fopenmp
  2006-04-26 14:38 [Bug middle-end/27325] New: ICE with enabled exceptions and -fopenmp Georg dot Baum at post dot rwth-aachen dot de
  2006-04-26 15:46 ` [Bug middle-end/27325] " reichelt at gcc dot gnu dot org
@ 2006-04-28 11:43 ` jakub at gcc dot gnu dot org
  2006-04-28 15:05 ` Georg dot Baum at post dot rwth-aachen dot de
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-04-28 11:43 UTC (permalink / raw)
  To: gcc-bugs



-- 

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                     |
                URL|                            |http://gcc.gnu.org/ml/gcc-
                   |                            |patches/2006-
                   |                            |04/msg01084.html
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-04-26 15:46:04         |2006-04-28 11:43:03
               date|                            |


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


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

* [Bug middle-end/27325] ICE with enabled exceptions and -fopenmp
  2006-04-26 14:38 [Bug middle-end/27325] New: ICE with enabled exceptions and -fopenmp Georg dot Baum at post dot rwth-aachen dot de
  2006-04-26 15:46 ` [Bug middle-end/27325] " reichelt at gcc dot gnu dot org
  2006-04-28 11:43 ` jakub at gcc dot gnu dot org
@ 2006-04-28 15:05 ` Georg dot Baum at post dot rwth-aachen dot de
  2006-05-02 10:40 ` jakub at gcc dot gnu dot org
  2006-05-02 10:46 ` jakub at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: Georg dot Baum at post dot rwth-aachen dot de @ 2006-04-28 15:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from Georg dot Baum at post dot rwth-aachen dot de  2006-04-28 15:05 -------
The patch at http://gcc.gnu.org/ml/gcc-patches/2006-04/msg01084.html fixes the
problem for me. Now my code compiles without optimization, but with -O1 or
higher I get a different ICE without file location that is very difficult to
reduce. I'll file a new report when I managed to reduce it to something
reasonable.


-- 


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


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

* [Bug middle-end/27325] ICE with enabled exceptions and -fopenmp
  2006-04-26 14:38 [Bug middle-end/27325] New: ICE with enabled exceptions and -fopenmp Georg dot Baum at post dot rwth-aachen dot de
                   ` (2 preceding siblings ...)
  2006-04-28 15:05 ` Georg dot Baum at post dot rwth-aachen dot de
@ 2006-05-02 10:40 ` jakub at gcc dot gnu dot org
  2006-05-02 10:46 ` jakub at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-02 10:40 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jakub at gcc dot gnu dot org  2006-05-02 10:40 -------
Subject: Bug 27325

Author: jakub
Date: Tue May  2 10:40:21 2006
New Revision: 113454

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113454
Log:
        PR middle-end/27325
        * omp-low.c (lower_omp_sections): Call maybe_catch_exception
        on statement list containing also constructors and destructors.
        (lower_omp_single, lower_omp_for, lower_omp_parallel): Likewise.

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

Added:
    trunk/gcc/testsuite/g++.dg/gomp/pr27325.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/omp-low.c
    trunk/gcc/testsuite/ChangeLog


-- 


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


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

* [Bug middle-end/27325] ICE with enabled exceptions and -fopenmp
  2006-04-26 14:38 [Bug middle-end/27325] New: ICE with enabled exceptions and -fopenmp Georg dot Baum at post dot rwth-aachen dot de
                   ` (3 preceding siblings ...)
  2006-05-02 10:40 ` jakub at gcc dot gnu dot org
@ 2006-05-02 10:46 ` jakub at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-05-02 10:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2006-05-02 10:46 -------
Fixed in SVN.


-- 

jakub at gcc dot gnu dot org changed:

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


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


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

end of thread, other threads:[~2006-05-02 10:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-26 14:38 [Bug middle-end/27325] New: ICE with enabled exceptions and -fopenmp Georg dot Baum at post dot rwth-aachen dot de
2006-04-26 15:46 ` [Bug middle-end/27325] " reichelt at gcc dot gnu dot org
2006-04-28 11:43 ` jakub at gcc dot gnu dot org
2006-04-28 15:05 ` Georg dot Baum at post dot rwth-aachen dot de
2006-05-02 10:40 ` jakub at gcc dot gnu dot org
2006-05-02 10:46 ` jakub 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).