add fixes for new hp/ux patch

From-SVN: r57845
This commit is contained in:
Bruce Korb 2002-10-05 18:21:59 +00:00 committed by Bruce Korb
parent b3dc87c570
commit d758c1db6b
4 changed files with 18 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2002-10-04 Bruce Korb <bkorb@gnu.org>
* fixinc/inclhack.def(hpux11_abs): use format fix
* fixinc/fixincl.x: regenerate
* fixinc/tests/base/stdlib.h: accommodate new fix test
Sat Oct 5 19:42:45 CEST 2002 Jan Hubicka <jh@suse.cz> Sat Oct 5 19:42:45 CEST 2002 Jan Hubicka <jh@suse.cz>
* c-common.c (cb_register_builtins): Use really_no_inline. * c-common.c (cb_register_builtins): Use really_no_inline.

View File

@ -1942,8 +1942,9 @@ static tTestDesc aHpux11_AbsTests[] = {
/* /*
* Fix Command Arguments for Hpux11_Abs * Fix Command Arguments for Hpux11_Abs
*/ */
static const char* apzHpux11_AbsPatch[] = { "sed", static const char* apzHpux11_AbsPatch[] = {
"-e", "s/ifndef _MATH_INCLUDED/if !defined(_MATH_INCLUDED) || defined(__GNUG__)/", "format",
"if !defined(_MATH_INCLUDED) || defined(__GNUG__)",
(char*)NULL }; (char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * * /* * * * * * * * * * * * * * * * * * * * * * * * * *
@ -6134,7 +6135,7 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
{ zHpux11_AbsName, zHpux11_AbsList, { zHpux11_AbsName, zHpux11_AbsList,
apzHpux11_AbsMachs, apzHpux11_AbsMachs,
HPUX11_ABS_TEST_CT, FD_MACH_ONLY, HPUX11_ABS_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aHpux11_AbsTests, apzHpux11_AbsPatch, 0 }, aHpux11_AbsTests, apzHpux11_AbsPatch, 0 },
{ zHpux11_Size_TName, zHpux11_Size_TList, { zHpux11_Size_TName, zHpux11_Size_TList,

View File

@ -1172,7 +1172,9 @@ fix = {
mach = ia64-hp-hpux11*; mach = ia64-hp-hpux11*;
files = stdlib.h; files = stdlib.h;
select = "ifndef _MATH_INCLUDED"; select = "ifndef _MATH_INCLUDED";
sed = "s/ifndef _MATH_INCLUDED/if !defined(_MATH_INCLUDED) || defined(__GNUG__)/"; c_fix = format;
c_fix_arg = "if !defined(_MATH_INCLUDED) || defined(__GNUG__)";
// sed = "s/ifndef _MATH_INCLUDED/if !defined(_MATH_INCLUDED) || defined(__GNUG__)/";
test_text = "#ifndef _MATH_INCLUDED"; test_text = "#ifndef _MATH_INCLUDED";
}; };

View File

@ -16,6 +16,11 @@
#endif /* ARM_WCHAR_CHECK */ #endif /* ARM_WCHAR_CHECK */
#if defined( HPUX11_ABS_CHECK )
#if !defined(_MATH_INCLUDED) || defined(__GNUG__)
#endif /* HPUX11_ABS_CHECK */
#if defined( INT_ABORT_FREE_AND_EXIT_CHECK ) #if defined( INT_ABORT_FREE_AND_EXIT_CHECK )
extern void abort(int); extern void abort(int);
extern void free(void*); extern void free(void*);