[Bug tree-optimization/31769] ICE with OpenMP and exceptions

2007-05-15 Thread supermar at gmx dot de


--- Comment #1 from supermar at gmx dot de  2007-05-15 14:09 ---
I can confirm the bug for i486-unknown-linux-gnu, too.


-- 

supermar at gmx dot de changed:

   What|Removed |Added

   Keywords||ice-on-valid-code, openmp


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



[Bug tree-optimization/31769] New: ICE with OpenMP and exceptions

2007-04-30 Thread supermar at gmx dot de
Hi,

The following small program gives ICE when compiled like this:

g++ -Wall -fopenmp -O2 -I$POLDEST/ext/include -E -o./test_pp.cc ./test.cc
g++ -Wall -fopenmp -O2 -L$POLDEST/ext/lib -o./test ./test_pp.cc -lblitz -lgomp
./test.cc: In function ‘int main()’:
./test.cc:3: internal compiler error: Segmentation fault

When removing the 'try-catch'-part it works fine.


#include blitz/array.h

int main()
{
  try
  {
blitz::Arrayfloat,1 transOrig( 10);
blitz::Arrayfloat,1 trans( 10);
blitz::Range myRange( 0, 9);

#pragma omp parallel for
for( int i = 0; i  2; ++i)
{
  trans += transOrig( myRange);
}
  }
  catch( std::exception)
  {}
}

Here the preprocessed source: http://data.marssoft.de/attachment-bug-gcc.bz2
And my specs: ~ gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: [...]/gcc-4.2-branch/configure -v --enable-languages=c,c++,f95
--prefix=[...]/extgcc-x86_64_gcc4-r124295 --enable-shared --with-system-zlib
--without-included-gettext --enable-threads=posix --enable-nls
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
--enable-debug --enable-gtk-cairo --with-mpfr=[...]/extgcc-x86_64_gcc4-r124295
--with-gmp=[...]/extgcc-x86_64_gcc4-r124295 --disable-werror
--enable-checking=release --disable-multilib --enable-bootstrap
Thread model: posix
gcc version 4.2.0 20070430 (prerelease)


-- 
   Summary: ICE with OpenMP and exceptions
   Product: gcc
   Version: 4.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: supermar at gmx dot de
  GCC host triplet: x86_64-unknown-linux-gnu


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



[Bug tree-optimization/30558] ICE with OpenMP and exceptions

2007-02-21 Thread supermar at gmx dot de


--- Comment #6 from supermar at gmx dot de  2007-02-21 20:31 ---
Just to note: I can confirm the bug for x86-architecture as well.


-- 


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



[Bug c++/30558] New: ICE with gcc-4.2 when compiling blitz++-program using exceptions

2007-01-23 Thread supermar at gmx dot de
The following small program gives an segmentation fault when compiled like
this:
extgccsrc g++ -Wall -fopenmp -O2 -I$POLDEST/ext/include -L$POLDEST/ext/lib
-otest test.cc -lblitz -lgomp -lm
test2.cc: In function ‘int main()’:
test2.cc:7: internal compiler error: Segmentation fault

When removing the 'try-catch'-part it works fine.


#include iostream
#include blitz/array.h

int main()
{
  try
  {
blitz::Arrayblitz::TinyVectorfloat,3,3 gradients(100,1,1);
gradients = blitz::TinyVectorfloat,3(0,0,0);

#pragma omp parallel for
for( int lev = 0; lev  100; ++lev)
{
  blitz::TinyVectorint,3 pos( lev,1,1);
  blitz::TinyVectorfloat,3 normGradForward = 
  gradients(pos);

  blitz::TinyVectorfloat,3 normGradLeft =
  blitz::cross( normGradForward, normGradForward);
}
  }
  catch( std::exception err)
  {
std::cerr  err.what()  std::endl
 try -h for help\n;
  }

  return 0;
}


Here my specs:

extgccsrc gcc -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: [...]/extgccsrc/gcc-4.2-20070117/configure
--enable-languages=c,c++ --prefix=[...]/extgcc-x86_64_gcc4 --enable-shared
--with-system-zlib --enable-threads=posix --enable-nls --enable-__cxa_atexit
--without-included-gettext --enable-clocale=gnu --enable-libstdcxx-debug
--enable-debug --with-mpfr=[...]/extgcc-x86_64_gcc4
--with-gmp=[...]/extgcc-x86_64_gcc4 --enable-checking=release
--disable-multilib --disable-werror --enable-bootstrap
Thread model: posix
gcc version 4.2.0 20070117 (prerelease)


-- 
   Summary: ICE with gcc-4.2 when compiling blitz++-program using
exceptions
   Product: gcc
   Version: unknown
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: supermar at gmx dot de
  GCC host triplet: x86_64-unknown-linux-gnu


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



[Bug c++/30558] ICE with gcc-4.2 when compiling blitz++-program using exceptions

2007-01-23 Thread supermar at gmx dot de


--- Comment #2 from supermar at gmx dot de  2007-01-23 17:22 ---

The uncompressed preprocessed source is 1,7MB (unless I'm doing something wrong
here, it's just the -E flag to the usual compiler call, right?).
I uploaded it to http://data.marssoft.de/attachment-bug-30558.bz2

Thanks.


-- 


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