--- gcc/config/m88kv3.h 2018/04/24 17:54:11 1.1.1.2 +++ gcc/config/m88kv3.h 2018/04/24 18:04:40 1.1.1.4 @@ -1,5 +1,5 @@ /* Definitions of target machine for GNU compiler. - Motorola m88100 running the AT&T/Unisoft/Motorla V.3 reference port. + Motorola m88100 running the AT&T/Unisoft/Motorola V.3 reference port. Copyright (C) 1990, 1991 Free Software Foundation, Inc. Contributed by Ray Essick (ressick@mot.com) Currently supported by Tom Wood (wood@dg-rtp.dg.com) @@ -30,7 +30,7 @@ the Free Software Foundation, 675 Mass A /* Macros to be automatically defined. */ #undef CPP_PREDEFINES -#define CPP_PREDEFINES "-Dm88000 -Dm88k -DsysV88 -D__CLASSIFY_TYPE__=2" +#define CPP_PREDEFINES "-Dm88000 -Dm88k -Dunix -DsysV88 -D__CLASSIFY_TYPE__=2" /* Override svr3.h to link with ?crt0.o instead of ?crt1.o and ?crtn.o. From arul@sdsu.edu. */ @@ -69,13 +69,11 @@ the Free Software Foundation, 675 Mass A __do_global_dtors. */ #define HAVE_ATEXIT -#if (STACK_BOUNDARY / BITS_PER_UNIT) == 16 && REG_PARM_STACK_SPACE (0) == 32 #define CTOR_LIST_BEGIN \ asm (INIT_SECTION_ASM_OP); \ - asm ("\tsubu\t r31,r31,16"); \ - asm ("\tst\t r0,r31,32"); + asm ("\tsubu\t r31,r31,16"); /* (STACK_BOUNDARY / BITS_PER_UNIT) == 16 */ \ + asm ("\tst\t r0,r31,32"); /* REG_PARM_STACK_SPACE (0) == 32 */ #define CTOR_LIST_END -#endif /* ASM_OUTPUT_CONSTRUCTOR outputs code into the .init section to push the address of the constructor. This becomes the body of __do_global_ctors