cvs commit: src/lib/libc/stdio xprintf.c

Konstantin Belousov kib at FreeBSD.org
Sat Oct 21 11:49:08 UTC 2006


kib         2006-10-21 11:49:07 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/stdio       xprintf.c 
  Log:
  Workaround for (what seems to be) compiler error for gcc 3.4.6. On
  i386 with default optimization level (-O2), va_list pointer ap in the
  __v2printf function is advanced before the use. That cause argument
  shift and garbage instead last argument in printf-family when xprintf is
  activated.
  
  The nsswitch is easy victim of the bug.
  
  Reviewed by:    kan
  Approved by:    kan (mentor)
  MFC after:      1 week
  
  Revision  Changes    Path
  1.4       +4 -1      src/lib/libc/stdio/xprintf.c


More information about the cvs-all mailing list