public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/56694] New: Internal compiler error when compiling OpenMP code
@ 2013-03-23 9:01 jurgen.knodlseder at irap dot omp.eu
2013-03-23 9:19 ` [Bug c++/56694] " mpolacek at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: jurgen.knodlseder at irap dot omp.eu @ 2013-03-23 9:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56694
Bug #: 56694
Summary: Internal compiler error when compiling OpenMP code
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: jurgen.knodlseder@irap.omp.eu
While compiling my GammaLib suite with the new gcc 4.8.0 an internal compiler
error occurred in a routine that uses OpenMP for multi-threading. The following
message occurs:
GObservations_optimizer.cpp: In member function 'virtual void
GObservations::optimizer::eval(const GOptimizerPars&)':
GObservations_optimizer.cpp:431:1: internal compiler error: in change_scope, at
final.c:1575
}
^
0x8340bb8 change_scope
../../gcc-4.8.0/gcc/final.c:1575
0x8344526 reemit_insn_block_notes
../../gcc-4.8.0/gcc/final.c:1650
0x8344526 final_start_function(rtx_def*, _IO_FILE*, int)
../../gcc-4.8.0/gcc/final.c:1743
0x8345b9a rest_of_handle_final
../../gcc-4.8.0/gcc/final.c:4341
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I../../include -I../../src
-I../../src/support -I/home/jenkins/cfitsio/cfitsio3310/include
-I/home/jenkins/readline/readline62/include
-I/home/jenkins/python/python273/include/python2.7 -g -O2 -fopenmp -c
GObservation.cpp -o GObservation.o >/dev/null 2>&1
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <http://gcc.gnu.org/bugs.html> for instructions.
I created a branch on GitHub to download the relevant code:
https://github.com/gammalib/gammalib/tree/gcc480-compile-error
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/56694] Internal compiler error when compiling OpenMP code
2013-03-23 9:01 [Bug c++/56694] New: Internal compiler error when compiling OpenMP code jurgen.knodlseder at irap dot omp.eu
@ 2013-03-23 9:19 ` mpolacek at gcc dot gnu.org
2013-03-23 10:22 ` jurgen.knodlseder at irap dot omp.eu
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2013-03-23 9:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56694
Marek Polacek <mpolacek at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Last reconfirmed| |2013-03-23
CC| |mpolacek at gcc dot gnu.org
Ever Confirmed|0 |1
--- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-03-23 09:19:11 UTC ---
Please provide a preprocessed source.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/56694] Internal compiler error when compiling OpenMP code
2013-03-23 9:01 [Bug c++/56694] New: Internal compiler error when compiling OpenMP code jurgen.knodlseder at irap dot omp.eu
2013-03-23 9:19 ` [Bug c++/56694] " mpolacek at gcc dot gnu.org
@ 2013-03-23 10:22 ` jurgen.knodlseder at irap dot omp.eu
2013-03-23 12:24 ` jurgen.knodlseder at irap dot omp.eu
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jurgen.knodlseder at irap dot omp.eu @ 2013-03-23 10:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56694
--- Comment #2 from Jürgen Knödlseder <jurgen.knodlseder at irap dot omp.eu> 2013-03-23 10:22:28 UTC ---
What do you mean by preprocessed source ???
Le 23 mars 2013 à 10:19, mpolacek at gcc dot gnu.org a écrit :
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56694
>
> Marek Polacek <mpolacek at gcc dot gnu.org> changed:
>
> What |Removed |Added
> ----------------------------------------------------------------------------
> Status|UNCONFIRMED |WAITING
> Last reconfirmed| |2013-03-23
> CC| |mpolacek at gcc dot gnu.org
> Ever Confirmed|0 |1
>
> --- Comment #1 from Marek Polacek <mpolacek at gcc dot gnu.org> 2013-03-23 09:19:11 UTC ---
> Please provide a preprocessed source.
>
> --
> Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You reported the bug.
============================
Please note my new e-mail address:
Jurgen.Knodlseder@irap.omp.eu
============================
>From gcc-bugs-return-418189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 10:29:04 2013
Return-Path: <gcc-bugs-return-418189-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 21715 invoked by alias); 23 Mar 2013 10:29:03 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 21666 invoked by uid 48); 23 Mar 2013 10:28:57 -0000
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/56694] Internal compiler error when compiling OpenMP code
Date: Sat, 23 Mar 2013 10:29:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: pinskia at gcc dot gnu.org
X-Bugzilla-Status: WAITING
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56694-4-O60ZH3bF8P@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-56694-4@http.gcc.gnu.org/bugzilla/>
References: <bug-56694-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-SW-Source: 2013-03/txt/msg01630.txt.bz2
Content-length: 273
http://gcc.gnu.org/bugzilla/show_bug.cgi?idV694
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2013-03-23 10:28:57 UTC ---
Add -save-temps to the command line and attach the resulting *.ii file.
This is all mentioned in http://gcc.gnu.org/bugs/ .
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/56694] Internal compiler error when compiling OpenMP code
2013-03-23 9:01 [Bug c++/56694] New: Internal compiler error when compiling OpenMP code jurgen.knodlseder at irap dot omp.eu
2013-03-23 9:19 ` [Bug c++/56694] " mpolacek at gcc dot gnu.org
2013-03-23 10:22 ` jurgen.knodlseder at irap dot omp.eu
@ 2013-03-23 12:24 ` jurgen.knodlseder at irap dot omp.eu
2013-03-25 10:26 ` [Bug c++/56694] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jurgen.knodlseder at irap dot omp.eu @ 2013-03-23 12:24 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56694
--- Comment #4 from Jürgen Knödlseder <jurgen.knodlseder at irap dot omp.eu> 2013-03-23 12:24:18 UTC ---
Okay, here it comes. But believe me or not: with the -save-temps option the
code compiles through!
I rechecked by removing the option, and the code fails again. Putting it back
makes it work ... so this is a repeatable experiment.
Cheers,
Jürgen
>From gcc-bugs-return-418200-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Sat Mar 23 12:37:11 2013
Return-Path: <gcc-bugs-return-418200-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 1019 invoked by alias); 23 Mar 2013 12:37:10 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 1005 invoked by uid 48); 23 Mar 2013 12:37:04 -0000
From: "nmm1 at cam dot ac.uk" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/56697] New: Erroneous rejection of use of private constructor in public method
Date: Sat, 23 Mar 2013 12:37:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: new
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Keywords:
X-Bugzilla-Severity: normal
X-Bugzilla-Who: nmm1 at cam dot ac.uk
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Priority: P3
X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org
X-Bugzilla-Target-Milestone: ---
X-Bugzilla-Changed-Fields:
Message-ID: <bug-56697-4@http.gcc.gnu.org/bugzilla/>
X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/
Auto-Submitted: auto-generated
Content-Type: text/plain; charset="UTF-8"
MIME-Version: 1.0
X-SW-Source: 2013-03/txt/msg01641.txt.bz2
Content-length: 1878
http://gcc.gnu.org/bugzilla/show_bug.cgi?idV697
Bug #: 56697
Summary: Erroneous rejection of use of private constructor in
public method
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: nmm1@cam.ac.uk
What I believe is an erroneous rejection of a program. Unfortunately, the
C++ standard is too contorted in this area for me to be absolutely sure,
Anyway, Intel is happy with it.
wheeler$cat junk.cpp
class weeble {
public:
weeble () {}
class wurble {
int n;
wurble (int k) : n(k) {}
public:
wurble () : n(0) {}
};
wurble fred (int k) {return wurble(k);}
};
int main () {
weeble a;
weeble::wurble b = a.fred(42);
}
wheeler$/home/nmm/GCC/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/home/nmm/GCC/bin/g++
COLLECT_LTO_WRAPPER=/home/nmm/GCC/libexec/gcc/x86_64-unknown-linux-gnu/4.8.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc-4.8-20130127/configure --prefix=/home/nmm/GCC
--disable-bootstrap --enable-checking=all --enable-languages=c,c++,fortran :
(reconfigured) ../gcc-4.8-20130127/configure --prefix=/home/nmm/GCC
--disable-bootstrap --enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.8.0 20130127 (experimental) (GCC)
wheeler$/home/nmm/GCC/bin/g++ junk.cpp
junk.cpp: In member function 'weeble::wurble weeble::fred(int)':
junk.cpp:6:9: error: 'weeble::wurble::wurble(int)' is private
wurble (int k) : n(k) {}
^
junk.cpp:10:41: error: within this context
wurble fred (int k) {return wurble(k);}
^
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/56694] [4.8/4.9 Regression] Internal compiler error when compiling OpenMP code
2013-03-23 9:01 [Bug c++/56694] New: Internal compiler error when compiling OpenMP code jurgen.knodlseder at irap dot omp.eu
` (2 preceding siblings ...)
2013-03-23 12:24 ` jurgen.knodlseder at irap dot omp.eu
@ 2013-03-25 10:26 ` rguenth at gcc dot gnu.org
2013-03-25 12:29 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-03-25 10:26 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56694
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |ASSIGNED
AssignedTo|unassigned at gcc dot |rguenth at gcc dot gnu.org
|gnu.org |
Target Milestone|--- |4.8.1
Summary|Internal compiler error |[4.8/4.9 Regression]
|when compiling OpenMP code |Internal compiler error
| |when compiling OpenMP code
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> 2013-03-25 10:25:58 UTC ---
Confirmed.
> /abuild/rguenther/gcc48-g/gcc/cc1plus -quiet t.ii -fopenmp -m32 -O2
GObservations_optimizer.cpp: In member function 'virtual void
GObservations::optimizer::eval(const GOptimizerPars&)':
GObservations_optimizer.cpp:188:6: error: location references block not in
block tree
# VUSE <.MEM_295>
std::terminate ();
GObservations_optimizer.cpp:188:6: internal compiler error: verify_gimple
failed
0xc92abe verify_gimple_in_cfg(function*)
/space/rguenther/src/svn/gcc-4_8-branch/gcc/tree-cfg.c:4738
0xb768c1 execute_function_todo
/space/rguenther/src/svn/gcc-4_8-branch/gcc/passes.c:1963
0xb75c19 do_per_function
/space/rguenther/src/svn/gcc-4_8-branch/gcc/passes.c:1701
0xb769e5 execute_todo
/space/rguenther/src/svn/gcc-4_8-branch/gcc/passes.c:1996
Please submit a full bug report,
I will take a look.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/56694] [4.8/4.9 Regression] Internal compiler error when compiling OpenMP code
2013-03-23 9:01 [Bug c++/56694] New: Internal compiler error when compiling OpenMP code jurgen.knodlseder at irap dot omp.eu
` (3 preceding siblings ...)
2013-03-25 10:26 ` [Bug c++/56694] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
@ 2013-03-25 12:29 ` rguenth at gcc dot gnu.org
2013-03-25 12:49 ` rguenth at gcc dot gnu.org
2013-03-25 14:54 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-03-25 12:29 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56694
--- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> 2013-03-25 12:28:55 UTC ---
Reduced testcase:
class GException {
public:
class vector_mismatch {
public:
vector_mismatch(int size1, int size2);
};
};
class GVector{
public:
GVector& operator+=(const GVector& v);
int m_num;
double* m_data;
};
inline GVector& GVector::operator+= (const GVector& v)
{
if (m_num != v.m_num)
throw GException::vector_mismatch(m_num, v.m_num);
for (int i = 0; i < m_num; ++i) m_data[i] += v.m_data[i];
};
void eval(GVector* m_gradient, GVector* vect_cpy_grad, int n)
{
#pragma omp sections
{
for (int i = 0; i < n; ++i)
*m_gradient += vect_cpy_grad[i];
}
}
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/56694] [4.8/4.9 Regression] Internal compiler error when compiling OpenMP code
2013-03-23 9:01 [Bug c++/56694] New: Internal compiler error when compiling OpenMP code jurgen.knodlseder at irap dot omp.eu
` (4 preceding siblings ...)
2013-03-25 12:29 ` rguenth at gcc dot gnu.org
@ 2013-03-25 12:49 ` rguenth at gcc dot gnu.org
2013-03-25 14:54 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-03-25 12:49 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56694
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> 2013-03-25 12:49:34 UTC ---
It's the lower RESX pass that causes the location to appear. And likely
bogus locations in the EH on-the-side info:
x = gimple_build_call (fn, 0);
gimple_set_location (x, dst_r->u.must_not_throw.failure_loc);
thus, the must_not_throw failure_loc either shouldn't have a BLOCK associated
or it needs re-mapping during inlining / cloning.
Using LOCATION_LOCUS above fixes the ICE.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug c++/56694] [4.8/4.9 Regression] Internal compiler error when compiling OpenMP code
2013-03-23 9:01 [Bug c++/56694] New: Internal compiler error when compiling OpenMP code jurgen.knodlseder at irap dot omp.eu
` (5 preceding siblings ...)
2013-03-25 12:49 ` rguenth at gcc dot gnu.org
@ 2013-03-25 14:54 ` rguenth at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2013-03-25 14:54 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56694
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Known to fail| |4.8.0
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> 2013-03-25 14:54:26 UTC ---
Author: rguenth
Date: Mon Mar 25 14:46:08 2013
New Revision: 197047
URL: http://gcc.gnu.org/viewcvs?rev=197047&root=gcc&view=rev
Log:
2013-03-25 Richard Biener <rguenther@suse.de>
PR middle-end/56694
* tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
must-not-throw stmt location.
* g++.dg/torture/pr56694.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/torture/pr56694.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-eh.c
Author: rguenth
Date: Mon Mar 25 14:47:56 2013
New Revision: 197048
URL: http://gcc.gnu.org/viewcvs?rev=197048&root=gcc&view=rev
Log:
2013-03-25 Richard Biener <rguenther@suse.de>
PR middle-end/56694
* tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
must-not-throw stmt location.
* g++.dg/torture/pr56694.C: New testcase.
Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/torture/pr56694.C
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/tree-eh.c
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2013-03-25 14:54 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-23 9:01 [Bug c++/56694] New: Internal compiler error when compiling OpenMP code jurgen.knodlseder at irap dot omp.eu
2013-03-23 9:19 ` [Bug c++/56694] " mpolacek at gcc dot gnu.org
2013-03-23 10:22 ` jurgen.knodlseder at irap dot omp.eu
2013-03-23 12:24 ` jurgen.knodlseder at irap dot omp.eu
2013-03-25 10:26 ` [Bug c++/56694] [4.8/4.9 Regression] " rguenth at gcc dot gnu.org
2013-03-25 12:29 ` rguenth at gcc dot gnu.org
2013-03-25 12:49 ` rguenth at gcc dot gnu.org
2013-03-25 14:54 ` rguenth at gcc dot gnu.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).