On 10/4/18 6:19 AM, Josef Wolf wrote: > 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? GCC will replace a NULL pointer dereference or division by zero with a trap instruction. jeff