⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 news.h

📁 gcc3.2.1源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
/* Definitions of target machine for GNU compiler.  SONY NEWS-OS 4 version.   Copyright (C) 1987, 1989, 1993, 1994, 1996, 1997, 1998, 1999   Free Software Foundation, Inc.This file is part of GNU CC.GNU CC is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU CC is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU CC; see the file COPYING.  If not, write tothe Free Software Foundation, 59 Temple Place - Suite 330,Boston, MA 02111-1307, USA.  */#ifndef USE_GAS/* This controls conditionals in m68k.h.  */#define MOTOROLA		/* Use Motorola syntax rather than "MIT" */#define SGS_NO_LI		/* Suppress jump table label usage */#endif#define NEWS#define NO_DOLLAR_IN_LABEL#define NO_DOT_IN_LABEL#include "m68k/m68k.h"/* See m68k.h.  7 means 68020 with 68881.  */#define TARGET_DEFAULT (MASK_BITFIELD|MASK_68881|MASK_68020)/* 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__}"/* Names to predefine in the preprocessor for this target machine.  *//* These are the ones defined by Sony, plus mc68000 for uniformity with   GCC on other 68000 systems.  */#ifdef MOTOROLA#define CPP_PREDEFINES "-Dunix -Dbsd43 -Dsony -Dsony_news -Dmc68000 -Dmc68020 -Dnews700 -D__motorola__ -Asystem=unix -Asystem=bsd -Acpu=m68k -Amachine=m68k"#else#define CPP_PREDEFINES "-Dunix -Dbsd43 -Dsony -Dsony_news -Dmc68000 -Dmc68020 -Dnews700 -Asystem=unix -Asystem=bsd -Acpu=m68k -Amachine=m68k"#endif/* These conditionals tested for different submodels,   but they were incorrect since they tested the host rather than the target.   The choice of model shouldn't actually matter.  */#if 0#ifdef news800#define CPP_PREDEFINES "-Dunix -Dbsd43 -Dsony -Dsony_news -Dmc68000 -Dmc68020 -Dnews800 -Asystem=unix -Asystem=bsd -Acpu=m68k -Amachine=m68k"#endif#ifdef news900#define CPP_PREDEFINES "-Dunix -Dbsd43 -Dsony -Dsony_news -Dmc68000 -Dmc68020 -Dnews900 -Asystem=unix -Asystem=bsd -Acpu=m68k -Amachine=m68k"#endif#ifdef news1500#define CPP_PREDEFINES "-Dunix -Dbsd43 -Dsony -Dsony_news -Dmc68000 -Dmc68020 -Dmc68030 -Dnews1500 -Asystem=unix -Asystem=bsd -Acpu=m68k -Amachine=m68k"#endif#ifdef news1700#define CPP_PREDEFINES "-Dunix -Dbsd43 -Dsony -Dsony_news -Dmc68000 -Dmc68020 -Dmc68030 -Dnews1700 -Asystem=unix -Asystem=bsd -Acpu=m68k -Amachine=m68k"#endif#ifdef news1800#define CPP_PREDEFINES "-Dunix -Dbsd43 -Dsony -Dsony_news -Dmc68000 -Dmc68020 -Dmc68030 -Dnews1800 -Asystem=unix -Asystem=bsd -Acpu=m68k -Amachine=m68k"#endif#ifdef news1900#define CPP_PREDEFINES "-Dunix -Dbsd43 -Dsony -Dsony_news -Dmc68000 -Dmc68020 -Dmc68030 -Dnews1900 -Asystem=unix -Asystem=bsd -Acpu=m68k -Amachine=m68k"#endif#endif/* Link with libg.a when debugging, for dbx's sake.  */#define LIB_SPEC "%{g:-lg} %{!p:%{!pg:-lc}}%{p:-lc_p}%{pg:-lc_p} "/* This is BSD, so it wants DBX format.  */#define DBX_DEBUGGING_INFO#if 0/* This is to be compatible with types.h.   It was found to be necessary with Newsos 3.  */#define SIZE_TYPE "long int"#endif/* Override parts of m68k.h to fit Sony's assembler syntax.  */#undef BIGGEST_ALIGNMENT#undef CALL_USED_REGISTERS#undef FUNCTION_VALUE#undef LIBCALL_VALUE#undef FUNCTION_PROFILER#ifdef MOTOROLA#undef REGISTER_NAMES#undef ASM_OUTPUT_REG_PUSH#undef ASM_OUTPUT_REG_POP#undef ASM_OUTPUT_SKIP#undef ASM_FORMAT_PRIVATE_NAME#endif  #undef ASM_OUTPUT_ALIGN/* There is no point aligning anything to a rounder boundary than this.  */#define BIGGEST_ALIGNMENT 32/* A bitfield declared as `int' forces `int' alignment for the struct.  */#define PCC_BITFIELD_TYPE_MATTERS 1  /* NEWS makes d2, d3, fp2 and fp3 unsaved registers, unlike the Sun system.  */  #define CALL_USED_REGISTERS \ {1, 1, 1, 1, 0, 0, 0, 0, \  1, 1, 0, 0, 0, 0, 0, 1, \  1, 1, 1, 1, 0, 0, 0, 0}/* NEWS returns floats and doubles in fp0, not d0/d1.  */#define FUNCTION_VALUE(VALTYPE,FUNC) LIBCALL_VALUE (TYPE_MODE (VALTYPE))#define LIBCALL_VALUE(MODE)					\ gen_rtx_REG ((MODE),						\	      ((TARGET_68881					\		&& ((MODE) == SFmode || (MODE) == DFmode	\		    || (MODE) == XFmode))			\	       ? 16 : 0))#define ASM_OUTPUT_ALIGN(FILE,LOG)	\  fprintf (FILE, "\t.align %d\n", (LOG))#ifdef MOTOROLA#define FUNCTION_PROFILER(FILE, LABEL_NO) \   fprintf (FILE, "\tmove.l #LP%d,d0\n\tjsr mcount\n", (LABEL_NO));/* Difference from m68k.h is in `fp' instead of `a6'.  */#define REGISTER_NAMES \{"d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7",	\ "a0", "a1", "a2", "a3", "a4", "a5", "fp", "sp",	\ "fp0", "fp1", "fp2", "fp3", "fp4", "fp5", "fp6", "fp7"}/* This is how to output an insn to push a register on the stack.   It need not be very fast code.  */#define ASM_OUTPUT_REG_PUSH(FILE,REGNO)  \  fprintf (FILE, "\tmove.l %s,-(sp)\n", reg_names[REGNO])/* This is how to output an insn to pop a register from the stack.   It need not be very fast code.  */#define ASM_OUTPUT_REG_POP(FILE,REGNO)  \  fprintf (FILE, "\tmove.l (sp)+,%s\n", reg_names[REGNO])  #define ASM_OUTPUT_SKIP(FILE,SIZE)  \  fprintf (FILE, "\t.space %u\n", (SIZE))#if 0/* The NEWS assembler in version 3.4 complains about fmove.d, but this   macro proved not to work right.  3.4 is old, so forget about it.  */#define ASM_OUTPUT_OPCODE(FILE, STRING) \{						\  if (!strncmp (STRING, "fmove.d", 7)		\      && CONSTANT_P (operands[1]))		\    {						\      fprintf (FILE, "fmove.x");		\      STRING += 7;				\    }						\}#endif/* Store in OUTPUT a string (made with alloca) containing   an assembler-name for a local static variable named NAME.   LABELNO is an integer which is different for each call.  */#define ASM_FORMAT_PRIVATE_NAME(OUTPUT, NAME, LABELNO)	\( (OUTPUT) = (char *) alloca (strlen ((NAME)) + 13),	\  sprintf ((OUTPUT), "%s$$$%d", (NAME), (LABELNO)))/* Output a float value (represented as a C double) as an immediate operand.   This macro is a 68k-specific macro.  */#undef ASM_OUTPUT_FLOAT_OPERAND#define ASM_OUTPUT_FLOAT_OPERAND(CODE,FILE,VALUE)			\ do {									\      if (CODE == 'f')							\        {								\          char dstr[30];						\          REAL_VALUE_TO_DECIMAL (VALUE, "%.9e", dstr);			\          if (REAL_VALUE_ISINF (VALUE) || REAL_VALUE_ISNAN (VALUE))	\	    {								\	      if (REAL_VALUE_NEGATIVE (VALUE))				\		fprintf (FILE, "#0f-99e999");				\	      else							\		fprintf (FILE, "#0f99e999");				\	    }								\          else if (REAL_VALUE_MINUS_ZERO (VALUE))			\            fprintf (FILE, "#0f-0.0");					\          else								\            fprintf (FILE, "#0f%s", dstr); 				\        }								\      else								\        {								\          long l;							\          REAL_VALUE_TO_TARGET_SINGLE (VALUE, l);			\          fprintf (FILE, "#0x%lx", l);					\        }								\     } while (0)/* Output a double value (represented as a C double) as an immediate operand.   This macro is a 68k-specific macro.  */#undef ASM_OUTPUT_DOUBLE_OPERAND#define ASM_OUTPUT_DOUBLE_OPERAND(FILE,VALUE)				\

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -