From 7ddb68857a2579bfbaca9484c68a77e6ec32d743 Mon Sep 17 00:00:00 2001 From: Tom Wood Date: Thu, 30 Jul 1992 13:54:57 +0000 Subject: [PATCH] (FUNCTION_BOUNDARY, ASM_OUTPUT_ALIGN_CODE): Pack code more tightly for the m88110. From-SVN: r1723 --- gcc/config/m88k/m88k.h | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/gcc/config/m88k/m88k.h b/gcc/config/m88k/m88k.h index f5aa79d96d2..20742e3c1da 100644 --- a/gcc/config/m88k/m88k.h +++ b/gcc/config/m88k/m88k.h @@ -206,9 +206,9 @@ extern char * reg_names[]; /* Print subsidiary information on the compiler version in use. Redefined in m88kv4.h, and m88kluna.h. */ #define VERSION_INFO1 "88open OCS/BCS, " -#define VERSION_INFO2 "21 Jul 1992" +#define VERSION_INFO2 "30 Jul 1992" #define VERSION_STRING version_string -#define TM_SCCS_ID "@(#)m88k.h 2.2.6.9 21 Jul 1992 09:24:47" +#define TM_SCCS_ID "@(#)m88k.h 2.2.6.11 30 Jul 1992 09:06:33" /* Run-time compilation parameters selecting different hardware subsets. */ @@ -391,9 +391,12 @@ extern char * reg_names[]; /* Boundary (in *bits*) on which stack pointer should be aligned. */ #define STACK_BOUNDARY 128 -/* Allocation boundary (in *bits*) for the code of a function. - Pack code tightly when compiling crtstuff.c. */ -#define FUNCTION_BOUNDARY (flag_inhibit_size_directive ? 32 : 128) +/* Allocation boundary (in *bits*) for the code of a function. On the + m88100, it is desirable to align to a cache line. However, SVR3 targets + only provided 8 byte alignment. The m88110 cache is small, so align + to an 8 byte boundary. Pack code tightly when compiling crtstuff.c. */ +#define FUNCTION_BOUNDARY (flag_inhibit_size_directive ? 32 : \ + (TARGET_88100 && TARGET_SVR4 ? 128 : 64)) /* No data type wants to be aligned rounder than this. */ #define BIGGEST_ALIGNMENT 64 @@ -2000,10 +2003,12 @@ enum reg_class { NO_REGS, AP_REG, XRF_REGS, GENERAL_REGS, AGRF_REGS, if ((LOG) != 0) \ fprintf (FILE, "\t%s\t %d\n", ALIGN_ASM_OP, 1<<(LOG)) -/* Align the text address to half a cache boundary when it can only be - reached by jumping. Pack code tightly when compiling crtstuff.c. */ +/* On the m88100, align the text address to half a cache boundary when it + can only be reached by jumping. Pack code tightly when compiling + crtstuff.c. */ #define ASM_OUTPUT_ALIGN_CODE(FILE) \ - ASM_OUTPUT_ALIGN (FILE, (flag_inhibit_size_directive ? 2 : 3)) + ASM_OUTPUT_ALIGN (FILE, \ + (TARGET_88100 && !flag_inhibit_size_directive ? 3 : 2)) /* Override svr[34].h. */ #undef ASM_OUTPUT_SKIP -- 2.30.2