This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/19718] longcall attributed doesn't work for standard C function names
- From: "jason at catapult dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2005 04:19:33 -0000
- Subject: [Bug c/19718] longcall attributed doesn't work for standard C function names
- References: <20050131040714.19718.jason@catapult.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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