mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-11 08:50:46 +08:00
memmove-lib.c: Include lib/bzero.c and lib/bfill.c on VxWorks targets.
gcc/testsuite/ * gcc.c-torture/execute/builtins/memmove-lib.c: Include lib/bzero.c and lib/bfill.c on VxWorks targets. * gcc.c-torture/execute/builtins/memmove-2-lib.c: Likewise. * gcc.c-torture/execute/builtins/strchr-lib.c: Include lib/bzero.c, lib/bfill.c and lib/memmove.c on VxWorks targets. * gcc.c-torture/execute/builtins/strrchr-lib.c: Likewise. * gcc.c-torture/execute/builtins/memops-asm-lib.c: Include lib/bfill.c on VxWorks targets. * gcc.c-torture/execute/builtins/lib/bzero.c: New file. * gcc.c-torture/execute/builtins/lib/bfill.c: Likewise. From-SVN: r122701
This commit is contained in:
parent
8c67ec7a88
commit
e3045e7a13
@ -1,3 +1,16 @@
|
||||
2007-03-08 Richard Sandiford <richard@codesourcery.com>
|
||||
|
||||
* gcc.c-torture/execute/builtins/memmove-lib.c: Include lib/bzero.c
|
||||
and lib/bfill.c on VxWorks targets.
|
||||
* gcc.c-torture/execute/builtins/memmove-2-lib.c: Likewise.
|
||||
* gcc.c-torture/execute/builtins/strchr-lib.c: Include lib/bzero.c,
|
||||
lib/bfill.c and lib/memmove.c on VxWorks targets.
|
||||
* gcc.c-torture/execute/builtins/strrchr-lib.c: Likewise.
|
||||
* gcc.c-torture/execute/builtins/memops-asm-lib.c: Include lib/bfill.c
|
||||
on VxWorks targets.
|
||||
* gcc.c-torture/execute/builtins/lib/bzero.c: New file.
|
||||
* gcc.c-torture/execute/builtins/lib/bfill.c: Likewise.
|
||||
|
||||
2007-03-08 Tobias Burnus <burnus@net-b.de>
|
||||
|
||||
* gfortran.dg/use_5.f90: New test.
|
||||
|
15
gcc/testsuite/gcc.c-torture/execute/builtins/lib/bfill.c
Normal file
15
gcc/testsuite/gcc.c-torture/execute/builtins/lib/bfill.c
Normal file
@ -0,0 +1,15 @@
|
||||
extern int inside_main;
|
||||
|
||||
void
|
||||
bfill (void *s, __SIZE_TYPE__ n, int ch)
|
||||
{
|
||||
char *p;
|
||||
|
||||
for (p = s; n-- > 0; p++)
|
||||
*p = ch;
|
||||
|
||||
#ifdef __OPTIMIZE__
|
||||
if (inside_main)
|
||||
abort ();
|
||||
#endif
|
||||
}
|
15
gcc/testsuite/gcc.c-torture/execute/builtins/lib/bzero.c
Normal file
15
gcc/testsuite/gcc.c-torture/execute/builtins/lib/bzero.c
Normal file
@ -0,0 +1,15 @@
|
||||
extern int inside_main;
|
||||
|
||||
void
|
||||
bzero (void *s, __SIZE_TYPE__ n)
|
||||
{
|
||||
char *p;
|
||||
|
||||
for (p = s; n-- > 0; p++)
|
||||
*p = 0;
|
||||
|
||||
#ifdef __OPTIMIZE__
|
||||
if (inside_main)
|
||||
abort ();
|
||||
#endif
|
||||
}
|
@ -1 +1,7 @@
|
||||
#include "lib/memmove.c"
|
||||
#ifdef __vxworks
|
||||
/* The RTP C library uses bzero and bfill, both of which are defined
|
||||
in the same file as bcopy. */
|
||||
#include "lib/bzero.c"
|
||||
#include "lib/bfill.c"
|
||||
#endif
|
||||
|
@ -1 +1,7 @@
|
||||
#include "lib/memmove.c"
|
||||
#ifdef __vxworks
|
||||
/* The RTP C library uses bzero and bfill, both of which are defined
|
||||
in the same file as bcopy. */
|
||||
#include "lib/bzero.c"
|
||||
#include "lib/bfill.c"
|
||||
#endif
|
||||
|
@ -77,3 +77,9 @@ bzero (void *d, size_t n)
|
||||
my_bzero (d, n);
|
||||
TEST_ABORT;
|
||||
}
|
||||
|
||||
#ifdef __vxworks
|
||||
/* The RTP C library uses bfill, which is defined in the same file as
|
||||
bzero and bcopy. */
|
||||
#include "lib/bfill.c"
|
||||
#endif
|
||||
|
@ -1 +1,8 @@
|
||||
#include "lib/strchr.c"
|
||||
#ifdef __vxworks
|
||||
/* The RTP C library uses bzero, bfill and bcopy, all of which are defined
|
||||
in the same file as index. */
|
||||
#include "lib/bzero.c"
|
||||
#include "lib/bfill.c"
|
||||
#include "lib/memmove.c"
|
||||
#endif
|
||||
|
@ -1 +1,8 @@
|
||||
#include "lib/strrchr.c"
|
||||
#ifdef __vxworks
|
||||
/* The RTP C library uses bzero, bfill and bcopy, all of which are defined
|
||||
in the same file as rindex. */
|
||||
#include "lib/bzero.c"
|
||||
#include "lib/bfill.c"
|
||||
#include "lib/memmove.c"
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user