From 73b8ea0646a3d50588cec52443b22cedaeaf80ca Mon Sep 17 00:00:00 2001 From: hjl Date: Mon, 30 Jul 2001 19:01:19 +0000 Subject: [PATCH] 2001-07-30 H.J. Lu * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add -D_GNU_SOURCE. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44480 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/config/mips/linux.h | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2a95892..429347c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-07-30 H.J. Lu + + * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add + -D_GNU_SOURCE. + 2001-07-30 H.J. Lu (hjl@gnu.org) * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined. diff --git a/gcc/config/mips/linux.h b/gcc/config/mips/linux.h index 710df19..356eca2 100644 --- a/gcc/config/mips/linux.h +++ b/gcc/config/mips/linux.h @@ -105,6 +105,13 @@ Boston, MA 02111-1307, USA. */ %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} \ %{pthread:-D_REENTRANT}" +/* The GNU C++ standard library requires that these macros be defined. */ +#undef CPLUSPLUS_CPP_SPEC +#define CPLUSPLUS_CPP_SPEC "\ +-D__LANGUAGE_C_PLUS_PLUS -D_LANGUAGE_C_PLUS_PLUS \ +-D_GNU_SOURCE %(cpp) \ +" + /* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add the GNU/Linux magical crtbegin.o file (see crtstuff.c) which provides part of the support for getting C++ file-scope static -- 2.7.4