Subject: toolchain/23036: gcc-3.3.1 lossage on mips
To: None <gnats-bugs@gnats.netbsd.org>
From: None <wileyc@rezrov.net>
List: netbsd-bugs
Date: 10/02/2003 20:52:16
>Number: 23036
>Category: toolchain
>Synopsis: gcc-3.3.1 miscompiles libc/gen/execle.c with -fgcse
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: toolchain-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Oct 02 11:53:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Christopher SEKIYA
>Release: NetBSD 1.6ZC
>Organization:
-- Chris
>Environment:
>Description:
gcse on mipseb (and possibly mipsel?) miscompiles libc/gen/execle.c such
that getty can no longer spawn login. I suspect that it may have
something to do with the varargs voodoo therein. Other exec*.c with
similar logic may also be affected. -fno-gcse-lm does not fix the
problem, but -fno-gcse does.
>How-To-Repeat:
Compile libc/gen/execle.c with gcc-3.3.1. Watch it fail.
>Fix:
Workaround is -fno-gcse.
>Release-Note:
>Audit-Trail:
>Unformatted:
>System: NetBSD/sgimips -current compiled with gcc-3.3.1
>Architecture: mipseb
>Machine: sgimips