On IRIX 5.3 bootstrapping end up like this: cc -c -g -DIN_GCC -DHAVE_CONFIG_H -I. -Icp -I/usr/people/schwarz/gcc-3.4.4/gcc -I/usr/people/schwarz/gcc-3.4.4/gcc/cp -I/usr/people/schwarz/gcc-3.4.4/gcc/../include -I../intl /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c -o cp/mangle.o cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2455: redeclaration of 'mangle_decl'; previous declaration at line 4297 in file '/usr/people/schwarz/gcc-3.4.4/gcc/cp/cp-tree.h' mangle_decl (const tree decl) ^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2455: Incompatible type for the function parameter mangle_decl (const tree decl) ------------------------^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2465: redeclaration of 'mangle_type_string'; previous declaration at line 4298 in file '/usr/people/schwarz/gcc-3.4.4/gcc/cp/cp-tree.h' mangle_type_string (const tree type) ^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2465: Incompatible type for the function parameter mangle_type_string (const tree type) -------------------------------^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2480: redeclaration of 'mangle_type'; previous declaration at line 4299 in file '/usr/people/schwarz/gcc-3.4.4/gcc/cp/cp-tree.h' mangle_type (const tree type) ^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2480: Incompatible type for the function parameter mangle_type (const tree type) ------------------------^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2516: redeclaration of 'mangle_typeinfo_for_type'; previous declaration at line 4300 in file '/usr/people/schwarz/gcc-3.4.4/gcc/cp/cp-tree.h' mangle_typeinfo_for_type (const tree type) ^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2516: Incompatible type for the function parameter mangle_typeinfo_for_type (const tree type) -------------------------------------^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2525: redeclaration of 'mangle_typeinfo_string_for_type'; previous declaration at line 4301 in file '/usr/people/schwarz/gcc-3.4.4/gcc/cp/cp-tree.h' mangle_typeinfo_string_for_type (const tree type) ^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2525: Incompatible type for the function parameter mangle_typeinfo_string_for_type (const tree type) --------------------------------------------^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2533: redeclaration of 'mangle_vtbl_for_type'; previous declaration at line 4302 in file '/usr/people/schwarz/gcc-3.4.4/gcc/cp/cp-tree.h' mangle_vtbl_for_type (const tree type) ^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2533: Incompatible type for the function parameter mangle_vtbl_for_type (const tree type) ---------------------------------^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2541: redeclaration of 'mangle_vtt_for_type'; previous declaration at line 4303 in file '/usr/people/schwarz/gcc-3.4.4/gcc/cp/cp-tree.h' mangle_vtt_for_type (const tree type) ^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2541: Incompatible type for the function parameter mangle_vtt_for_type (const tree type) --------------------------------^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2561: redeclaration of 'mangle_ctor_vtbl_for_type'; previous declaration at line 4304 in file '/usr/people/schwarz/gcc-3.4.4/gcc/cp/cp-tree.h' mangle_ctor_vtbl_for_type (const tree type, const tree binfo) ^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2561: Incompatible type for the function parameter mangle_ctor_vtbl_for_type (const tree type, const tree binfo) --------------------------------------^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2617: redeclaration of 'mangle_thunk'; previous declaration at line 4305 in file '/usr/people/schwarz/gcc-3.4.4/gcc/cp/cp-tree.h' mangle_thunk (tree fn_decl, const int this_adjusting, tree fixed_offset, ^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2617: Incompatible type for the function parameter mangle_thunk (tree fn_decl, const int this_adjusting, tree fixed_offset, --------------------------------------^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2686: redeclaration of 'mangle_conv_op_name_for_type'; previous declaration at line 4306 in file '/usr/people/schwarz/gcc-3.4.4/gcc/cp/cp-tree.h' mangle_conv_op_name_for_type (const tree type) ^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2686: Incompatible type for the function parameter mangle_conv_op_name_for_type (const tree type) -----------------------------------------^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2723: redeclaration of 'mangle_guard_variable'; previous declaration at line 4307 in file '/usr/people/schwarz/gcc-3.4.4/gcc/cp/cp-tree.h' mangle_guard_variable (const tree variable) ^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2723: Incompatible type for the function parameter mangle_guard_variable (const tree variable) ----------------------------------^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2741: redeclaration of 'mangle_ref_init_variable'; previous declaration at line 4308 in file '/usr/people/schwarz/gcc-3.4.4/gcc/cp/cp-tree.h' mangle_ref_init_variable (const tree variable) ^ cfe: Error: /usr/people/schwarz/gcc-3.4.4/gcc/cp/mangle.c, line 2741: Incompatible type for the function parameter mangle_ref_init_variable (const tree variable) -------------------------------------^ gmake[1]: *** [cp/mangle.o] Error 1 gmake[1]: Leaving directory `/usr/people/schwarz/gcc/gcc' gmake: *** [all-gcc] Error 2
The following patch fixes things: --- gcc-3.4.4/gcc/cp/cp-tree.h.orig 2005-07-28 20:29:00.000000000 +0200 +++ gcc-3.4.4/gcc/cp/cp-tree.h 2005-07-28 20:42:36.000000000 +0200 @@ -4294,18 +4294,18 @@ /* in mangle.c */ extern void init_mangle (void); -extern void mangle_decl (tree); -extern const char *mangle_type_string (tree); -extern tree mangle_type (tree); -extern tree mangle_typeinfo_for_type (tree); -extern tree mangle_typeinfo_string_for_type (tree); -extern tree mangle_vtbl_for_type (tree); -extern tree mangle_vtt_for_type (tree); -extern tree mangle_ctor_vtbl_for_type (tree, tree); -extern tree mangle_thunk (tree, int, tree, tree); -extern tree mangle_conv_op_name_for_type (tree); -extern tree mangle_guard_variable (tree); -extern tree mangle_ref_init_variable (tree); +extern void mangle_decl (const tree); +extern const char *mangle_type_string (const tree); +extern tree mangle_type (const tree); +extern tree mangle_typeinfo_for_type (const tree); +extern tree mangle_typeinfo_string_for_type (const tree); +extern tree mangle_vtbl_for_type (const tree); +extern tree mangle_vtt_for_type (const tree); +extern tree mangle_ctor_vtbl_for_type (const tree, const tree); +extern tree mangle_thunk (tree, const int, tree, tree); +extern tree mangle_conv_op_name_for_type (const tree); +extern tree mangle_guard_variable (const tree); +extern tree mangle_ref_init_variable (const tree); /* in dump.c */ extern bool cp_dump_tree (void *, tree); -- Summary: mangle_decl() and others incorrectly declared in gcc/cp/cp-tree.h Product: gcc Version: 3.4.4 Status: UNCONFIRMED Severity: normal Priority: P2 Component: bootstrap AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: georg dot schwarz at freenet dot de CC: gcc-bugs at gcc dot gnu dot org,georg dot schwarz at freenet dot de GCC build triplet: mips-sgi-irix5.3 GCC host triplet: mips-sgi-irix5.3 GCC target triplet: mips-sgi-irix5.3 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23116