On Monday 20 July 2009 18:42:08 Denys Vlasenko wrote: > On Monday 20 July 2009 23:00, Mike Frysinger wrote: > > > With attached config, and i486-linux-uclibc-XXX > > > toolchain, it works for me. > > > > > > Can you send me your .config, preprocessed source > > > and gcc command line which gives you trouble? > > > > > > What does your gcc -v say? > > > > defconfig i386, then enable DODEBUG and DODEBUG_PT. using gcc-4.1.1. > > Thanks. The offending gcc command line is: > > > gcc -c libc/stdio/_fwrite.c -o libc/stdio/_fwrite.os -include > ./include/libc-symbols.h \ -Wall -Wstrict-prototypes -fno-strict-aliasing > -Wnested-externs -Wshadow -Wmissing-noreturn \ -Wmissing-format-attribute > -Wformat=2 -Wmissing-prototypes -Wmissing-declarations -Wnonnull \ -Wundef > -funsigned-char -fno-builtin -fno-asm -std=gnu99 -ffunction-sections > -fdata-sections \ -m32 -fno-stack-protector -nostdinc -I./include -I. > -I./libc/sysdeps/linux/i386 -DUCLIBC_INTERNAL \ \ > -O0 \ > \ > -g3 -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux/i386 \ > -I./libpthread/linuxthreads.old/sysdeps/i386 > -I./libpthread/linuxthreads.old/sysdeps/unix/sysv/linux \ > -I./libpthread/linuxthreads.old/sysdeps/pthread > -I./libpthread/linuxthreads.old \ -I./libpthread -I/usr/include/ \ > -isystem > /.share/usr/app/gcc-4.2.1/bin/../lib/gcc/i386-pc-linux-gnu/4.2.1/include-fi >xed \ -isystem > /.share/usr/app/gcc-4.2.1/bin/../lib/gcc/i386-pc-linux-gnu/4.2.1/include > -DNDEBUG \ -fPIC -MT libc/stdio/_fwrite.os -MD -MP -MF > libc/stdio/._fwrite.os.dep > > > -O0 is the problem, gcc becomes much dumber.
as it should > Please try attached patch. For me it compiles. Resulting code > from memchr(buffer, '\n', pending): fixes building for me, but please unify the branches before committing -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc