--- gcc/config/i386v.h 2018/04/24 17:54:34 1.1.1.2 +++ gcc/config/i386v.h 2018/04/24 18:05:20 1.1.1.4 @@ -29,10 +29,6 @@ the Free Software Foundation, 675 Mass A #include "att386.h" -/* By default, target has a 80387. */ - -#define TARGET_DEFAULT 1 - /* Use crt1.o as a startup file and crtn.o as a closing file. */ #define STARTFILE_SPEC \ @@ -58,28 +54,6 @@ the Free Software Foundation, 675 Mass A #undef ASM_FILE_START_1 #define ASM_FILE_START_1(FILE) -/* Machines that use the AT&T assembler syntax - also return floating point values in an FP register. */ -/* 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) - -#if 0 /* This symbol is expected to exist only on BSD, - and besides, it describes the host rather than the target. - It certainly does not belong here. */ -#ifndef MAXPATHLEN -#define MAXPATHLEN 1024 -#endif -#endif - /* longjmp may fail to restore the registers if called from the same function that called setjmp. To compensate, the compiler avoids putting variables in registers in functions that use both setjmp @@ -98,6 +72,21 @@ the Free Software Foundation, 675 Mass A #undef FRAME_POINTER_REQUIRED #define FRAME_POINTER_REQUIRED \ (current_function_calls_setjmp || current_function_calls_longjmp) + +/* Modify ASM_OUTPUT_LOCAL slightly to test -msvr3-shlib. */ +#undef ASM_OUTPUT_LOCAL +#define ASM_OUTPUT_LOCAL(FILE, NAME, SIZE, ROUNDED) \ + do { \ + int align = exact_log2 (ROUNDED); \ + if (align > 2) align = 2; \ + if (TARGET_SVR3_SHLIB) \ + data_section (); \ + else \ + bss_section (); \ + ASM_OUTPUT_ALIGN ((FILE), align == -1 ? 2 : align); \ + ASM_OUTPUT_LABEL ((FILE), (NAME)); \ + fprintf ((FILE), "\t.set .,.+%u\n", (ROUNDED)); \ + } while (0) /* Define a few machine-specific details of the implementation of constructors.