[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Test report coreutils-5.3.0 on Solaris 7
From: |
Jim Meyering |
Subject: |
Re: Test report coreutils-5.3.0 on Solaris 7 |
Date: |
Wed, 12 Jan 2005 19:58:17 +0100 |
Eric Blake <address@hidden> 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.