--- gcc/config/dpx2.h 2018/04/24 17:59:19 1.1.1.1 +++ gcc/config/dpx2.h 2018/04/24 18:04:56 1.1.1.2 @@ -1,7 +1,5 @@ /* * dpx2.h - Bull DPX/2 200 and 300 systems (m68k, SysVr3) - * - * $Id: dpx2.h,v 1.1.1.1 2018/04/24 17:59:19 root Exp $ */ #include "m68k.h" @@ -9,7 +7,8 @@ #include "svr3.h" /* See m68k.h. 7 means 68020 with 68881. - * We really have 68030, but this will get us going. + * We really have 68030 and 68882, + * but this will get us going. */ #ifndef TARGET_DEFAULT #define TARGET_DEFAULT 7 @@ -39,8 +38,19 @@ * 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 #undef ASM_LONG #define ASM_LONG "\t.long" @@ -48,16 +58,8 @@ #define HAVE_ATEXIT #undef DO_GLOBAL_CTORS_BODY /* don't use svr3.h version */ #undef DO_GLOBAL_DTORS_BODY - -#if 0 /* def DEBUG */ -/* - * find out where cc1 aborts - */ -#define abort() do { fprintf(stderr, "%s: aborting at line %d\n", \ - __FILE__, __LINE__); \ - kill(getpid(), 6); } while (0) -#endif +#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 @@ -70,6 +72,7 @@ INIT_SECTION_FUNCTION \ FINI_SECTION_FUNCTION #endif +#endif /* 0 */ #ifndef USE_GAS /*