http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46574
Summary: ada bootstrap fails with --enable-build-with-cxx. Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada AssignedTo: unassig...@gcc.gnu.org ReportedBy: pl...@agmk.net Host: x86_64-gnu-linux Target: x86_64-gnu-linux Build: x86_64-gnu-linux hi, current trunk doesn't bootstrap ADA with --enable-build-with-cxx. first problem: ada/gcc-interface/utils2.c: In function ‘int compare_elmt_bitpos(const void*, const void*)’: ada/gcc-interface/utils2.c:1657:42: error: duplicate ‘const’ ada/gcc-interface/utils2.c:1658:42: error: duplicate ‘const’ quick fix: diff --git a/gcc/ada/gcc-interface/utils2.c b/gcc/ada/gcc-interface/utils2.c index 43599fa..bad121c 100644 --- a/gcc/ada/gcc-interface/utils2.c +++ b/gcc/ada/gcc-interface/utils2.c @@ -1654,8 +1654,8 @@ build_call_raise_column (int msg, Node_Id gnat_node) static int compare_elmt_bitpos (const PTR rt1, const PTR rt2) { - const constructor_elt * const elmt1 = (const constructor_elt const *) rt1; - const constructor_elt * const elmt2 = (const constructor_elt const *) rt2; + const constructor_elt * const elmt1 = (const constructor_elt * const) rt1; + const constructor_elt * const elmt2 = (const constructor_elt * const) rt2; const_tree const field1 = elmt1->index; const_tree const field2 = elmt2->index; const int ret and right after there's another problem in genertated file: In file included from ada/b_gnatb.c:256:0: ada/b_gnatb.c:5:13: error: previous declaration of ‘void exit(int)’ with ‘C++’ linkage /usr/include/stdlib.h:544:70: error: conflicts with new declaration with ‘C’ linkage /usr/include/stdlib.h:544:70: error: declaration of ‘void exit(int) throw ()’ throws different exceptions ada/b_gnatb.c:5:13: error: from previous declaration ‘void exit(int)’