diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-06-23 00:09:12 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-06-23 00:09:12 +0000 |
commit | 652acfa22bad0161f76f9ea5661175839af7d6a4 (patch) | |
tree | 8c0092e9ba58eb582c24e60a4d2eee4238e001c5 /gcc/config | |
parent | dc767714e92b9753ebd79d34bf09605a1d044c2b (diff) | |
download | gcc-652acfa22bad0161f76f9ea5661175839af7d6a4.tar.gz |
Initial revision
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7532 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config')
-rw-r--r-- | gcc/config/m68k/ccur-GAS.h | 127 | ||||
-rw-r--r-- | gcc/config/m68k/x-ccur | 3 |
2 files changed, 130 insertions, 0 deletions
diff --git a/gcc/config/m68k/ccur-GAS.h b/gcc/config/m68k/ccur-GAS.h new file mode 100644 index 00000000000..88dd30bed7e --- /dev/null +++ b/gcc/config/m68k/ccur-GAS.h @@ -0,0 +1,127 @@ +/* Definitions of target machine for GNU compiler. Concurrent 68k version. + Copyright (C) 1987, 1988 Free Software Foundation, Inc. + +This file is part of GNU CC. + +GNU CC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 1, 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 of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +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. */ + +#ifndef MASSCOMP +#define MASSCOMP +#endif + +#ifndef CONCURRENT +#define CONCURRENT +#endif + +#ifndef __mc68000__ +#define __mc68000__ +#endif + +#ifndef __mc68020__ +#define __mc68020__ +#endif + +#define USE_GAS +#define MOVE_RATIO 100 + +#define SPACE_AFTER_L_OPTION +#define SWITCHES_NEED_SPACES " " + +#define TARGET_DEFAULT 0407 /* See m68k.h. 7 means 68020 with 68881. */ + +#include "m68k/m68k.h" + +#define SIZE_TYPE "int" + +/* for 68k machines this only needs to be TRUE for the 68000 */ + +#undef STRICT_ALIGNMENT +#define STRICT_ALIGNMENT 0 + +/* Names to predefine in the preprocessor for this target machine. */ +#define CPP_PREDEFINES \ + "-Dmc68000 -Dmasscomp -DMASSCOMP -Dunix -DLANGUAGE_C -Dconcurrent -DCONCURRENT" + +#undef TARGET_VERSION +#define TARGET_VERSION fprintf (stderr, " (68k, GNU GAS syntax)"); + +/* Discard internal local symbols beginning with 'L'. */ +#define LINK_SPEC "-X" + +/* Every structure or union's size must be a multiple of 4 bytes. */ +#define STRUCTURE_SIZE_BOUNDARY 16 + +/* No data type wants to be aligned rounder than this. */ +#undef BIGGEST_ALIGNMENT +#define BIGGEST_ALIGNMENT 32 + +/* Allocation boundary (in *bits*) for storing pointers in memory. */ +#undef POINTER_BOUNDARY +#define POINTER_BOUNDARY 32 + +/* Alignment of field after `int : 0' in a structure. */ +#undef EMPTY_FIELD_BOUNDARY +#define EMPTY_FIELD_BOUNDARY 32 + +/* Allocation boundry in bits for the code of a function */ +#undef FUNCTION_BOUNDRY +#define FUNCTION_BOUNDRY 32 + +/* Make strings long-word aligned so dhrystones will run faster. */ +#define CONSTANT_ALIGNMENT(EXP, ALIGN) \ + (TREE_CODE (EXP) == STRING_CST \ + && (ALIGN) < BITS_PER_WORD ? BITS_PER_WORD : (ALIGN)) + +/* Make arrays of chars word-aligned for the same reasons. */ +#define DATA_ALIGNMENT(TYPE, ALIGN) \ + (TREE_CODE (TYPE) == ARRAY_TYPE \ + && TYPE_MODE (TREE_TYPE (TYPE)) == QImode \ + && (ALIGN) < BITS_PER_WORD ? BITS_PER_WORD : (ALIGN)) + +/* This is BSD, so it wants DBX format. */ +#define DBX_DEBUGGING_INFO + +/* Override parts of m68k.h */ + +#undef CALL_USED_REGISTERS +#define CALL_USED_REGISTERS \ + {1, 1, 0, 0, 0, 0, 0, 0, \ + 1, 1, 0, 0, 0, 0, 0, 1, \ + 1, 1, 0, 0, 0, 0, 1, 1 } + +#undef REG_ALLOC_ORDER +#define REG_ALLOC_ORDER \ +{ 0, 1, 2, 3, 4, 5, 6, 7,\ + 8, 9, 10, 11, 12, 13, 14, 15, \ + 16, 17, 22, 23, 18, 19, 20, 21 } + +#undef ASM_FILE_START +#define ASM_FILE_START(FILE) \ + fprintf (FILE, "#NO_APP\n.globl fltused\n"); + +#undef ASM_OUTPUT_ALIGN +#define ASM_OUTPUT_ALIGN(FILE,LOG) \ +{ int _LOG = LOG; \ + if (_LOG == 1) \ + fprintf (FILE, "\t.even\n"); \ + else if (_LOG == 2) \ + fprintf (FILE, "\t.align 4\n"); \ + else if (_LOG != 0) \ + fprintf (FILE, "\t.align %d\n", _LOG);\ +} + +/* crt0.c should use the vax-bsd style of entry, with a dummy arg. */ + +#define CRT0_DUMMIES bogus_fp, diff --git a/gcc/config/m68k/x-ccur b/gcc/config/m68k/x-ccur new file mode 100644 index 00000000000..0f94e9da2f0 --- /dev/null +++ b/gcc/config/m68k/x-ccur @@ -0,0 +1,3 @@ +# Specify the jobs library when building in the ATT universe. +CLIB = -ljobs +X_CFLAGS = -O0 -DSHORT_ENUM_BUG -Dregister= |