Bug 33946 - Testcase multi-ix.c generates call to (poisoned) bzero
Summary: Testcase multi-ix.c generates call to (poisoned) bzero
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: testsuite (show other bugs)
Version: 4.3.0
: P3 normal
Target Milestone: 4.3.0
Assignee: Francois-Xavier Coudert
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-30 00:29 UTC by Danny Smith
Modified: 2008-02-05 12:04 UTC (History)
1 user (show)

See Also:
Host:
Target: i686-pc-mingw32
Build:
Known to work:
Known to fail:
Last reconfirmed: 2008-01-30 10:03:18


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danny Smith 2007-10-30 00:29:56 UTC
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 ?
Comment 1 Andrew Pinski 2007-11-19 05:05:27 UTC
(In reply to comment #0)
> Why not use ___builtin_memset in the testcase instead of poisoned name ?

Because this is an old testcase.
Comment 2 Francois-Xavier Coudert 2008-02-05 12:04:07 UTC
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

Comment 3 Francois-Xavier Coudert 2008-02-05 12:04:49 UTC
Fixed on 4.3.0.