[Bug c++/48551] New: Following source code crashes the c++ compiler on coldfire platform.

miro.kropacek at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Apr 11 09:46:00 GMT 2011


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

           Summary: Following source code crashes the c++ compiler on
                    coldfire platform.
           Product: gcc
           Version: 4.5.2
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: miro.kropacek@gmail.com


m68k-atari-mint-g++ -v -fomit-frame-pointer -mcpu=5475 -g -O2 -DHAVE_CONFIG_H
-I.. -I./../goo -I./../fofi -I.   -c Splash.ii 
Using built-in specs.
COLLECT_GCC=m68k-atari-mint-g++
COLLECT_LTO_WRAPPER=/home/mikro/gnu-tools/libexec/gcc/m68k-atari-mint/4.5.2/lto-wrapper
Target: m68k-atari-mint
Configured with: ../gcc-4.5.2/configure --target=m68k-atari-mint
--prefix=/home/mikro/gnu-tools --enable-languages=c,c++ --disable-nls
--disable-libstdcxx-pch 'CFLAGS_FOR_TARGET=-O2 -fomit-frame-pointer'
'CXXFLAGS_FOR_TARGET=-O2 -fomit-frame-pointer'
Thread model: single
gcc version 4.5.2 (MiNT 20110206) (GCC) 
COLLECT_GCC_OPTIONS='-v' '-fomit-frame-pointer' '-mcpu=5475' '-g' '-O2'
'-DHAVE_CONFIG_H' '-I..' '-I./../goo' '-I./../fofi' '-I.' '-c'
 /home/mikro/gnu-tools/libexec/gcc/m68k-atari-mint/4.5.2/cc1plus -fpreprocessed
Splash.ii -quiet -dumpbase Splash.ii -mcpu=5475 -auxbase Splash -g -O2 -version
-fomit-frame-pointer -o /tmp/ccEwEpj3.s
GNU C++ (GCC) version 4.5.2 (MiNT 20110206) (m68k-atari-mint)
        compiled by GNU C version 4.4.3, GMP version 4.3.2, MPFR version
2.4.2-p1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++ (GCC) version 4.5.2 (MiNT 20110206) (m68k-atari-mint)
        compiled by GNU C version 4.4.3, GMP version 4.3.2, MPFR version
2.4.2-p1, MPC version 0.8.1
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 7c132bafa38d6cea47b5bd54ad75cb89
Splash.cc: In member function 'void Splash::flattenCurve(SplashCoord,
SplashCoord, SplashCoord, SplashCoord, SplashCoord, SplashCoord, SplashCoord,
SplashCoord, SplashCoord*, SplashCoord, SplashPath*)':
Splash.cc:1380:1: error: unrecognizable insn:
(insn 385 384 20 2 Splash.cc:1320 (set (reg:DF 16 %fp0)
        (mem/c/i:DF (plus:SI (reg/f:SI 15 %sp)
                (reg:SI 0 %d0)) [3 x0+0 S8 A32])) -1 (nil))
Splash.cc:1380:1: internal compiler error: in extract_insn, at recog.c:2103
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

It's true m68k-atari-mint is not officially supported but I believe this is
common coldfire problem. For example, if I replace -mcpu=5475 with -m68020-60,
it works like a charm.



More information about the Gcc-bugs mailing list