[Bug translation/33126] New: gimplification failed during stdc++ translation

torsten at debian dot org gcc-bugzilla@gcc.gnu.org
Mon Aug 20 19:09:00 GMT 2007


Greetings, you fearless gcc developers!

While building a cross toolchain for the powerpc-rtems target, I ran into a
gimplification error using gcc trunk as of today:

torsten@pulsar:~/rtems/gnu/gcc$ svn info
URL: svn://gcc.gnu.org/svn/gcc/trunk
Revision: 127649

torsten@pulsar:~/rtems/gnu/gcc$
/home/torsten/rtems/gnu/powerpc-rtems/./gcc/xgcc -v
Using built-in specs.
Target: powerpc-rtems
Configured with: ../combined/configure --target=powerpc-rtems
--prefix=/home/torsten/opt/powerpc-rtems --with-newlib --enable-threads
--enable-languages=c,c++
Thread model: rtems
gcc version 4.3.0 20070820 (experimental)

The host system is Debian unstable as of last week, but I don't think that
makes a difference :-)

Complete command line: 
torsten@pulsar:~/rtems/gnu/powerpc-rtems/powerpc-rtems/libstdc++-v3/libsupc++$
/home/torsten/rtems/gnu/powerpc-rtems/./gcc/xgcc -shared-libgcc
-B/home/torsten/rtems/gnu/powerpc-rtems/./gcc -nostdinc++
-L/home/torsten/rtems/gnu/powerpc-rtems/powerpc-rtems/libstdc++-v3/src
-L/home/torsten/rtems/gnu/powerpc-rtems/powerpc-rtems/libstdc++-v3/src/.libs
-nostdinc -B/home/torsten/rtems/gnu/powerpc-rtems/powerpc-rtems/newlib/
-isystem
/home/torsten/rtems/gnu/powerpc-rtems/powerpc-rtems/newlib/targ-include
-isystem /home/torsten/rtems/gnu/combined/newlib/libc/include
-B/home/torsten/opt/powerpc-rtems/powerpc-rtems/bin/
-B/home/torsten/opt/powerpc-rtems/powerpc-rtems/lib/ -isystem
/home/torsten/opt/powerpc-rtems/powerpc-rtems/include -isystem
/home/torsten/opt/powerpc-rtems/powerpc-rtems/sys-include
-L/home/torsten/rtems/gnu/powerpc-rtems/./ld
-I/home/torsten/rtems/gnu/combined/libstdc++-v3/../gcc
-I/home/torsten/rtems/gnu/powerpc-rtems/powerpc-rtems/libstdc++-v3/include/powerpc-rtems
-I/home/torsten/rtems/gnu/powerpc-rtems/powerpc-rtems/libstdc++-v3/include
-I/home/torsten/rtems/gnu/combined/libstdc++-v3/libsupc++
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -O2 -c
../../../../combined/libstdc++-v3/libsupc++/guard.cc -o guard.o

gimplification failed:
&fake_mutex <addr_expr 0xb7a660a0
    type <pointer_type 0xb7a609a0
        type <array_type 0xb7a608c0 fake_recursive_mutex type <integer_type
0xb7b8c1c0 char>
            SI
            size <integer_cst 0xb7b793cc constant invariant 32>
            unit size <integer_cst 0xb7b79120 constant invariant 4>
            user align 32 symtab 0 alias set -1 canonical type 0xb7c673f0
domain <integer_type 0xb7c04540>
            pointer_to_this <pointer_type 0xb7a609a0>>
        unsigned SI size <integer_cst 0xb7b793cc 32> unit size <integer_cst
0xb7b79120 4>
        align 32 symtab 0 alias set -1 canonical type 0xb7a60a10>
    constant invariant
    arg 0 <var_decl 0xb7a68000 fake_mutex type <array_type 0xb7a608c0
fake_recursive_mutex>
        addressable used static tree_1 decl_5 SI file
../../../../combined/libstdc++-v3/libsupc++/guard.cc line 51 size <integer_cst
0xb7b793cc 32> unit size <integer_cst 0xb7b79120 4>
        align 32 context <namespace_decl 0xb7a60700 D.3619>
        (mem/s/c:SI (symbol_ref:SI ("_ZN12_GLOBAL__N_110fake_mutexE") [flags
0x82] <var_decl 0xb7a68000 fake_mutex>) [33 fake_mutex+0 S4 A32])
        chain <type_decl 0xb7a60850 fake_recursive_mutex type <array_type
0xb7a608c0 fake_recursive_mutex>
            VOID file ../../../../combined/libstdc++-v3/libsupc++/guard.cc line
50
            align 1 context <namespace_decl 0xb7a60700 D.3619> attributes
<tree_list 0xb7a65380> result <array_type 0xb7c673f0> chain <var_decl
0xb7a56f60 static_mutex>>>>
../../../../combined/libstdc++-v3/libsupc++/guard.cc: In function
‘void<unnamed>::init()’:
../../../../combined/libstdc++-v3/libsupc++/guard.cc:54: internal compiler
error: gimplification failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.


I'll attach the full (preprocessed) source once I get the chance by this silly
web frontend ;-)

Friendly, Torsten


-- 
           Summary: gimplification failed during stdc++ translation
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: translation
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: torsten at debian dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: powerpc-unknown-rtems


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



More information about the Gcc-bugs mailing list