Commit 62a37b6f by Hans-Peter Nilsson Committed by Hans-Peter Nilsson

inclhack.def (libc1_ifdefd_memx): New fix.

	* fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
	* fixinc/fixincl.x: Regenerate.
	* fixinc/tests/base/testing.h: Add testcase.

Co-Authored-By: Bruce Korb <bkorb@gnu.org>

From-SVN: r34950
parent ad66df7a
2000-07-04 Hans-Peter Nilsson <hp@axis.com>
Bruce Korb <bkorb@gnu.org>
* fixinc/inclhack.def (libc1_ifdefd_memx): New fix.
* fixinc/fixincl.x: Regenerate.
* fixinc/tests/base/testing.h: Add testcase.
2000-07-10 Richard Henderson <rth@cygnus.com>
* config/ia64/ia64.c (got_symbolic_operand): New.
......
......@@ -1294,6 +1294,37 @@ fix = {
};
/* GNU libc1 string.h does not prototype memcpy and memcmp for gcc
versions > 1. That's a problem. This fix will expose the prototype
for C++. */
fix = {
hackname = libc1_ifdefd_memx;
/* The string.h result is overwritten by AAB_ultrix_string when doing
"make check" and will fail. Therefore, we add the following kludgery
to insert the test_text into the special testing header. :-} */
files = testing.h;
files = string.h;
c_fix = format;
select = "' is a built-in function for gcc 2\\.x\\. \\*/";
bypass = __cplusplus;
c_fix_arg = "%1 || defined(__cplusplus)\n%2";
c_fix_arg = "/\\* `mem...' is a built-in function for gcc 2\\.x\\. \\*/\n"
"(#if defined\\(__STDC__\\) && __GNUC__ < 2)\n"
"(/\\* .* \\*/\n"
"extern [a-z_]+ mem)";
test_text =
"/* \\`memcpy' is a built-in function for gcc 2.x. */\n"
"#if defined(__STDC__) && __GNUC__ < 2\n"
"/* Copy N bytes of SRC to DEST. */\n"
"extern __ptr_t memcpy __P ((__ptr_t __dest, __const __ptr_t __src,\n"
" size_t __n));\n"
"#endif";
};
/*
* In limits.h, put #ifndefs around things that are supposed to be defined
* in float.h to avoid redefinition errors if float.h is included first.
......
......@@ -22,6 +22,15 @@ BSD43__IOWR('T', 1) /* Some are multi-line */
#endif /* IO_QUOTES_USE_CHECK */
#if defined( LIBC1_IFDEFD_MEMX_CHECK )
#if defined(__STDC__) && __GNUC__ < 2 || defined(__cplusplus)
/* Copy N bytes of SRC to DEST. */
extern __ptr_t memcpy __P ((__ptr_t __dest, __const __ptr_t __src,
size_t __n));
#endif
#endif /* LIBC1_IFDEFD_MEMX_CHECK */
#if defined( MACHINE_NAME_CHECK )
/* MACH_DIFF: */
#if defined( __i386__ ) || defined( sparc ) || defined( vax )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment