Commit 6c329b93 by H.J. Lu Committed by Benjamin Kosnik

acinclude.m4: Change "#pragma system_header" to "#pragma GCC system_header".


2000-07-20  H.J. Lu  (hjl@gnu.org)

        * acinclude.m4: Change "#pragma system_header" to
        "#pragma GCC system_header".
        * aclocal.m4: Likewise.
        * bits/std_cmath.h: Likewise.
        * bits/std_cassert.h: Likewise.
        * bits/std_cctype.h: Likewise.
        * bits/std_cerrno.h: Likewise.
        * bits/std_cfloat.h: Likewise.
        * bits/std_climits.h: Likewise.
        * bits/std_clocale.h: Likewise.
        * bits/std_cwchar.h: Likewise.
        * bits/std_csetjmp.h: Likewise.
        * bits/std_csignal.h: Likewise.
        * bits/std_cstdarg.h: Likewise.
        * bits/std_cstddef.h: Likewise.
        * bits/std_cstdio.h: Likewise.
        * bits/std_cstdlib.h: Likewise.
        * bits/std_cstring.h: Likewise.
        * bits/std_ctime.h: Likewise.
        * bits/std_cwctype.h: Likewise.
        * bits/std_exception.h: Likewise.
        * bits/std_new.h: Likewise.
        * bits/std_typeinfo.h: Likewise.
        * shadow/bits/std_cassert.h: Likewise.
        * shadow/bits/std_cctype.h: Likewise.
        * shadow/bits/std_cerrno.h: Likewise.
        * shadow/bits/std_cfloat.h: Likewise.
        * shadow/bits/std_climits.h: Likewise.
        * shadow/bits/std_clocale.h: Likewise.
        * shadow/bits/std_cmath.h: Likewise.
        * shadow/bits/std_csetjmp.h: Likewise.
        * shadow/bits/std_csignal.h: Likewise.
        * shadow/bits/std_cstdarg.h: Likewise.
        * shadow/bits/std_cstddef.h: Likewise.
        * shadow/bits/std_cstdio.h: Likewise.
        * shadow/bits/std_cstdlib.h: Likewise.
        * shadow/bits/std_cstring.h: Likewise.
        * shadow/bits/std_ctime.h: Likewise.
        * shadow/bits/std_cwchar.h: Likewise.
        * shadow/bits/std_cwctype.h: Likewise.
        * shadow/bits/wrap_libio.h: Likewise.
        * shadow/bits/wrap_unistd.h: Likewise.
        * shadow/sys/cdefs.h: Likewise.

        * configure: Rebuild.

From-SVN: r35167
parent ba62473e
...@@ -196,7 +196,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [ ...@@ -196,7 +196,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [
# Check for pragma system_header. # Check for pragma system_header.
AC_MSG_CHECKING([for g++ that supports pragma system_header]) AC_MSG_CHECKING([for g++ that supports pragma system_header])
CXXFLAGS='-Wunknown-pragmas -Werror' CXXFLAGS='-Wunknown-pragmas -Werror'
AC_TRY_COMPILE([#pragma system_header], [int foo; AC_TRY_COMPILE([#pragma GCC system_header], [int foo;
], [ac_newpragma=yes], [ac_newpragma=no]) ], [ac_newpragma=yes], [ac_newpragma=no])
if test "$ac_test_CXXFLAGS" = set; then if test "$ac_test_CXXFLAGS" = set; then
CXXFLAGS="$ac_save_CXXFLAGS" CXXFLAGS="$ac_save_CXXFLAGS"
...@@ -1514,7 +1514,7 @@ dnl Then, if any (well almost any) other make is called, and GNU make also ...@@ -1514,7 +1514,7 @@ dnl Then, if any (well almost any) other make is called, and GNU make also
dnl exists, then the other make wraps the GNU make. dnl exists, then the other make wraps the GNU make.
dnl dnl
dnl @author John Darrington <j.darrington@elvis.murdoch.edu.au> dnl @author John Darrington <j.darrington@elvis.murdoch.edu.au>
dnl @version $Id: acinclude.m4,v 1.42 2000/07/17 18:17:33 pme Exp $ dnl @version $Id: acinclude.m4,v 1.43 2000/07/19 00:57:37 bkoz Exp $
dnl dnl
dnl #### Changes for libstdc++-v3: reformatting and linewrapping; prepending dnl #### Changes for libstdc++-v3: reformatting and linewrapping; prepending
dnl #### GLIBCPP_ to the macro name; adding the :-make fallback in the dnl #### GLIBCPP_ to the macro name; adding the :-make fallback in the
......
...@@ -208,7 +208,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [ ...@@ -208,7 +208,7 @@ AC_DEFUN(GLIBCPP_CHECK_COMPILER_FEATURES, [
# Check for pragma system_header. # Check for pragma system_header.
AC_MSG_CHECKING([for g++ that supports pragma system_header]) AC_MSG_CHECKING([for g++ that supports pragma system_header])
CXXFLAGS='-Wunknown-pragmas -Werror' CXXFLAGS='-Wunknown-pragmas -Werror'
AC_TRY_COMPILE([#pragma system_header], [int foo; AC_TRY_COMPILE([#pragma GCC system_header], [int foo;
], [ac_newpragma=yes], [ac_newpragma=no]) ], [ac_newpragma=yes], [ac_newpragma=no])
if test "$ac_test_CXXFLAGS" = set; then if test "$ac_test_CXXFLAGS" = set; then
CXXFLAGS="$ac_save_CXXFLAGS" CXXFLAGS="$ac_save_CXXFLAGS"
...@@ -1526,7 +1526,7 @@ dnl Then, if any (well almost any) other make is called, and GNU make also ...@@ -1526,7 +1526,7 @@ dnl Then, if any (well almost any) other make is called, and GNU make also
dnl exists, then the other make wraps the GNU make. dnl exists, then the other make wraps the GNU make.
dnl dnl
dnl @author John Darrington <j.darrington@elvis.murdoch.edu.au> dnl @author John Darrington <j.darrington@elvis.murdoch.edu.au>
dnl @version $Id: acinclude.m4,v 1.42 2000/07/17 18:17:33 pme Exp $ dnl @version $Id: acinclude.m4,v 1.43 2000/07/19 00:57:37 bkoz Exp $
dnl dnl
dnl #### Changes for libstdc++-v3: reformatting and linewrapping; prepending dnl #### Changes for libstdc++-v3: reformatting and linewrapping; prepending
dnl #### GLIBCPP_ to the macro name; adding the :-make fallback in the dnl #### GLIBCPP_ to the macro name; adding the :-make fallback in the
......
...@@ -35,5 +35,5 @@ ...@@ -35,5 +35,5 @@
// No include guards on this header... // No include guards on this header...
# pragma system_header # pragma GCC system_header
# include_next <assert.h> # include_next <assert.h>
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#define __NO_CTYPE 1 #define __NO_CTYPE 1
#endif #endif
# pragma system_header # pragma GCC system_header
# include_next <ctype.h> # include_next <ctype.h>
// Sequester the C non-inline implementations in the _C_Swamp:: // Sequester the C non-inline implementations in the _C_Swamp::
......
...@@ -35,6 +35,6 @@ ...@@ -35,6 +35,6 @@
#ifndef _CPP_CERRNO #ifndef _CPP_CERRNO
#define _CPP_CERRNO 1 #define _CPP_CERRNO 1
# pragma system_header # pragma GCC system_header
# include_next <errno.h> # include_next <errno.h>
#endif #endif
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#ifndef _CPP_CFLOAT #ifndef _CPP_CFLOAT
#define _CPP_CFLOAT 1 #define _CPP_CFLOAT 1
# pragma system_header # pragma GCC system_header
# include_next <float.h> # include_next <float.h>
#if 0 #if 0
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#ifndef _CPP_CLIMITS #ifndef _CPP_CLIMITS
#define _CPP_CLIMITS 1 #define _CPP_CLIMITS 1
# pragma system_header # pragma GCC system_header
# include_next <limits.h> # include_next <limits.h>
#endif #endif
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#ifndef _CPP_CLOCALE #ifndef _CPP_CLOCALE
#define _CPP_CLOCALE 1 #define _CPP_CLOCALE 1
# pragma system_header # pragma GCC system_header
# include_next <locale.h> # include_next <locale.h>
#endif #endif
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#ifndef _CPP_CMATH #ifndef _CPP_CMATH
#define _CPP_CMATH 1 #define _CPP_CMATH 1
# pragma system_header # pragma GCC system_header
# include_next <math.h> # include_next <math.h>
# include_next <stdlib.h> # include_next <stdlib.h>
......
...@@ -35,6 +35,6 @@ ...@@ -35,6 +35,6 @@
#ifndef _CPP_CSETJMP #ifndef _CPP_CSETJMP
#define _CPP_CSETJMP 1 #define _CPP_CSETJMP 1
# pragma system_header # pragma GCC system_header
# include_next <setjmp.h> # include_next <setjmp.h>
#endif #endif
...@@ -35,6 +35,6 @@ ...@@ -35,6 +35,6 @@
#ifndef _CPP_CSIGNAL #ifndef _CPP_CSIGNAL
#define _CPP_CSIGNAL 1 #define _CPP_CSIGNAL 1
# pragma system_header # pragma GCC system_header
# include_next <signal.h> # include_next <signal.h>
#endif #endif
...@@ -35,6 +35,6 @@ ...@@ -35,6 +35,6 @@
#ifndef _CPP_CSTDARG #ifndef _CPP_CSTDARG
#define _CPP_CSTDARG 1 #define _CPP_CSTDARG 1
# pragma system_header # pragma GCC system_header
# include_next <stdarg.h> # include_next <stdarg.h>
#endif #endif
...@@ -35,6 +35,6 @@ ...@@ -35,6 +35,6 @@
#ifndef _CPP_CSTDDEF #ifndef _CPP_CSTDDEF
#define _CPP_CSTDDEF 1 #define _CPP_CSTDDEF 1
# pragma system_header # pragma GCC system_header
# include_next <stddef.h> # include_next <stddef.h>
#endif #endif
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#ifndef _CPP_CSTDIO #ifndef _CPP_CSTDIO
#define _CPP_CSTDIO 1 #define _CPP_CSTDIO 1
# pragma system_header # pragma GCC system_header
# include_next <stdio.h> # include_next <stdio.h>
#ifndef SEEK_CUR #ifndef SEEK_CUR
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
#define __USE_ISOC9X 1 #define __USE_ISOC9X 1
#endif #endif
# pragma system_header # pragma GCC system_header
# include_next <stdlib.h> # include_next <stdlib.h>
#endif // _CPP_CSTDLIB #endif // _CPP_CSTDLIB
......
...@@ -39,6 +39,6 @@ ...@@ -39,6 +39,6 @@
// We must not see the optimized string functions GNU libc defines. // We must not see the optimized string functions GNU libc defines.
# define __NO_STRING_INLINES # define __NO_STRING_INLINES
# endif # endif
# pragma system_header # pragma GCC system_header
# include_next <string.h> # include_next <string.h>
#endif #endif
...@@ -35,6 +35,6 @@ ...@@ -35,6 +35,6 @@
#ifndef _CPP_CTIME #ifndef _CPP_CTIME
#define _CPP_CTIME 1 #define _CPP_CTIME 1
# pragma system_header # pragma GCC system_header
# include_next <time.h> # include_next <time.h>
#endif #endif
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
#include <bits/c++config.h> #include <bits/c++config.h>
#if _GLIBCPP_USE_WCHAR_T #if _GLIBCPP_USE_WCHAR_T
# pragma system_header # pragma GCC system_header
# include_next <wchar.h> # include_next <wchar.h>
#else #else
# ifdef __cplusplus # ifdef __cplusplus
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#ifndef _CPP_CWCTYPE #ifndef _CPP_CWCTYPE
#define _CPP_CWCTYPE 1 #define _CPP_CWCTYPE 1
# pragma system_header # pragma GCC system_header
# include_next <wctype.h> # include_next <wctype.h>
// Sequester the C non-inline implementations in the _C_Swamp:: // Sequester the C non-inline implementations in the _C_Swamp::
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#define _CPP_EXCEPTION 1 #define _CPP_EXCEPTION 1
#ifdef __GNUG__ #ifdef __GNUG__
#pragma system_header #pragma GCC system_header
#include_next <exception> #include_next <exception>
#else #else
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include <bits/c++config.h> #include <bits/c++config.h>
#ifdef __GNUG__ #ifdef __GNUG__
# pragma system_header # pragma GCC system_header
# include_next <new> # include_next <new>
#else #else
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include <bits/std_exception.h> #include <bits/std_exception.h>
#ifdef __GNUG__ #ifdef __GNUG__
# pragma system_header # pragma GCC system_header
# include_next <typeinfo> # include_next <typeinfo>
#else #else
......
...@@ -2839,7 +2839,7 @@ echo "configure:2838: checking for g++ that supports pragma system_header" >&5 ...@@ -2839,7 +2839,7 @@ echo "configure:2838: checking for g++ that supports pragma system_header" >&5
cat > conftest.$ac_ext <<EOF cat > conftest.$ac_ext <<EOF
#line 2841 "configure" #line 2841 "configure"
#include "confdefs.h" #include "confdefs.h"
#pragma system_header #pragma GCC system_header
int main() { int main() {
int foo; int foo;
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
// defines a global used in other headers, we are sunk. // defines a global used in other headers, we are sunk.
extern "C" { extern "C" {
# pragma system_header # pragma GCC system_header
# include_next <assert.h> # include_next <assert.h>
} }
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <ctype.h> # include_next <ctype.h>
} }
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <errno.h> # include_next <errno.h>
} }
......
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <float.h> # include_next <float.h>
} }
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <limits.h> # include_next <limits.h>
} }
namespace _C_shadow { } namespace _C_shadow { }
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <locale.h> # include_next <locale.h>
} }
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <math.h> # include_next <math.h>
} }
inline double _CPP_HUGE_VAL_capture() { return HUGE_VAL; } inline double _CPP_HUGE_VAL_capture() { return HUGE_VAL; }
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <setjmp.h> # include_next <setjmp.h>
} }
typedef jmp_buf _CPP_jmp_buf_capture; typedef jmp_buf _CPP_jmp_buf_capture;
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <signal.h> # include_next <signal.h>
typedef void (*_CPP_CSIGFUN_capture)(int); // a C function pointer typedef void (*_CPP_CSIGFUN_capture)(int); // a C function pointer
typedef sig_atomic_t _CPP_sig_atomic_t_capture; typedef sig_atomic_t _CPP_sig_atomic_t_capture;
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <stdarg.h> # include_next <stdarg.h>
} }
typedef va_list _CPP_va_list_capture; typedef va_list _CPP_va_list_capture;
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <stddef.h> # include_next <stddef.h>
} }
typedef ptrdiff_t _CPP_ptrdiff_t_capture; typedef ptrdiff_t _CPP_ptrdiff_t_capture;
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <stdio.h> # include_next <stdio.h>
} }
// size_t handled in <cstddef> // size_t handled in <cstddef>
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <stdlib.h> # include_next <stdlib.h>
typedef int (*_C_cmp_fun_ptr)(const void*, const void*); // C fn ptr typedef int (*_C_cmp_fun_ptr)(const void*, const void*); // C fn ptr
} }
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <string.h> # include_next <string.h>
} }
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <time.h> # include_next <time.h>
} }
inline clock_t _CPP_CLOCKS_PER_SEC_capture() inline clock_t _CPP_CLOCKS_PER_SEC_capture()
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <wchar.h> # include_next <wchar.h>
} }
// NULL, size_t handled in <cstddef> // NULL, size_t handled in <cstddef>
......
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <wctype.h> # include_next <wctype.h>
} }
typedef wctype_t _CPP_wctype_t_capture; typedef wctype_t _CPP_wctype_t_capture;
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <libio.h> # include_next <libio.h>
} }
......
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
namespace _C_legacy { namespace _C_legacy {
extern "C" { extern "C" {
# define _IN_C_LEGACY_ # define _IN_C_LEGACY_
# pragma system_header # pragma GCC system_header
# include_next <unistd.h> # include_next <unistd.h>
} }
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#ifndef _CPP_SYS_CDEFS_H #ifndef _CPP_SYS_CDEFS_H
# define _CPP_SYS_CDEFS_H # define _CPP_SYS_CDEFS_H
# pragma system_header # pragma GCC system_header
# include_next <sys/cdefs.h> # include_next <sys/cdefs.h>
// glibc-2 hackery. Other systems likely require other hacks. // glibc-2 hackery. Other systems likely require other hacks.
......
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