This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/24729] function calls created by builtins do not make use of inline definitions



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]