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


Eric Botcazou writes:
 > > I don't have access to Linux/SPARC, so I cannot easily investigate
 > > what's going on there.  I'd very much prefer if anyone who does could
 > > have a look.
 > 
 > HAVE_GNU_AS is 0 if you configure neither with --with-gnu-as nor --with-as so 
 > testing it in the config/ subdir is wrong (sparc/ is the only one to do it).

I grepped for HAVE_GNU_AS in the build dir and that's indeed what happened.

 > The proper solution is to test the "gas" variable in config.gcc and act upon 
 > it, see for example the handling of sparc/sol2-gas.h for Solaris.

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?

/Mikael


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