From patchwork Thu Jan 27 09:06:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthias Klose X-Patchwork-Id: 80614 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 596DF1007D2 for ; Thu, 27 Jan 2011 20:07:28 +1100 (EST) Received: (qmail 2978 invoked by alias); 27 Jan 2011 09:07:25 -0000 Received: (qmail 2967 invoked by uid 22791); 27 Jan 2011 09:07:24 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_50 X-Spam-Check-By: sourceware.org Received: from adelie.canonical.com (HELO adelie.canonical.com) (91.189.90.139) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Jan 2011 09:07:19 +0000 Received: from hutte.canonical.com ([91.189.90.181]) by adelie.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1PiNoy-0001ee-4b for ; Thu, 27 Jan 2011 09:07:16 +0000 Received: from dslb-088-073-123-021.pools.arcor-ip.net ([88.73.123.21] helo=[192.168.42.17]) by hutte.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1PiNoy-0001XS-0x for gcc-patches@gcc.gnu.org; Thu, 27 Jan 2011 09:07:16 +0000 Message-ID: <4D4135AB.9080901@ubuntu.com> Date: Thu, 27 Jan 2011 10:06:51 +0100 From: Matthias Klose User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7 MIME-Version: 1.0 To: GCC Patches Subject: [patch, powerpc] #undef LINK_EH_SPEC before defining it Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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