This is the mail archive of the gcc@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 RFC: Remove fork from collect2


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


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