http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57256
Bug ID: 57256 Summary: Building for arm-elf with CFLAGS_FOR_TARGET=-mabi=aapcs-linux fails in libgcc/crtstuff.c Product: gcc Version: 4.7.3 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: bruck.michael at googlemail dot com Created attachment 30100 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30100&action=edit Diff of preprocessed crtstuff.c with and without -mabi=aapcs-linux This is not a new issue but I never needed crtstuff before and just used make -k CFLAGS_FOR_TARGET=-mcpu=arm1176jzf-s -marm -mabi=aapcs-linux -mfpu=vfp -mfloat-abi=softfp -mno-thumb-interwork -mno-long-calls -mtune=arm1176jzf-s -mlittle-endian ../../src/gcc-4.7.3/configure --target=arm-elf --enable-obsolete --with-newlib --enable-languages=c,c++ --disable-multilib --disable-nls --disable-shared --with-mode=arm --with-cpu=arm1176jzf-s --with-tune=arm1176jzf-s --with-fpu=vfp --with-float=softfp --with-endian=little make ... ../../../../src/gcc-4.7.3/libgcc/crtstuff.c: In function '__do_global_dtors_aux': ../../../../src/gcc-4.7.3/libgcc/crtstuff.c:380:26: error: '__DTOR_LIST__' undeclared (first use in this function) ../../../../src/gcc-4.7.3/libgcc/crtstuff.c:380:26: note: each undeclared identifier is reported only once for each function it appears in The diff between the pre-processed files (1st file: with -mabi=aapcs-linux, doesn't comile; 2nd file: without -mabi=aapcs-linux, compiles) is attached as crtstuff.I.diff.