[Bug c++/27746] New: ICE on openmp code when using _Pragma from macro

2006-05-23 Thread bowie dot owens at csiro dot au
Using gcc 4.2 from SVN:

Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc/configure --prefix=/local_scratch/owe043/gcc_svn
Thread model: posix
gcc version 4.2.0 20060523 (experimental)

I get an ICE when when compiling (g++ -fopenmp omp.cc) the following program:

#define parallel_for _Pragma("omp parallel for") for
#define parallel _Pragma("omp parallel")
int
main()
{
parallel {
}

parallel_for (int i = 0; i < 1000; ++i) {
}

return 0;
}


-- 
   Summary: ICE on openmp code when using _Pragma from macro
   Product: gcc
   Version: 4.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bowie dot owens at csiro dot au
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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



[Bug c++/27746] ICE on openmp code when using _Pragma from macro

2006-05-23 Thread bowie dot owens at csiro dot au


--- Comment #1 from bowie dot owens at csiro dot au  2006-05-24 01:47 
---
Created an attachment (id=11502)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11502&action=view)
c++ file which causes ICE


-- 


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



[Bug preprocessor/27746] ICE on openmp code when using _Pragma from macro

2006-05-23 Thread bowie dot owens at csiro dot au


--- Comment #8 from bowie dot owens at csiro dot au  2006-05-24 03:42 
---
I found out about _Pragma from the following page (at the bottom):

http://gcc.gnu.org/onlinedocs/gcc-4.1.0/gcc/Function-Attributes.html

While it is not essential behaviour to allow _Pragma's to be generated from
macros, there are cases where it would be very useful. In my case I would
really like to be able to control the OpenMP directives that get included at a
fine grained level without littering my code with #ifdef's.


-- 


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



[Bug c++/27870] New: ICE in build_outer_var_ref, at omp-low.c:585 with openmp

2006-06-01 Thread bowie dot owens at csiro dot au
An orphaned for loop with a reduction clause causes an ICE. Note that the
non-orphaned for loop doesn't.

g++ -v:

Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc_svn/configure --enable-languages=c,c++
--prefix=/local_scratch/owe043/gcc_svn
Thread model: posix
gcc version 4.2.0 20060601 (experimental)

compiled with:

g++ -save-temps -c -fopenmp  foo.cc


-- 
   Summary: ICE in build_outer_var_ref, at omp-low.c:585 with openmp
   Product: gcc
   Version: 4.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bowie dot owens at csiro dot au
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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



[Bug c++/27870] ICE in build_outer_var_ref, at omp-low.c:585 with openmp

2006-06-01 Thread bowie dot owens at csiro dot au


--- Comment #1 from bowie dot owens at csiro dot au  2006-06-02 02:41 
---
Created an attachment (id=11575)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11575&action=view)
pre-processed c++ code that triggers the ICE

Compiling I get the following:

foo.cc: In function 'void mat_product(mat_c_t&, const mat_a_t&, const mat_b_t&,
size_t, size_t, size_t) [with mat_c_t = double**, mat_a_t = double**, mat_b_t =
double**]':
foo.cc:15: internal compiler error: in build_outer_var_ref, at omp-low.c:585


-- 


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



[Bug libgomp/30703] New: ICE Segmentation fault on using OpenMP

2007-02-04 Thread bowie dot owens at csiro dot au
Using the following version from svn.

g++ -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc_4_2_svn/configure
--prefix=/local_scratch/owe043/gcc_4_2 --enable-languages=c,c++
Thread model: posix
gcc version 4.2.0 20070201 (prerelease)

On a Fedora Core 4 system.

Using the pre-processed file (to be attached) the ICE occurs with the following
command line:

g++ -fopenmp foo.ii

Note that no ICE occurs if the -fopenmp is omitted.

The expected behaviour is compilation completed possibly with errors or
warnings. The actual behaviour is an ICE. The error message is as below.

foo.cc:509:   instantiated from here
nlopt/simulated_annealing.h:149: internal compiler error: Segmentation fault


-- 
   Summary: ICE Segmentation fault on using OpenMP
   Product: gcc
   Version: 4.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libgomp
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bowie dot owens at csiro dot au
 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=30703



[Bug libgomp/30703] ICE Segmentation fault on using OpenMP

2007-02-04 Thread bowie dot owens at csiro dot au


--- Comment #1 from bowie dot owens at csiro dot au  2007-02-04 23:12 
---
Created an attachment (id=13006)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13006&action=view)
A preprocessed version of foo.cc which causes the ICE (compressed with bzip2).


-- 


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



[Bug c++/32118] New: ICE in c++ code

2007-05-27 Thread bowie dot owens at csiro dot au
internal compiler error: Segmentation fault occurs in c++ code.

Built from gcc 4.2.0 release source.

g++ -v:
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.2.0/configure --prefix=/local_scratch/owe043/gcc_4_2
--enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.2.0

To reproduce ICE command is:

g++ foo.ii

Output of g++ is:

foo.cc:118: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See http://gcc.gnu.org/bugs.html> for instructions.

Will attach foo.ii.


-- 
   Summary: ICE in c++ code
   Product: gcc
   Version: 4.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bowie dot owens at csiro dot au
 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=32118



[Bug c++/32118] ICE in c++ code

2007-05-27 Thread bowie dot owens at csiro dot au


--- Comment #1 from bowie dot owens at csiro dot au  2007-05-28 01:42 
---
Created an attachment (id=13619)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13619&action=view)
gzip'ed preprocessed source to reproduce ICE


-- 


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



[Bug libgomp/26611] New: openmp gomp ICE at gimplify.c:4257

2006-03-08 Thread bowie dot owens at csiro dot au
I consistently get the following ICE on this C++ code.

omp_harness.cpp:39: internal compiler error: in omp_add_variable, at
gimplify.c:4257

The code is not legit and there are several errors but this is because I have
cut down a larger program.

I am using the gomp-branch and gcc -v reports:

Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gomp-20050608-branch/configure
--prefix=/local_scratch/owe043/gcc_gomp
Thread model: posix
gcc version 4.2.0-gomp-20050608-branch 20060216 (experimental) (merged
20060216)

The command line I used to compile was:

g++ -save-temps -fopenmp omp_harness.cpp


-- 
   Summary: openmp gomp ICE at gimplify.c:4257
   Product: gcc
   Version: 4.2.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: libgomp
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bowie dot owens at csiro dot au
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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



[Bug libgomp/26611] openmp gomp ICE at gimplify.c:4257

2006-03-08 Thread bowie dot owens at csiro dot au


--- Comment #1 from bowie dot owens at csiro dot au  2006-03-08 22:34 
---
Created an attachment (id=10999)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10999&action=view)
preprocessed output from save-temps that triggers ICE

GZIP compressed to make it within the size limit. Will try and make a smaller
example that doesn't involve valarray or iostreams.


-- 


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



[Bug libgomp/26611] openmp gomp ICE at gimplify.c:4257

2006-03-08 Thread bowie dot owens at csiro dot au


--- Comment #2 from bowie dot owens at csiro dot au  2006-03-08 22:39 
---
Created an attachment (id=11000)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11000&action=view)
simpler preprocessed C++ code that causes ICE

Removed include of valarray and iostream to produce simpler preprocessed C++
code that still triggers ICE.


-- 

bowie dot owens at csiro dot au changed:

   What|Removed |Added

  Attachment #10999|0   |1
is obsolete||


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