Attempting to bootstrap gcc-4.6-20100828 on armv5tel-linux-gnueabi fails in stage 2 with: /home/mikpe/gcc-4.6-20100828/gcc/config/arm/arm.c: In function 'arm_get_pcs_model': /home/mikpe/gcc-4.6-20100828/gcc/config/arm/arm.c:3725:7: error: passing argument 1 of 'stdarg_p' discards 'const' qualifier from pointer target type [-Werror] /home/mikpe/gcc-4.6-20100828/gcc/tree.h:4851:13: note: expected 'tree' but argument is of type 'const_tree' /home/mikpe/gcc-4.6-20100828/gcc/config/arm/arm.c: In function 'locate_neon_builtin_icode': /home/mikpe/gcc-4.6-20100828/gcc/config/arm/arm.c:18913:22: error: uninitialized const member in 'neon_builtin_datum' is invalid in C++ [-Werror=c++-compat] /home/mikpe/gcc-4.6-20100828/gcc/config/arm/arm.c:17969:20: note: 'itype' should be initialized /home/mikpe/gcc-4.6-20100828/gcc/config/arm/arm.c:18913:22: error: in 'neon_builtin_datum' is invalid in C++ [-Werror=c++-compat] /home/mikpe/gcc-4.6-20100828/gcc/config/arm/arm.c:17970:13: note: 'bits' should be initialized /home/mikpe/gcc-4.6-20100828/gcc/config/arm/arm.c:18913:22: error: uninitialized const member in 'neon_builtin_datum' is invalid in C++ [-Werror=c++-compat] /home/mikpe/gcc-4.6-20100828/gcc/config/arm/arm.c:17971:24: note: 'codes' should be initialized /home/mikpe/gcc-4.6-20100828/gcc/config/arm/arm.c:18913:22: error: uninitialized const member in 'neon_builtin_datum' is invalid in C++ [-Werror=c++-compat] /home/mikpe/gcc-4.6-20100828/gcc/config/arm/arm.c:17972:22: note: 'num_vars' should be initialized /home/mikpe/gcc-4.6-20100828/gcc/config/arm/arm.c: In function 'arm_output_asm_insn': /home/mikpe/gcc-4.6-20100828/gcc/config/arm/arm.c:22649:3: error: function might be possible candidate for 'gnu_printf' format attribute [-Werror=missing-format-attribute] cc1: all warnings being treated as errors make[3]: *** [arm.o] Error 1 make[3]: Leaving directory `/home/mikpe/objdir46/gcc' make[2]: *** [all-stage2-gcc] Error 2 make[2]: Leaving directory `/home/mikpe/objdir46' make[1]: *** [stage2-bubble] Error 2 make[1]: Leaving directory `/home/mikpe/objdir46' make: *** [bootstrap] Error 2 The first error in arm_ge_pcs_model () was reported 11 days ago as PR45321. The other 'uninitialized const member' warnings/errors are new since then. I can't see any obvious recent changes in arm.c that would explain them, so I suspect they're caused by some C front-end change.
Created attachment 21586 [details] preliminary fixes for arm.c stage2 errors This gets me past the arm.c stage2 errors.
confirmed. I was working on fixing this but you beat my patch to it. cheers Ramana
*** Bug 44670 has been marked as a duplicate of this bug. ***
The 'uninitialized const members' warning also affects cross builds when using --enable-build-with-cxx, see PR44670
Patch has been posted: http://gcc.gnu.org/ml/gcc-patches/2010-09/msg00048.html
*** Bug 45514 has been marked as a duplicate of this bug. ***
Any progress here?
(In reply to comment #7) > Any progress here? The patch was posted and OK:d, but stalled apparently because I don't yet have a copyright assignment on file. My new employer's (Rogue Wave) legal department is supposed to come up with an employer's disclaimer for my GCC contributions, but they're taking forever to do so.
Author: amylaar Date: Mon Nov 15 13:40:27 2010 New Revision: 166753 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=166753 Log: PR bootstrap/45444 * config/arm/arm.c (locate_neon_builtin_icode): Initialize key. (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4. Modified: trunk/gcc/ChangeLog trunk/gcc/config/arm/arm.c
I've checked my patch into trunk.