--- gcc/config/sun3.h 2018/04/24 17:54:39 1.1.1.2 +++ gcc/config/sun3.h 2018/04/24 18:05:27 1.1.1.4 @@ -72,7 +72,8 @@ the Free Software Foundation, 675 Mass A /* These compiler options take an argument. We ignore -target for now. */ #define WORD_SWITCH_TAKES_ARG(STR) \ - (!strcmp (STR, "Tdata") || !strcmp (STR, "include") \ + (!strcmp (STR, "Tdata") || !strcmp (STR, "Ttext") \ + || !strcmp (STR, "Tbss") || !strcmp (STR, "include") \ || !strcmp (STR, "imacros") || !strcmp (STR, "target") \ || !strcmp (STR, "assert") || !strcmp (STR, "aux-info")) @@ -147,7 +148,8 @@ the Free Software Foundation, 675 Mass A /* Provide required defaults for linker -e and -d switches. */ -#define LINK_SPEC "%{!e*:-e start} -dc -dp %{static:-Bstatic} %{assert*}" +#define LINK_SPEC \ + "%{!nostdlib:%{!r*:%{!e*:-e start}}} -dc -dp %{static:-Bstatic} %{assert*}" /* Every structure or union's size must be a multiple of 2 bytes. */ @@ -204,7 +206,7 @@ the Free Software Foundation, 675 Mass A #define ASM_OUTPUT_FLOAT_OPERAND(FILE,VALUE) \ (REAL_VALUE_ISINF ((VALUE)) \ ? (asm_fprintf (FILE, "%I0r%s99e999", ((VALUE) > 0 ? "" : "-")), 0) \ - : (VALUE) == -0.0 \ + : REAL_VALUE_MINUS_ZERO (VALUE) \ ? (asm_fprintf (FILE, "%I0r-0.0"), 0) \ : (asm_fprintf (FILE, "%I0r%.9g", (VALUE)), 0)) @@ -212,6 +214,6 @@ the Free Software Foundation, 675 Mass A #define ASM_OUTPUT_DOUBLE_OPERAND(FILE,VALUE) \ (REAL_VALUE_ISINF ((VALUE)) \ ? (asm_fprintf (FILE, "%I0r%s99e999", ((VALUE) > 0 ? "" : "-")), 0) \ - : (VALUE) == -0.0 \ + : REAL_VALUE_MINUS_ZERO (VALUE) \ ? (asm_fprintf (FILE, "%I0r-0.0"), 0) \ : (asm_fprintf (FILE, "%I0r%.17g", (VALUE)), 0))