Subject: toolchain/23036: gcc-3.3.1 lossage on mips
To: None <>
From: None <>
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
>Originator:     Christopher SEKIYA
>Release:        NetBSD 1.6ZC

-- Chris

	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.
	Compile libc/gen/execle.c with gcc-3.3.1.  Watch it fail.
	Workaround is -fno-gcse.
 >System: NetBSD/sgimips -current compiled with gcc-3.3.1
 >Architecture: mipseb
 >Machine: sgimips