http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54752
--- Comment #2 from Leith Bade <leith at leithalweapon dot geek.nz> 2012-10-01 10:40:18 UTC --- Yes that did fix the problem. Still it would be nice if the compiler said that rather than just crash with a cryptic error. Perhaps the linker should check that the same optimisations are being used for both compiling and linking. It could then print a useful error message to that effect.