OSDN Git Service

config:
[pf3gnuchains/gcc-fork.git] / gcc / config / m68k / isi.h
index 7bff7e8..240a86e 100644 (file)
@@ -1,6 +1,6 @@
 /* Definitions of target machine for GNU compiler.  ISI 68000/68020 version.
    Intended only for use with GAS, and not ISI's assembler, which is buggy
-   Copyright (C) 1988 Free Software Foundation, Inc.
+   Copyright (C) 1988, 1996, 1998, 1999 Free Software Foundation, Inc.
 
 This file is part of GNU CC.
 
@@ -16,34 +16,26 @@ GNU General Public License for more details.
 
 You should have received a copy of the GNU General Public License
 along with GNU CC; see the file COPYING.  If not, write to
-the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
+the Free Software Foundation, 59 Temple Place - Suite 330,
+Boston, MA 02111-1307, USA.  */
 
-#include "m68k.h"
-
-/* Without STRUCTURE_SIZE_BOUNDARY, we can't ensure that structures are
-   aligned such that we can correctly extract bitfields from them.
-   Someone should check whether the usual compiler on this machine
-   provides the equivalent behavior of STRUCTURE_SIZE_BOUNDARY.  */
-/* Alternative solutions are (1) define PCC_BITFIELD_TYPE_MATTERS,
-   if that fits what the usual compiler does,
-   or disable the -m68000 and -mnobitfield options.  */
-#error This doesn't define STRUCTURE_SIZE_BOUNDARY
+#include "m68k/m68k.h"
 
 /* See m68k.h.  7 means 68020 with 68881. */
-
 #ifndef TARGET_DEFAULT
-#define TARGET_DEFAULT 7
+#define TARGET_DEFAULT (MASK_BITFIELD|MASK_68881|MASK_68020)
 #endif
 
-#if TARGET_DEFAULT & 2
+#if TARGET_DEFAULT & MASK_68881
 /* Define __HAVE_68881__ in preprocessor, unless -msoft-float is specified.
    This will control the use of inline 68881 insns in certain macros.  */
 
 #define CPP_SPEC "%{!msoft-float:-D__HAVE_68881__}"
 
-/* If the 68881 is used, link must load libmc.a instead of libc.a */
+/* If the 68881 is used, link must load libmc.a before libc.a.  */
 
-#define LIB_SPEC "%{g:-lg} %{msoft-float:%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}%{!msoft-float:%{!p:%{!pg:-lmc}}%{p:-lmc_p}%{pg:-lmc_p}} %{g:-lg}"
+#define LIB_SPEC "%{!msoft-float:%{!p:%{!pg:-lmc}}%{p:-lmc_p}%{pg:-lmc_p}} \
+%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} %{g:-lg}"
 
 #else
 /* Define __HAVE_68881__ in preprocessor if -m68881 is specified.
@@ -53,12 +45,13 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 /* If the 68881 is used, link must load libmc.a instead of libc.a */
 
-#define LIB_SPEC "%{g:-lg} %{!m68881:%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p}}%{m68881:%{!p:%{!pg:-lmc}}%{p:-lmc_p}%{pg:-lmc_p}}"
+#define LIB_SPEC "%{m68881:%{!p:%{!pg:-lmc}}%{p:-lmc_p}%{pg:-lmc_p}} \
+%{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} %{g:-lg}"
 #endif
 
 /* Names to predefine in the preprocessor for this target machine.  */
 
-#define CPP_PREDEFINES "-Dunix -Dmc68000 -Dis68k"
+#define CPP_PREDEFINES "-Dunix -Dmc68000 -Dis68k -Asystem=unix -Asystem=bsd -Acpu=m68k -Amachine=m68k"
 
 /* This is BSD, so it wants DBX format.  */
 
@@ -69,14 +62,19 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #undef FUNCTION_VALUE
 #undef LIBCALL_VALUE
 #undef FUNCTION_VALUE_REGNO_P
+#undef NEEDS_UNTYPED_CALL
 #undef ASM_FILE_START
 
+/* Every structure or union's size must be a multiple of 2 bytes.  */
+
+#define STRUCTURE_SIZE_BOUNDARY 16
+
 /* If TARGET_68881, return SF and DF values in f0 instead of d0.  */
 
 #define FUNCTION_VALUE(VALTYPE,FUNC) LIBCALL_VALUE (TYPE_MODE (VALTYPE))
 
 #define LIBCALL_VALUE(MODE) \
- gen_rtx (REG, (MODE), ((TARGET_68881 && ((MODE) == SFmode || (MODE) == DFmode)) ? 16 : 0))
+ gen_rtx_REG ((MODE), ((TARGET_68881 && ((MODE) == SFmode || (MODE) == DFmode)) ? 16 : 0))
 
 /* 1 if N is a possible register number for a function value.
    D0 may be used, and F0 as well if -m68881 is specified.  */
@@ -84,5 +82,10 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #define FUNCTION_VALUE_REGNO_P(N) \
  ((N) == 0 || (TARGET_68881 && (N) == 16))
 
+/* Define this to be true when FUNCTION_VALUE_REGNO_P is true for
+   more than one register.  */
+
+#define NEEDS_UNTYPED_CALL 1
+
 /* Also output something to cause the correct _doprnt to be loaded.  */
 #define ASM_FILE_START(FILE) fprintf (FILE, "#NO_APP\n%s\n", TARGET_68881 ? ".globl fltused" : "")