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] | |
On Fri, Mar 14, 2003 at 12:09:36AM -0500, Nathanael Nerode wrote:Ah, but that's what the version checks are for. :-) For when we are building a brand new HOST->TARGET gas and can't run it.
I believe this is correct. I want review only in case I got it wrong.
This clarifies the important issue of *which* assembler and linker
we are looking for -- it's not the BUILD->BUILD, BUILD->HOST, or BUILD->TARGET assemblers (all of which might be used and different in
a Canadian cross compile)... it's the HOST->TARGET one, which we can't
always even execute.
Now that I've got this clear, I believe I'll actually be able to clean up the related code.
Nope. Couple of subtleties here, I think. First of all, remember, we're on BUILD right now. We can not search for anything that's supposed to live on HOST; it might not be there. Secondly, we use this assembler for feature tests, so we have to be able to execute it.
That's really confusing. :-) That seriously needs to be documented, since it's an undocumented assumption if BUILD!=HOST.Generally we want a BUILD->TARGET assembler, and to make the assumption that it will have the same features as the HOST->TARGET assembler.
I should check that. It's hard to check.Do pathnames from this search ever get embedded into GCC? If so it probably needs to be broken up into two searches.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |