PATCH RFC: Remove fork from collect2
Andrew Pinski
pinskia@physics.uc.edu
Sun Mar 21 05:08:00 GMT 2004
On Mar 20, 2004, at 06:50, Ian Lance Taylor wrote:
> 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.
Here is the patch to add saveFP/restFP and other asm functions which
Apple's libgcc exports (saveVEC/restVEC/saveVEC_vr11/restVEC_vr10
[the save/restore functions for altivec] and
save_world/rest_world/eh_rest_world_r10/rest_world_eh_r7r8
[functions which is used for exception-handling]). They are all
private_extern functions (aka hidden).
Ok? Bootstrapped all languages (except for java as there is another
bootstrap problem which I am going to fix) and tested on
powerpc-apple-darwin7.2.0?
Thanks,
Andrew Pinski
ChangeLog:
* config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Add darwin-fpsave.asm,
darwin-vecsave.asm, and darwin-world.asm.
(TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL as the asm files
contain altivec instructions.
* config/rs6000/darwin-fpsave.asm: New file.
* config/rs6000/darwin-vecsave.asm: New file.
* config/rs6000/darwin-world.asm: New file.
Patch:
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: temp.diff.txt
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20040321/db0438c4/attachment.txt>
-------------- next part --------------
New files:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: darwin-fpsave.asm
Type: application/octet-stream
Size: 3231 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20040321/db0438c4/attachment.obj>
-------------- next part --------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: darwin-world.asm
Type: application/octet-stream
Size: 6602 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20040321/db0438c4/attachment-0001.obj>
-------------- next part --------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: darwin-vecsave.asm
Type: application/octet-stream
Size: 3898 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20040321/db0438c4/attachment-0002.obj>
More information about the Gcc
mailing list