[LLVMbugs] [Bug 7805] New: Bad interaction with OpenMP

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Aug 3 17:59:07 PDT 2010


           Summary: Bad interaction with OpenMP
           Product: dragonegg
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: New Bugs
        AssignedTo: baldrick at free.fr
        ReportedBy: luked at cs.rochester.edu
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=5316)
 --> (http://llvm.org/bugs/attachment.cgi?id=5316)
g++-4.5.1 -fopenmp -S -O1 -fplugin=<path-to-dragonegg.so> test.cx

GCC's OpenMP code transformation, combined with -O1 and higher, creates a tree
node that dragonegg is not expecting. 

$ gcc-4.5.1 -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../configure --prefix=/opt/local --program-suffix=-4.5.1
--enable-languages=c,c++ --enable-shared --without-included-gettext
--enable-threads=posix --enable-nls --enable-clocale=gnu
--enable-libstdcxx-debug --enable-checking=release --enable-plugin --enable-lto
Thread model: posix
gcc version 4.5.1 (GCC)

$ uname -a
Linux node1x4x2a 2.6.28-18-generic #60-Ubuntu SMP Fri Mar 12 04:26:47 UTC 2010
x86_64 GNU/Linux

$ g++-4.5.1 -fopenmp -S -O1 -fplugin=../dragonegg/dragonegg.so test.cxx
 <var_decl 0x7f59a41dc320 i
    type <integer_type 0x7f59a41d0498 int public SI
        size <integer_cst 0x7f59a41bb960 constant 32>
        unit size <integer_cst 0x7f59a41bb668 constant 4>
        align 32 symtab 0 alias set 0 canonical type 0x7f59a41d0498 precision
32 min <integer_cst 0x7f59a41bb8e8 -2147483648> max <integer_cst 0x7f59a41bb910
        pointer_to_this <pointer_type 0x7f59a41e4540>>
    used SI file test.cxx line 1 col 14 size <integer_cst 0x7f59a41bb960 32>
unit size <integer_cst 0x7f59a41bb668 4>
    align 32 context <function_decl 0x7f59a150cb00 _Z3bari.omp_fn.0>>
Not a gimple constant!
UNREACHABLE executed at /home/luked/cgo/dragonegg/llvm-convert.cpp:5766!
*** WARNING *** there are active plugins, do not report this as a bug unless
you can reproduce it without enabling any plugins.
Event                            | Plugins
PLUGIN_FINISH_UNIT               | dragonegg
PLUGIN_FINISH                    | dragonegg
PLUGIN_START_UNIT                | dragonegg
test.cxx: In function ‘_Z3bari.omp_fn.0’:
test.cxx:4:14: internal compiler error: Aborted
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list