If I compile and link a file with -m68000 option the code contains still 68040
instructions in startup and finish code. We use the linker script mvem162.ld
from Newlib which includes the .init and .fini sections (I think they are only
necessary in C++ and Java).
The problem is that the crtstuff.c code is compiled with xgcc without any
options which results in 68040. If the Makefile.in is patched so that it
contains -m68000, all works.
--
Summary: Bootstrap code contains 68040 instructions
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: bootstrap
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bernhard dot walle at gmx dot de
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-linux-gnu
GCC host triplet: i686-linux-gnu
GCC target triplet: m68k-elf
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18385