[Bug c++/56694] New: Internal compiler error when compiling OpenMP code

2013-03-23 Thread jurgen.knodlseder at irap dot omp.eu


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: unassig...@gcc.gnu.org

ReportedBy: jurgen.knodlse...@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  for instructions.



I created a branch on GitHub to download the relevant code:

https://github.com/gammalib/gammalib/tree/gcc480-compile-error


[Bug c++/56694] Internal compiler error when compiling OpenMP code

2013-03-23 Thread jurgen.knodlseder at irap dot omp.eu

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

--- Comment #2 from Jürgen Knödlseder  
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  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  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.knodlse...@irap.omp.eu


[Bug c++/56694] Internal compiler error when compiling OpenMP code

2013-03-23 Thread jurgen.knodlseder at irap dot omp.eu

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

--- Comment #4 from Jürgen Knödlseder  
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