https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62663
Bug ID: 62663 Summary: m68k / coldfire : compiling with -msep-data breaks the code Product: gcc Version: 4.6.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: angelo70 at gmail dot com Created attachment 33430 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33430&action=edit c file Dear, i am compiling a simple test file (attached), generated output includes non coldfire mcf5307/m68k opcodes. /toolchain_path/m68k-elf-gcc -I../../../../include -I../../include -D__KERNEL__ -DCONFIG_SYS_TEXT_BASE=0xffc00000 -Wall -Wstrict-prototypes -Wno-format-security -fno-builtin -ffreestanding -fno-stack-protector -g -Wno-format-nonliteral -fno-toplevel-reorder -D__M68K__ -mcpu=5307 -Os -ffunction-sections -fdata-sections -ffixed-d7 -msep-data -pipe cpu_init_t.c -c Wrong opcode is for the c call to square_tes() jpm (see after the 3 nop, 0x4e71). removing "-msep-data" i see correct opcode.