public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/35247]  New: Usage of openmp pragmas causes internal compiler error
@ 2008-02-18  8:53 ttsiod at softlab dot ntua dot gr
  2008-02-18  9:42 ` [Bug c++/35247] " rguenth at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: ttsiod at softlab dot ntua dot gr @ 2008-02-18  8:53 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2005 bytes --]

I tried compiling my open source application with GCC. My application uses
OpenMP to make use of available CPU cores and run faster. I got an internal
compiler error from GCC, even though the same code compiles and runs fine
(using both cores) under Intel's ICC. It also compiles and runs fine with GCC
when I don't use the -fopenmp option (but then it only uses one core).

My GCC -v output: 

Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ./configure --enable-languages=c,c++ --prefix=/opt/gcc-4.2.3
--exec_prefix=/opt/gcc-4.2.3
Thread model: posix
Version gcc 4.2.3

My system: (uname -a)
Linux home 2.6.23 #2 SMP PREEMPT Sun Nov 11 11:44:34 EET 2007 i686 Intel(R)
Core(TM)2 Duo CPU     E4500  @ 2.20GHz GenuineIntel GNU/Linux

The command line that triggers the bug is simple:

g++ -c -fopenmp Scene.ii

It reports:
src/Scene.cc: In member function 'void Scene::renderPhong(const Camera&,
Screen&)':
src/Scene.cc:165: åóùôåñéêü óöÜëìá ìåôáãëùôôéóôÞ: in create_tmp_var, at
gimplify.c:487
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

Scene.ii (the preprocessed output), is available here:
http://users.softlab.ntua.gr/~ttsiod/Scene.ii.bz2

If you remove the -fopenmp, the code compiles fine.

In case you want to see what the code is used for, the open source project and
its full code is available here:

http://users.softlab.ntua.gr/~ttsiod/renderer.html


-- 
           Summary: Usage of openmp pragmas causes internal compiler error
           Product: gcc
           Version: 4.2.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: ttsiod at softlab dot ntua dot gr
 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=35247


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug c++/35247] Usage of openmp pragmas causes internal compiler error
  2008-02-18  8:53 [Bug c++/35247] New: Usage of openmp pragmas causes internal compiler error ttsiod at softlab dot ntua dot gr
@ 2008-02-18  9:42 ` rguenth at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-02-18  9:42 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2008-02-18 09:41 -------


*** This bug has been marked as a duplicate of 35185 ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-02-18  9:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-18  8:53 [Bug c++/35247] New: Usage of openmp pragmas causes internal compiler error ttsiod at softlab dot ntua dot gr
2008-02-18  9:42 ` [Bug c++/35247] " rguenth 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).