linux-2.3.3 doesn't boot when compiled with egcs-2.93.22

Philip Blundell pb@nexus.co.uk
Mon May 31 21:06:00 GMT 1999


>The problem is that the Kernel makefile currently has no way to detect
>the compiler version used (kernel has no configure). Passing -fno-strict-alias

Here's what we use for the ARM port (see arch/arm/Makefile).  I imagine you 
could use something similar to decide when to turn off strict aliasing.

CONFIG_GCC_NEW		:= $(shell if $(CC) --version 2>&1 | grep '^2\.7' > /dev/null; then echo n; else echo y; fi)

p.




More information about the Gcc-bugs mailing list