This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Handling of -fpic in ASM_OUTPUT_MI_THUNK in sparc
- To: egcs at cygnus dot com
- Subject: Handling of -fpic in ASM_OUTPUT_MI_THUNK in sparc
- From: Teemu Torma <tot at trema dot com>
- Date: Tue, 18 Nov 1997 17:04:33 +0100
- Organization: Trema Laboratories SARL
It seems that ASM_OUTPUT_MI_THUNK in sparc emits normal funcion call
sequence when the file compiled is compiled with -fpic. This sounds
very slow, since the call goes thru the dynamic table and can lead to
an additional register window trap.
Is there any reason why not to emit the thunk to a writable segment?
In that case -fpic condition could be taken away.
Besides, the current test does not help if the main program compiled
without -fpic emits thunks that call methods in a shared library.
Teemu