Eric Blake <[EMAIL PROTECTED]> wrote: > I have access to an old Solaris 7 box at work, which has gcc 2.8.1. When > compiled with CFLAGS='', all non-root tests pass or are skipped. But with > the default CFLAGS='-g -O2', gcc miscompiles putchar() (basically, it > replaces '\n' with '\0'). This breaks, among other things, the `yes' > executable, and led to a runaway process in the testsuite that consumed my > entire disk quota. A truss log of a stripped-down yes.c is attached, to > show how putchar() is miscompiled when optimized. Is it worth putting a > workaround into coreutils to accomodate this old platform/gcc combination, > or should I just try again using the system cc or else upgrading gcc to > the 3.x series?
Thanks for the report. gcc-3.0 has been out for over 3 years, so I think it's not worth much trouble to work around that bug. But if you're interested, an autoconf run-test is probably the way to go. It'd make the configure script detect the problem and exit nonzero. _______________________________________________ Bug-coreutils mailing list Bug-coreutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-coreutils