m68k/cpu32 TRAP instruction?

Josef Wolf jw@raven.inka.de
Thu Oct 4 12:20:00 GMT 2018


Hello,

I have a project with a mc68332 controller (cpu32 based). This project worked
great with older releases of GCC. gcc-2.95 up to gcc-4.8.1 worked great.

For various reasons, I upgraded to GCC-8.2.0 and get various crashes
now. Closer investigations reveal, that GCC now uses the "trap #7" and
"trap #15" instructions.

Why does gcc use those instructions? There is nothing special in the code
which is now translated into those trap instructions. I don't use floating
point at all, so I don't see any reason to use those instructions (and crash
on them).

Any hints?

Thanks!

-- 
Josef Wolf
jw@raven.inka.de



More information about the Gcc-help mailing list