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