With --enable-build-with-cxx I see In file included from ada/b_gnatb.c:252: ada/b_gnatb.c:5: error: previous declaration of 'void exit(int)' with 'C++' linkage /usr/include/stdlib.h:543: error: conflicts with new declaration with 'C' linkage /usr/include/stdlib.h:543: error: declaration of 'void exit(int) throw ()' throws different exceptions ada/b_gnatb.c:5: error: from previous declaration 'void exit(int)'
-- Summary: [boot with C++] Conflicting exit declaration in ada/b_gnatb.c Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: rguenth at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44431