mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 14:59:39 +02:00
Many fixincludes fixes are no longer applied on Solaris 11.4, usually because they have been incorporated into the system headers. Sometimes this happened as early as Solaris 10 already. A few still were applied although unnecessarily, usually because they have been applied to system headers in a slightly different way. This patch removes all such fixes or disables the unnecessary ones that aren't Solaris-specific on Solaris only. While the solaris_math_12 fix isn't necessary in current Solaris 11.4 SRUs, it was kept since it still applies to Solaris 11.4 FCS. Bootstrapped without regressions on i386-pc-solaris2.11 and sparc-sun-solaris2.11. I've also checked that the fixes applied to the 11.4 FCS headers are identical to those before this patch, with the exception of those that are no longer actually needed. 2026-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> fixincludes: * inclhack.def (AAB_solaris_sys_varargs_h): Remove. (solaris___restrict): Likewise. (solaris_complex): Likewise. (solaris_complex_cxx): Likewise. (solaris_cxx_linkage): Likewise. (solaris_getc_strict_stdc): Likewise. (solaris_gets_c11): Likewise. (solaris_gets_cxx14): Likewise. (solaris_int_limits_2): Likewise. (solaris_math_1): Likewise. (solaris_math_10): Likewise. (solaris_math_2): Likewise. (solaris_math_3): Likewise. (solaris_math_4): Likewise. (solaris_math_8): Likewise. (solaris_math_9): Likewise. (solaris_math_11): Likewise. (solaris_once_init_1): Likewise. (solaris_posix_spawn_restrict): Likewise. (solaris_rwlock_init_1): Likewise. (solaris_std___filbuf): Likewise. (solaris_std_gets_cxx14): Likewise. (solaris_stdio_tag): Likewise. (solaris_stdlib_noreturn): Likewise. (gnu_types): Simplify Solaris guard. (stdio_stdarg_h): Likewise. (stdio_va_list): Likewise. (stdio_va_list_clients): Bypass on Solaris. (strict_ansi_only): Likewise. * fixincl.x: Regenerate. * tests/base/iso/math_c99.h: Remove. * tests/base/iso/stdio_iso.h: Likewise. * tests/base/iso/stdlib_c99.h: Likewise. * tests/base/iso/stdlib_iso.h: Likewise. * tests/base/spawn.h: Likewise. * tests/base/stdio_tag.h: Likewise. * tests/base/sys/feature_tests.h: Likewise. * tests/base/complex.h [SOLARIS_COMPLEX_CHECK]: Remove. [SOLARIS_COMPLEX_CXX_CHECK]: Likewise. * tests/base/pthread.h [SOLARIS_ONCE_INIT_1_CHECK]: Likewise. [SOLARIS_RWLOCK_INIT_1_CHECK]: Likewise * tests/base/stdio.h [SOLARIS_STD___FILBUF_CHECK]: Likewise. [SOLARIS_GETS_CXX14_CHECK]: Likewise. * tests/base/sys/int_limits.h [SOLARIS_INT_LIMITS_2_CHECK]: Likewise.
119 lines
3.1 KiB
C
119 lines
3.1 KiB
C
/* DO NOT EDIT THIS FILE.
|
|
|
|
It has been auto-edited by fixincludes from:
|
|
|
|
"fixinc/tests/inc/stdio.h"
|
|
|
|
This had to be done to correct non-standard usages in the
|
|
original, manufacturer supplied header file. */
|
|
|
|
#ifndef FIXINC_WRAP_STDIO_H_STDIO_STDARG_H
|
|
#define FIXINC_WRAP_STDIO_H_STDIO_STDARG_H 1
|
|
|
|
#define __need___va_list
|
|
#include <stdarg.h>
|
|
|
|
|
|
#if defined( AAB_AIX_STDIO_CHECK )
|
|
|
|
#endif /* AAB_AIX_STDIO_CHECK */
|
|
|
|
|
|
#if defined( AIX_STDIO_INLINE_CHECK )
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#if (defined(__cplusplus) && defined(__IBMCPP__))
|
|
#ifdef ferror
|
|
#endif /* AIX_STDIO_INLINE_CHECK */
|
|
|
|
|
|
#if defined( ALPHA_GETOPT_CHECK )
|
|
extern int getopt(int, char *const[], const char *);
|
|
#endif /* ALPHA_GETOPT_CHECK */
|
|
|
|
|
|
#if defined( BSD_STDIO_ATTRS_CONFLICT_CHECK )
|
|
#define _BSD_STRING(_BSD_X) _BSD_STRINGX(_BSD_X)
|
|
#define _BSD_STRINGX(_BSD_X) #_BSD_X
|
|
int vfscanf(FILE *, const char *, __builtin_va_list) __asm__ (_BSD_STRING(__USER_LABEL_PREFIX__) "__svfscanf");
|
|
#endif /* BSD_STDIO_ATTRS_CONFLICT_CHECK */
|
|
|
|
|
|
#if defined( APPLE_LOCAL_STDIO_FN_DEPRECATION_CHECK )
|
|
#if defined(__APPLE_LOCAL_DEPRECATIONS)
|
|
__deprecated_msg("This function is provided for compat...")
|
|
#endif
|
|
#endif /* APPLE_LOCAL_STDIO_FN_DEPRECATION_CHECK */
|
|
|
|
|
|
#if defined( HPUX10_STDIO_DECLARATIONS_CHECK )
|
|
# define _iob __iob
|
|
|
|
#endif /* HPUX10_STDIO_DECLARATIONS_CHECK */
|
|
|
|
|
|
#if defined( HPUX11_SNPRINTF_CHECK )
|
|
extern int snprintf(char *, size_t, const char *, ...);
|
|
extern int snprintf(char *, _hpux_size_t, const char *, ...);
|
|
extern int snprintf(char *, _hpux_size_t, const char *, ...);
|
|
#endif /* HPUX11_SNPRINTF_CHECK */
|
|
|
|
|
|
#if defined( HPUX11_VSNPRINTF_CHECK )
|
|
extern int vsnprintf(char *, _hpux_size_t, const char *, __gnuc_va_list);
|
|
#endif /* HPUX11_VSNPRINTF_CHECK */
|
|
|
|
|
|
#if defined( HPUX_VSSCANF_CHECK )
|
|
extern int vsscanf(const char *, const char *, __gnuc_va_list);
|
|
#endif /* HPUX_VSSCANF_CHECK */
|
|
|
|
|
|
#if defined( IRIX_STDIO_DUMMY_VA_LIST_CHECK )
|
|
extern int printf( const char *, __gnuc_va_list );
|
|
#endif /* IRIX_STDIO_DUMMY_VA_LIST_CHECK */
|
|
|
|
|
|
#if defined( READ_RET_TYPE_CHECK )
|
|
extern unsigned int fread(), fwrite();
|
|
extern int fclose(), fflush(), foo();
|
|
#endif /* READ_RET_TYPE_CHECK */
|
|
|
|
|
|
#if defined( RS6000_PARAM_CHECK )
|
|
extern int rename(const char *_old, const char *_new);
|
|
#endif /* RS6000_PARAM_CHECK */
|
|
|
|
|
|
#if defined( STDIO_STDARG_H_CHECK )
|
|
|
|
#endif /* STDIO_STDARG_H_CHECK */
|
|
|
|
|
|
#if defined( STDIO_DUMMY_VA_LIST_CHECK )
|
|
extern void mumble( __gnuc_va_list);
|
|
#endif /* STDIO_DUMMY_VA_LIST_CHECK */
|
|
|
|
|
|
#if defined( ULTRIX_CONST_CHECK )
|
|
extern void perror( const char *__s );
|
|
extern int fputs( const char *__s, FILE *);
|
|
extern size_t fwrite( const void *__ptr, size_t, size_t, FILE *);
|
|
extern int fscanf( FILE *__stream, const char *__format, ...);
|
|
extern int scanf( const char *__format, ...);
|
|
|
|
#endif /* ULTRIX_CONST_CHECK */
|
|
|
|
|
|
#if defined( ULTRIX_CONST2_CHECK )
|
|
extern FILE *fopen( const char *__filename, const char *__type );
|
|
extern int sscanf( const char *__s, const char *__format, ...);
|
|
extern FILE *popen( const char *, const char *);
|
|
extern char *tempnam( const char *, const char *);
|
|
|
|
#endif /* ULTRIX_CONST2_CHECK */
|
|
|
|
#endif /* FIXINC_WRAP_STDIO_H_STDIO_STDARG_H */
|