This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Fix Solaris/SPARC bootstrap without gas
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Mikael Pettersson <mikpe at it dot uu dot se>
- Cc: Rainer Orth <ro at cebitec dot uni-bielefeld dot de>, gcc-patches at gcc dot gnu dot org, David Miller <davem at davemloft dot net>
- Date: Wed, 3 Feb 2010 12:58:56 +0100
- Subject: Re: PATCH: Fix Solaris/SPARC bootstrap without gas
- References: <yddiqao5zbr.fsf@manam.CeBiTec.Uni-Bielefeld.DE> <201002031216.00896.ebotcazou@adacore.com> <19305.25343.476252.288450@pilspetsen.it.uu.se>
> It seems that Linux targets auto-enable the gas variable. Since gas is
> already detected and handled for Solaris/SPARC, and Linux/SPARC apparently
> always has it, would be it sufficient to just add a
>
> /* We use GNU as so define this to make comdat work. */
> #define HAVE_GNU_AS 1
>
> to gcc/config/sparc/linux{64,}.h, just above their
>
> /* We use GNU ld ... */
>
> sections?
No, that isn't the proper way to do it, HAVE_GNU_AS must simply be forgotten.
Instead a config/sparc/gas.h file must be added and conditionally included.
--
Eric Botcazou