This is the mail archive of the 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: RFC: Requiring GAS for mips-sgi-irix*

Albert Chin-A-Young <> writes:
> I would like to see continued support for MIPSpro as/ld. Support for
> binutils as only isn't a problem as long as the resulting .o files are
> compatible with MIPSpro CC/cc/as.

Yes, gas is supposed to be compatible.  --with-gnu-as --without-gnu-ld
has been tested and seemed to work.

>>   - Different versions support different things.  E.g. some versions don't
>>     support .gpword <>
>>     while others do.  Some support the full set of explicit relocation
>>     operators, others don't.
> And you won't run into a similar problem with a future version of
> binutils?

Yes, if new features are added to gcc later, and they rely on
gas features.  But we'll know precisely which versions of gas
support it and which don't, and we'll be able to advise users
accordingly.  It's tended to be trial & error with MIPSpro.

>>   - The .section statement doesn't work the way GCC expects: the alignment
>>     specified by the first ".section .foo" statement applies to all subsequent
>>     ".section .foo" statements.  We get around this by:
>>       - redirecting asm output to a temporary file
>>       - remembering the highest alignment for each section
>>       - emitting appropriate section statements at the top of asm_out_file
>>       - copying the contents of the temporary file after it
>>     It would sure be nice to see this hack go away...
> Is the maintenance burden high for this? Seems that if it's done once,
> you don't need to worry about it anymore.

You'd think ;)  But I know that I've had to patch this code myself,
so the burden certainly isn't zero.


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