From 8f94bd72ee1fd61aa2572115758db9d297e37b4d Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 27 Jul 1993 07:11:12 +0000 Subject: [PATCH] (CPP_PREDEFINES): added -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BULL_SOURCE to the list. (CPP_PREDEFINES): added -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BULL_SOURCE to the list. (CPP_SPEC): removed ansi definition. From-SVN: r5000 --- gcc/config/m68k/dpx2.h | 34 ++++------------------------------ 1 file changed, 4 insertions(+), 30 deletions(-) diff --git a/gcc/config/m68k/dpx2.h b/gcc/config/m68k/dpx2.h index f5b3292..75fa5b9 100644 --- a/gcc/config/m68k/dpx2.h +++ b/gcc/config/m68k/dpx2.h @@ -24,33 +24,22 @@ * define all the things the compiler should */ #ifdef ncl_mr -# define CPP_PREDEFINES "-Dunix -Dbull -DDPX2 -DSVR3 -Dmc68000 -Dmc68020 -Dncl_mr=1" +# define CPP_PREDEFINES "-Dunix -Dbull -DDPX2 -DSVR3 -Dmc68000 -Dmc68020 -Dncl_mr=1 -D_BULL_SOURCE -D_POSIX_SOURCE -D_XOPEN_SOURCE" #else # ifdef ncl_el -# define CPP_PREDEFINES "-Dunix -Dbull -DDPX2 -DSVR3 -Dmc68000 -Dmc68020 -Dncl_el" +# define CPP_PREDEFINES "-Dunix -Dbull -DDPX2 -DSVR3 -Dmc68000 -Dmc68020 -Dncl_el-D_BULL_SOURCE -D_POSIX_SOURCE -D_XOPEN_SOURCE " # else -# define CPP_PREDEFINES "-Dunix -Dbull -DDPX2 -DSVR3 -Dmc68000 -Dmc68020" +# define CPP_PREDEFINES "-Dunix -Dbull -DDPX2 -DSVR3 -Dmc68000 -Dmc68020 -D_BULL_SOURCE -D_POSIX_SOURCE -D_XOPEN_SOURCE" # endif #endif #undef CPP_SPEC /* - * use -ansi to imply POSIX and XOPEN and BULL source - * no -ansi implies _SYSV - */ -/* * you can't get a DPX/2 without a 68882 but allow it * to be ignored... */ -#if 0 -# define CPP_SPEC "%{ansi:-D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BULL_SOURCE}\ - %{!ansi:-D_SYSV}" -#else # define __HAVE_68881__ 1 -# define CPP_SPEC "%{!msoft-float:-D__HAVE_68881__ }\ - %{ansi:-D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BULL_SOURCE}\ - %{!ansi:-D_SYSV}" -#endif +# define CPP_SPEC "%{!msoft-float:-D__HAVE_68881__ }" #undef ASM_LONG #define ASM_LONG "\t.long" @@ -59,21 +48,6 @@ #undef DO_GLOBAL_CTORS_BODY /* don't use svr3.h version */ #undef DO_GLOBAL_DTORS_BODY -#if 0 /* Should be no need now that svr3.h defines BSS_SECTION_FUNCTION. */ -/* - * svr3.h says to use BSS_SECTION_FUNCTION - * but no one appears to, and there is - * no definition for m68k. - */ -#ifndef BSS_SECTION_FUNCTION -# undef EXTRA_SECTION_FUNCTIONS -# define EXTRA_SECTION_FUNCTIONS \ - CONST_SECTION_FUNCTION \ - INIT_SECTION_FUNCTION \ - FINI_SECTION_FUNCTION -#endif -#endif /* 0 */ - #ifndef USE_GAS /* * handle the native assembler. -- 2.7.4