[Bug c/19718] longcall attributed doesn't work for standard C function names
jason at catapult dot com
gcc-bugzilla@gcc.gnu.org
Mon Jan 31 04:19:00 GMT 2005
------- Additional Comments From jason at catapult dot com 2005-01-31 04:19 -------
Created an attachment (id=8110)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8110&action=view)
A simple program with differently-named function prototypes
This program has function prototypes for the library functions sprintf, strlen,
bzero, and identical prototypes renamed sprintf2, strlen2, and bzero2. Despite
the fact that all 6 prototypes use the longcall attribute (and there are no
conflicting duplicate prototypes from the std C headers), only the functiones
with the '2' suffix use long calls (check with 'objdumpppc -x longcalltest.o |
grep PPC).
This works fine in 2.95.3, and 3.4.3, but not 3.3.5 (although taking another
look, strlen doesn't use a long call for any of the compilers, don't know why).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19718
More information about the Gcc-bugs
mailing list