From: Kaz Kojima Date: Thu, 9 Jan 2003 07:58:34 +0000 (+0000) Subject: sh.h (CASE_VECTOR_MODE): Use SImode for a non-optimizing compile. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8b26829f59398c76364c6c6275cabbda4aee5b0a;p=gcc.git sh.h (CASE_VECTOR_MODE): Use SImode for a non-optimizing compile. * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a non-optimizing compile. (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing compile. From-SVN: r61075 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8ba806e2354..bef4d4ca354 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +2003-01-08 Kaz Kojima + + * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a + non-optimizing compile. + (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing + compile. + 2003-01-08 Douglas B Rupp * config/i386/i386.c (ix86_attribute_table): Add new attributes diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index 474fa734847..a7a77c0bdff 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -2571,7 +2571,7 @@ while (0) /* Specify the machine mode that this machine uses for the index in the tablejump instruction. */ -#define CASE_VECTOR_MODE (TARGET_BIGTABLE ? SImode : HImode) +#define CASE_VECTOR_MODE ((! optimize || TARGET_BIGTABLE) ? SImode : HImode) #define CASE_VECTOR_SHORTEN_MODE(MIN_OFFSET, MAX_OFFSET, BODY) \ ((MIN_OFFSET) >= 0 && (MAX_OFFSET) <= 127 \ @@ -3041,7 +3041,7 @@ while (0) /* Output an absolute table element. */ #define ASM_OUTPUT_ADDR_VEC_ELT(STREAM,VALUE) \ - if (TARGET_BIGTABLE) \ + if (! optimize || TARGET_BIGTABLE) \ asm_fprintf ((STREAM), "\t.long\t%LL%d\n", (VALUE)); \ else \ asm_fprintf ((STREAM), "\t.word\t%LL%d\n", (VALUE));