From: Bruce Korb Date: Tue, 17 Jul 2001 03:02:52 +0000 (+0000) Subject: HPUX-es vsnprintf and Ultrix-es atexit declaration X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=551051563c00bd566842ce15f010e51aafb98dfe;p=gcc.git HPUX-es vsnprintf and Ultrix-es atexit declaration From-SVN: r44058 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f012bdae56c..ae9789bd0b4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2001-07-16 John David Anglin + + * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3 + atexit declaration in stdlib.h. + +2001-07-16 Richard Begg + + * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h + Mon Jul 16 22:48:00 CEST 2001 Jan Hubicka * basic-block.h (CLEANUP_PRE_SIBCALL): New constant. diff --git a/gcc/fixinc/inclhack.def b/gcc/fixinc/inclhack.def index 510bb792368..21e83663eeb 100644 --- a/gcc/fixinc/inclhack.def +++ b/gcc/fixinc/inclhack.def @@ -1243,6 +1243,24 @@ fix = { }; +/* + * Fix hpux 11.00 broken vsnprintf declaration + */ +fix = { + hackname = hpux11_vsnprintf; + files = stdio.h; + select = 'extern int vsnprintf\(char \*, __size_t, const char \*,' + ' __va__list\);'; + + c_fix = format; + c_fix_arg = "extern int vsnprintf(char *, __size_t, const char *," + " __va_list);"; + + test_text = 'extern int vsnprintf(char *, __size_t, const char *,' + ' __va__list);'; +}; + + /* * get rid of bogus inline definitions in HP-UX 8.0 */ @@ -2868,6 +2886,21 @@ fix = { }; +/* + * function parameter to atexit is missing "void" on VAX Ultrix 4.3. + */ +fix = { + hackname = ultrix_atexit_param; + files = stdlib.h; + select = 'atexit\(.*\(\)'; + + c_fix = format; + c_fix_arg = "atexit( void (*__func)( void )"; + + test_text = "int atexit( void (*__func)() );\n"; +}; + + /* * parameter to atof not const on DECstation Ultrix V4.0 and NEWS-OS 4.2R. */