testsuite gcc.c-torture/execute/multi-ix.c calls __builtin_bzero; At -O0, this gets expanded to a libcall to non-ISO function bzero mingw32 does not have a library function bzero.. Hence: spawn /develop/svn/trunk/build/gcc/xgcc -B/develop/svn/trunk/build/gcc/ /develop/svn/trunk/src/gcc/testsuite/gcc.c-torture/execute/multi-ix.c -w -O0 -fno-show-column -lm -o /develop/svn/trunk/build/gcc/testsuite/gcc/multi-ix.x0 c:\tmp/ccsxRYXw.o:multi-ix.c:(.text+0x9a3): undefined reference to `_bzero' Why not use ___builtin_memset in the testcase instead of poisoned name ?
(In reply to comment #0) > Why not use ___builtin_memset in the testcase instead of poisoned name ? Because this is an old testcase.
Subject: Bug 33946 Author: fxcoudert Date: Tue Feb 5 12:03:21 2008 New Revision: 132115 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=132115 Log: PR testsuite/33946 * gcc.c-torture/execute/multi-ix.c: Call memset instead of bzero. Modified: trunk/gcc/testsuite/ChangeLog trunk/gcc/testsuite/gcc.c-torture/execute/multi-ix.c
Fixed on 4.3.0.