--- gcc/config/i386sun.h 2018/04/24 17:51:34 1.1.1.1 +++ gcc/config/i386sun.h 2018/04/24 18:05:05 1.1.1.3 @@ -24,21 +24,18 @@ the Free Software Foundation, 675 Mass A #include "sun386.h" -/* By default, target has a 80387. */ - -#define TARGET_DEFAULT 1 - /* Use crt0.o as a startup file. */ #define STARTFILE_SPEC \ "%{pg:gcrt0.o%s}%{!pg:%{p:mcrt0.o%s}%{!p:crt0.o%s}}" -#define LIB_SPEC "%{g:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}\ +#define LIB_SPEC "%{g:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} \ %{g:-lg} %{sun386:}" /* That last item is just to prevent a spurious error. */ #undef LINK_SPEC -#define LINK_SPEC "%{!e*:-e _start} -dc -dp %{g:-Bstatic} %{static:-Bstatic}" +#define LINK_SPEC \ + "%{!nostdlib:%{!r*:%{!e*:-e _start}}} -dc -dp %{static:-Bstatic}" /* Extra switches to give the assembler. */ @@ -48,6 +45,10 @@ the Free Software Foundation, 675 Mass A #define CPP_PREDEFINES "-Dunix -Di386 -Dsun386 -Dsun" +/* Define size_t for built-in functions. */ + +#define SIZE_TYPE "int" + /* Allow #sccs in preprocessor. */ #define SCCS_DIRECTIVE @@ -72,18 +73,6 @@ the Free Software Foundation, 675 Mass A #define PCC_BITFIELD_TYPE_MATTERS 1 -/* Define how to find the value returned by a function. - VALTYPE is the data type of the value (as a tree). - If the precise function being called is known, FUNC is its FUNCTION_DECL; - otherwise, FUNC is 0. */ - -#define VALUE_REGNO(MODE) \ - (((MODE)==SFmode || (MODE)==DFmode) ? FIRST_FLOAT_REG : 0) - -/* 1 if N is a possible register number for a function value. */ - -#define FUNCTION_VALUE_REGNO_P(N) ((N) == 0 || (N)== FIRST_FLOAT_REG) - /* This is partly guess. */ #undef DBX_REGISTER_NUMBER