http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41557
Fabrizio Gennari <fabrizio.ge at tiscali dot it> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fabrizio.ge at tiscali dot | |it --- Comment #1 from Fabrizio Gennari <fabrizio.ge at tiscali dot it> 2012-03-04 17:24:31 UTC --- Just tried building gcc-4.6.3 as DJGPP cross-compiler running on Ubuntu, but encountered a very similar bug to this one, only occurring in cc1 instead of cc1plus. The compiler builds fine, but then, when it has to compile libgcc, it segfaults. I tried running the compiler with a trivial C program (int main(){return 0;}). It segfaults. I tried to debug cc1 with gdb. The lines causing the crash are in c-common.c: int16_type_node = TREE_TYPE (identifier_global_value (c_get_ident (INT16_TYPE))); The call to identifier_global_value() returns NULL, and the pointer is dereferenced by the macro TREE_TYPE, causing the crash. This means that DJGPP cannot be used as a target with recent versions of gcc. It may be little used nowadays, but, since it is not unsupported, it should work.