public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26913] New: ICE with -fopenmp and -O2
@ 2006-03-29 9:09 Georg dot Baum at post dot rwth-aachen dot de
2006-03-29 15:44 ` [Bug c++/26913] " reichelt at gcc dot gnu dot org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: Georg dot Baum at post dot rwth-aachen dot de @ 2006-03-29 9:09 UTC (permalink / raw)
To: gcc-bugs
I get a ICE in g++ for the following code when compiled with -fopenmp and -O2:
#include <string>
int foo()
{
int x1;
#pragma omp parallel
{
for (int i = 0; i < 5; ++i) {
std::string xxx;
}
}
return 0;
}
Note that this is not exactly bug 26823, since the function name where the ICE
occurs is not printed. I tried to replace std::string with something else, but
then the ICE disappears. This is with svn from yesterday: g++-4.2 (GCC) 4.2.0
20060328 (experimental)
--
Summary: ICE with -fopenmp and -O2
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Georg dot Baum at post dot rwth-aachen dot de
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=26913
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/26913] ICE with -fopenmp and -O2
2006-03-29 9:09 [Bug c++/26913] New: ICE with -fopenmp and -O2 Georg dot Baum at post dot rwth-aachen dot de
@ 2006-03-29 15:44 ` reichelt at gcc dot gnu dot org
2006-04-02 8:01 ` [Bug middle-end/26913] ICE with -fopenmp and -O1 pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-03-29 15:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from reichelt at gcc dot gnu dot org 2006-03-29 15:44 -------
Confirmed.
Reduced testcase (compile with "g++ -fopenmp"):
=======================================
struct A
{
~A() throw();
};
void foo(A);
A bar() throw();
void baz()
{
#pragma omp parallel
{ A a; foo(bar()); }
}
=======================================
PR26913.cc: In function 'void _Z3bazv.omp_fn.0(void*)':
PR26913.cc:12: internal compiler error: Segmentation fault
Please submit a full bug report, [etc.]
Although this is a plain segfault in contrast to PR26823, I think the
two are related, since both have to do with exception handling:
If you get gid of "throw()" in the testcase above, the code compiles fine.
And the ICE in PR26823 happens in add_stmt_to_eh_region_fn.
While reducing to testcase above, I also came across error messages like
in PR26084/PR26076 (vector VEC(eh_region,base) index domain) - the
predecessors of PR26823.
Looks like we some major problem with exception handling here.
--
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, openmp
Last reconfirmed|0000-00-00 00:00:00 |2006-03-29 15:44:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26913
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/26913] ICE with -fopenmp and -O1
2006-03-29 9:09 [Bug c++/26913] New: ICE with -fopenmp and -O2 Georg dot Baum at post dot rwth-aachen dot de
2006-03-29 15:44 ` [Bug c++/26913] " reichelt at gcc dot gnu dot org
@ 2006-04-02 8:01 ` pinskia at gcc dot gnu dot org
2006-04-18 13:50 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-02 8:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-04-02 08:01 -------
Backtrace:
#0 0x00351810 in can_throw_internal_1 (region_number=0, is_resx=1 '\001') at
../../gcc/except.c:2655
#1 0x00601484 in tree_can_throw_internal (stmt=0x434ed5a0) at
../../gcc/tree-eh.c:2031
#2 0x0067ff74 in tree_purge_dead_eh_edges (bb=0x434ee1e0) at
../../gcc/tree-cfg.c:5386
#3 0x0064310c in execute_fixup_cfg () at ../../gcc/tree-optimize.c:263
#4 0x00575718 in execute_one_pass (pass=0xca8270) at ../../gcc/passes.c:863
#5 0x00575944 in execute_pass_list (pass=0xca8270) at ../../gcc/passes.c:910
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c++ |middle-end
GCC build triplet|i686-pc-linux-gnu |
GCC host triplet|i686-pc-linux-gnu |
GCC target triplet|i686-pc-linux-gnu |
Summary|ICE with -fopenmp and -O2 |ICE with -fopenmp and -O1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26913
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/26913] ICE with -fopenmp and -O1
2006-03-29 9:09 [Bug c++/26913] New: ICE with -fopenmp and -O2 Georg dot Baum at post dot rwth-aachen dot de
2006-03-29 15:44 ` [Bug c++/26913] " reichelt at gcc dot gnu dot org
2006-04-02 8:01 ` [Bug middle-end/26913] ICE with -fopenmp and -O1 pinskia at gcc dot gnu dot org
@ 2006-04-18 13:50 ` jakub at gcc dot gnu dot org
2006-04-26 8:24 ` jakub at gcc dot gnu dot org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-04-18 13:50 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/msg00662.html
Status|NEW |ASSIGNED
Last reconfirmed|2006-03-29 15:44:04 |2006-04-18 13:50:13
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26913
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/26913] ICE with -fopenmp and -O1
2006-03-29 9:09 [Bug c++/26913] New: ICE with -fopenmp and -O2 Georg dot Baum at post dot rwth-aachen dot de
` (2 preceding siblings ...)
2006-04-18 13:50 ` jakub at gcc dot gnu dot org
@ 2006-04-26 8:24 ` jakub at gcc dot gnu dot org
2006-04-26 8:29 ` jakub at gcc dot gnu dot org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-04-26 8:24 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2006-04-26 08:24 -------
Subject: Bug 26913
Author: jakub
Date: Wed Apr 26 08:24:28 2006
New Revision: 113270
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113270
Log:
PR middle-end/26913
* tree-cfg.c (find_outermost_region_in_block): Handle RESX_EXPR.
* g++.dg/gomp/pr26913.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/gomp/pr26913.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-cfg.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26913
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/26913] ICE with -fopenmp and -O1
2006-03-29 9:09 [Bug c++/26913] New: ICE with -fopenmp and -O2 Georg dot Baum at post dot rwth-aachen dot de
` (3 preceding siblings ...)
2006-04-26 8:24 ` jakub at gcc dot gnu dot org
@ 2006-04-26 8:29 ` jakub at gcc dot gnu dot org
2006-04-26 14:39 ` Georg dot Baum at post dot rwth-aachen dot de
2006-04-30 6:14 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-04-26 8:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2006-04-26 08:29 -------
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=26913
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/26913] ICE with -fopenmp and -O1
2006-03-29 9:09 [Bug c++/26913] New: ICE with -fopenmp and -O2 Georg dot Baum at post dot rwth-aachen dot de
` (4 preceding siblings ...)
2006-04-26 8:29 ` jakub at gcc dot gnu dot org
@ 2006-04-26 14:39 ` Georg dot Baum at post dot rwth-aachen dot de
2006-04-30 6:14 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: Georg dot Baum at post dot rwth-aachen dot de @ 2006-04-26 14:39 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from Georg dot Baum at post dot rwth-aachen dot de 2006-04-26 14:39 -------
The test case does indeed not trigger the ICE anymore, but I have a similar new
one: PR27325.
--
Georg dot Baum at post dot rwth-aachen dot de changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |VERIFIED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26913
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/26913] ICE with -fopenmp and -O1
2006-03-29 9:09 [Bug c++/26913] New: ICE with -fopenmp and -O2 Georg dot Baum at post dot rwth-aachen dot de
` (5 preceding siblings ...)
2006-04-26 14:39 ` Georg dot Baum at post dot rwth-aachen dot de
@ 2006-04-30 6:14 ` pinskia at gcc dot gnu dot org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-04-30 6:14 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26913
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-04-30 6:14 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-29 9:09 [Bug c++/26913] New: ICE with -fopenmp and -O2 Georg dot Baum at post dot rwth-aachen dot de
2006-03-29 15:44 ` [Bug c++/26913] " reichelt at gcc dot gnu dot org
2006-04-02 8:01 ` [Bug middle-end/26913] ICE with -fopenmp and -O1 pinskia at gcc dot gnu dot org
2006-04-18 13:50 ` jakub at gcc dot gnu dot org
2006-04-26 8:24 ` jakub at gcc dot gnu dot org
2006-04-26 8:29 ` jakub at gcc dot gnu dot org
2006-04-26 14:39 ` Georg dot Baum at post dot rwth-aachen dot de
2006-04-30 6:14 ` pinskia 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).