Building a native powerpc-linux-gnu compiler for --enable-targets=all, I see in
nearly every file a warning that LINK_EH_SPEC is redefined.
gcc -c -DIN_GCC_FRONTEND -g -fkeep-inline-functions -DIN_GCC -W -Wall
-Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros
-Wno-overlength-strings -Wold-style-definition -Wc++-compat -fno-common
-DHAVE_CONFIG_H -I. -Icp -I../../src/gcc -I../../src/gcc/cp
-I../../src/gcc/../include -I../../src/gcc/../libcpp/include
-I../../src/gcc/../libdecnumber -I../../src/gcc/../libdecnumber/dpd
-I../libdecnumber ../../src/gcc/cp/rtti.c -o cp/rtti.o
In file included from ./tm.h:34,
from ../../src/gcc/cp/rtti.c:27:
../../src/gcc/config/rs6000/sysv4.h:839:1: warning: "LINK_EH_SPEC" redefined
In file included from ./tm.h:33,
from ../../src/gcc/cp/rtti.c:27:
../../src/gcc/config/freebsd-spec.h:135:1: warning: this is the location of the
previous definition
Undefining it before the definition as done with other macros avoids the warning.
Matthias
complete build log
https://buildd.debian.org/fetch.cgi?pkg=gcc-snapshot&arch=powerpc&ver=20110126-1&stamp=1296088494&file=log&as=raw
* config/rs6000/sysv4.h (LINK_EH_SPEC): Undefine before definition.
Index: config/rs6000/sysv4.h
===================================================================
--- config/rs6000/sysv4.h (revision 169303)
+++ config/rs6000/sysv4.h (working copy)
@@ -835,6 +835,7 @@
-dynamic-linker " LINUX_DYNAMIC_LINKER "}}"
#if defined(HAVE_LD_EH_FRAME_HDR)
+# undef LINK_EH_SPEC
# define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
#endif