This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFC: Remove fork from collect2
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Andrew Pinski <apinski at apple dot com>
- Cc: "gcc at gcc dot gnu dot org list" <gcc at gcc dot gnu dot org>, Caroline Tice <ctice at apple dot com>
- Date: 20 Mar 2004 09:50:56 -0500
- Subject: Re: PATCH RFC: Remove fork from collect2
- References: <20040317023814.10143.qmail@gossamer.airs.com><20040317092131.GA95030@lorien.int.gecko.de><m3smg7r5cw.fsf@gossamer.airs.com><20040317133116.GA15850@lorien.int.gecko.de><m3k71jr29k.fsf@gossamer.airs.com><20040317170336.GA16667@lorien.int.gecko.de><87d67bw7bd.fsf@egil.codesourcery.com><m3vfl3kyfr.fsf@gossamer.airs.com><A7570576-79EC-11D8-9F81-000393BB90B6@apple.com><009F425B-79EE-11D8-92E2-00039372607E@apple.com><m38yhw4gai.fsf@gossamer.airs.com>
Ian Lance Taylor <ian@wasabisystems.com> writes:
> 3) Add restFP and saveFP to FSF gcc. Overall consistency would appear
> to be a good thing.
Upon reflection, I believe that this would be the solution to the
issue. Besides fixing this problem, it would permit FSF gcc to
consistently link files compiled by Darwin gcc, which seems like a
good thing to me.
Unfortunately, since I don't have a Darwin system, I can't easily
write a patch. However, it's easy to do for anybody who has the
source code for the Darwin compiler. Just add a file like
rs6000/darwin-tramp.asm and put in the definitions of saveFP and
restFP. Then add the name of the file to LIB2FUNCS_EXTRA in
rs6000/t-darwin. It sounds like saveFP and restFP will normally be
used together, so it should be fine to put both functions in the same
file.
Ian