This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [ping] Re: [patch, powerpc] #undef LINK_EH_SPEC before defining it
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Matthias Klose <doko at ubuntu dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 4 Mar 2011 08:38:18 +0100
- Subject: Re: [ping] Re: [patch, powerpc] #undef LINK_EH_SPEC before defining it
- References: <4D4135AB.9080901@ubuntu.com> <4D5C5159.4060401@ubuntu.com> <20110304070010.GA6275@bubble.grove.modra.org>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Mar 04, 2011 at 05:30:10PM +1030, Alan Modra wrote:
> On Wed, Feb 16, 2011 at 11:36:09PM +0100, Matthias Klose wrote:
> > >../../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
>
> In mainline sources the two macro definitions are identical. Self-
> inflicted wound?
We see it because we add --no-add-needed to linux LINK_EH_SPECs.
Including freebsd-spec.h in a Linux configuration is certainly very
questionable and undefining LINK_EH_SPEC and other macros before defining
them would be certainly cleaner if the freebsd-spec.h include can't be just
killed.
Jakub