[Bug middle-end/23756] Missed optimization for PIC code with internal visibility

2010-01-28 Thread christophe dot guillon at st dot com
--- Comment #4 from christophe dot guillon at st dot com 2010-01-28 16:20 --- Thanks for the detailled reply, I fully agree with your points: - first, indeed, it's a matter of choice in the ABI (or compiler), the assumption would be that a function that call another function o

[Bug middle-end/23756] Missed optimization for PIC code with internal visibility

2010-01-28 Thread christophe dot guillon at st dot com
--- Comment #2 from christophe dot guillon at st dot com 2010-01-28 14:55 --- This enhancement is still pending on gcc 4.4.3 on x86. A function declared internal sets the GOT pointer while it could be avoided in a callee-set-GOT model as on x86 ABI. By defintion an internal function

[Bug middle-end/23756] Missed optimization for PIC code with internal visibility

2010-01-28 Thread christophe dot guillon at st dot com
--- Comment #1 from christophe dot guillon at st dot com 2010-01-28 14:54 --- Created an attachment (id=19740) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=19740&action=view) Test case for the internal function enhancement -- http://gcc.gnu.org/bugzilla/show_bug