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] | |
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
* 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:
Attachment:
temp.diff.txt
Description: Text document
Attachment:
darwin-fpsave.asm
Description: Binary data
Attachment:
darwin-world.asm
Description: Binary data
Attachment:
darwin-vecsave.asm
Description: Binary data
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |