-fpic and calls.c; sibcalls
Andreas Bauer
baueran@in.tum.de
Sun Nov 17 05:46:00 GMT 2002
This question concerns 3.4 BIB:
Maybe I'm not thinking clearly right now, but I can not understand why
we currently check for PIC-code in the machine descriptions (machine.c),
rather than in calls.c when considering sibcall candidates.
For example, in i386.c there are a lot of if-statements checking whether
the code is PIC, but wouldn't it be more sensible having this checked
merely once in calls.c, rather than consulting every platform supporting
sibcalls?
Just a thought... I'd be interested to hear the rationale behind it,
even if it means I did not read the sources well enough. :-) Because to
me, it seems as if no architecture would allow sibcalls in PIC-code
anyway; correct?
Thank you in advance,
Andi.
More information about the Gcc
mailing list