This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ping] Re: [patch, powerpc] #undef LINK_EH_SPEC before defining it


On Fri, Mar 04, 2011 at 10:13:02PM +1030, Alan Modra wrote:
> > 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.
> 
> It's there for -mcall-freebsd.  Take that away and you won't need
> freebsd-spec.h in powerpc-linux configs.

If it is needed on non-FreeBSD targets (why would anyone want to
use -mcall-freebsd on Linux instead of building a Linux->FreeBSD cross?),
then freebsd-spec.h should presumably only define FBSD_*/USING_CONFIG_FREEBSD_SPEC
macros and nothing else, the rest should go into config/freebsd.h or something
that is not included by all other targets.

	Jakub


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]