--- gcc/config/seq386.h 2018/04/24 17:53:45 1.1.1.2 +++ gcc/config/seq386.h 2018/04/24 18:03:50 1.1.1.3 @@ -23,9 +23,13 @@ the Free Software Foundation, 675 Mass A #include "bsd386.h" -/* By default, target has a 80387. */ +/* By default, don't use IEEE compatible arithmetic comparisons + because the assembler can't handle the fucom insn. + Return float values in the 387. + (TARGET_80387 | TARGET_FLOAT_RETURNS_IN_80387) */ -#define TARGET_DEFAULT 1 +#undef TARGET_DEFAULT +#define TARGET_DEFAULT 0201 /* Specify predefined symbols in preprocessor. */ @@ -47,6 +51,9 @@ the Free Software Foundation, 675 Mass A #define DBX_DEBUGGING_INFO +/* Sequent Symmetry has size_t defined as int in /usr/include/sys/types.h */ +#define SIZE_TYPE "int" + /* gcc order is ax, dx, cx, bx, si, di, bp, sp, st, st. * dbx order is ax, dx, cx, st(0), st(1), bx, si, di, st(2), st(3), * st(4), st(5), st(6), st(7), sp, bp */ @@ -72,21 +79,12 @@ the Free Software Foundation, 675 Mass A : (MODE) != QImode) \ && ! (REGNO == 2 && GET_MODE_UNIT_SIZE (MODE) > 4)) -/* Floating-point return values come in the FP register. */ - -#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) - /* Output assembler code to FILE to increment profiler label # LABELNO for profiling a function entry. */ #undef FUNCTION_PROFILER #define FUNCTION_PROFILER(FILE, LABELNO) \ - fprintf (FILE, "\tmovl $LP%d,%%eax\n\tcall mcount\n", (LABELNO)); + fprintf (FILE, "\tmovl $.LP%d,%%eax\n\tcall mcount\n", (LABELNO)); /* Assembler pseudo-op for shared data segment. */ #define SHARED_SECTION_ASM_OP ".shdata" @@ -114,3 +112,15 @@ the Free Software Foundation, 675 Mass A (PTR) += 4; \ } \ } + +/* 10-Aug-92 pes Local labels are prefixed with ".L" */ +#undef LPREFIX +#define LPREFIX ".L" + +#undef ASM_GENERATE_INTERNAL_LABEL +#define ASM_GENERATE_INTERNAL_LABEL(BUF,PREFIX,NUMBER)\ + sprintf ((BUF), "*.%s%d", (PREFIX), (NUMBER)) + +#undef ASM_OUTPUT_INTERNAL_LABEL +#define ASM_OUTPUT_INTERNAL_LABEL(FILE,PREFIX,NUM)\ + fprintf (FILE, ".%s%d:\n", PREFIX, NUM)