--- gcc/config/m88k/sysv3.h 2018/04/24 18:10:22 1.1.1.1 +++ gcc/config/m88k/sysv3.h 2018/04/24 18:20:30 1.1.1.3 @@ -30,7 +30,7 @@ the Free Software Foundation, 675 Mass A /* Macros to be automatically defined. */ #undef CPP_PREDEFINES -#define CPP_PREDEFINES "-Dm88000 -Dm88k -Dunix -DsysV88 -D__CLASSIFY_TYPE__=2" +#define CPP_PREDEFINES "-Dm88000 -Dm88k -Dunix -DsysV88 -D__CLASSIFY_TYPE__=2 -Asystem(unix) -Asystem(svr3) -Acpu(m88k) -Amachine(m88k)" /* Override svr3.h to link with ?crt0.o instead of ?crt1.o and ?crtn.o. From arul@sdsu.edu. */ @@ -93,8 +93,8 @@ the Free Software Foundation, 675 Mass A #undef DO_GLOBAL_CTORS_BODY #define DO_GLOBAL_CTORS_BODY \ do { \ - func_ptr *__CTOR_LIST__ = __builtin_alloca (0), *p; \ - for (p = __CTOR_LIST__; *p; p += 4) \ + func_ptr *__CTOR_LIST__ = __builtin_alloca (1), *p; \ + for (p = __CTOR_LIST__ + 4; *p; p += 4) \ (*p) (); \ } while (0)