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: PATCH: Fix Solaris/SPARC bootstrap without gas


> 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


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