From: James Van Artsdalen Date: Mon, 31 Aug 1992 07:03:32 +0000 (+0000) Subject: (TARGET_DEFAULT,VALUE_REGNO,FUNCTION_VALUE_REGNO): Move to unx386.h. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=582329cb7600bb4f409e59c62f2ad248d89d93c4;p=gcc.git (TARGET_DEFAULT,VALUE_REGNO,FUNCTION_VALUE_REGNO): Move to unx386.h. From-SVN: r1999 --- diff --git a/gcc/config/i386/aix386.h b/gcc/config/i386/aix386.h index 3cd191e5238..133df6f1676 100644 --- a/gcc/config/i386/aix386.h +++ b/gcc/config/i386/aix386.h @@ -30,10 +30,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #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 \ @@ -79,20 +75,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define ASM_FILE_START_1(FILE) fprintf (FILE, "\t.noopt\n"); #endif -/* 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) - /* Output assembler code to FILE to increment profiler label # LABELNO for profiling a function entry. */ diff --git a/gcc/config/i386/gas.h b/gcc/config/i386/gas.h index eeb0483c88d..4617e10f668 100644 --- a/gcc/config/i386/gas.h +++ b/gcc/config/i386/gas.h @@ -43,10 +43,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef DBX_NO_XREFS #undef DBX_CONTIN_LENGTH -/* By default, target has a 80387. */ - -#define TARGET_DEFAULT 1 - /* Specify predefined symbols in preprocessor. */ #define CPP_PREDEFINES "-Dunix -Di386" @@ -94,20 +90,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #define ASM_OUTPUT_LOOP_ALIGN(FILE) \ fprintf ((FILE), "\t.align 2,0x90\n"); /* Use log of 4 as arg. */ -/* 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) - #undef ASM_FILE_START #define ASM_FILE_START(FILE) \ fprintf (FILE, "\t.file\t\"%s\"\n", dump_base_name); diff --git a/gcc/config/i386/sequent.h b/gcc/config/i386/sequent.h index d134215650f..a8720280000 100644 --- a/gcc/config/i386/sequent.h +++ b/gcc/config/i386/sequent.h @@ -23,10 +23,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "bsd386.h" -/* By default, target has a 80387. */ - -#define TARGET_DEFAULT 1 - /* Specify predefined symbols in preprocessor. */ #define CPP_PREDEFINES "-Dunix -Di386 -Dsequent" @@ -75,15 +71,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ : (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. */ diff --git a/gcc/config/i386/sun.h b/gcc/config/i386/sun.h index 2c84e9fecf9..5bc96f97163 100644 --- a/gcc/config/i386/sun.h +++ b/gcc/config/i386/sun.h @@ -24,10 +24,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "sun386.h" -/* By default, target has a 80387. */ - -#define TARGET_DEFAULT 1 - /* Use crt0.o as a startup file. */ #define STARTFILE_SPEC \ @@ -77,18 +73,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #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 diff --git a/gcc/config/i386/sysv3.h b/gcc/config/i386/sysv3.h index 4cdbedaf4e1..41b40151a80 100644 --- a/gcc/config/i386/sysv3.h +++ b/gcc/config/i386/sysv3.h @@ -29,10 +29,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #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 Ave, Cambridge, MA 02139, USA. */ #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 diff --git a/gcc/config/i386/sysv4.h b/gcc/config/i386/sysv4.h index 7d4871f23dc..c3caacb7843 100644 --- a/gcc/config/i386/sysv4.h +++ b/gcc/config/i386/sysv4.h @@ -26,24 +26,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #undef TARGET_VERSION #define TARGET_VERSION fprintf (stderr, " (i386 System V Release 4)"); -/* By default, target has a 80387. */ - -#define TARGET_DEFAULT 1 - -/* 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) - /* The svr4 ABI for the i386 says that records and unions are returned in memory. */