This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/24729] function calls created by builtins do not make use of inline definitions
- From: "ghazi at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Nov 2005 17:03:25 -0000
- Subject: [Bug middle-end/24729] function calls created by builtins do not make use of inline definitions
- References: <bug-24729-578@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from ghazi at gcc dot gnu dot org 2005-11-24 17:03 -------
Here's a version of the testcase that doesn't rely on _unlocked functions since
25022 inhibits the unlocked transformations. Compile at -O2 with and without
-DPUTCHAR_DIRECT to see the effect. Using putchar directly makes use of the
extern inline and transforms into _IO_putc, whereas the printf call only gets
as far as turning into putchar.
#include <stdio.h>
#undef putchar
int main ()
{
#ifdef PUTCHAR_DIRECT
putchar('\n');
#else
printf ("\n");
#endif
return 0;
}
--
ghazi at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-11-24 17:03:24
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24729