sh.h (CASE_VECTOR_MODE): Use SImode for a non-optimizing compile.
authorKaz Kojima <kkojima@gcc.gnu.org>
Thu, 9 Jan 2003 07:58:34 +0000 (07:58 +0000)
committerKaz Kojima <kkojima@gcc.gnu.org>
Thu, 9 Jan 2003 07:58:34 +0000 (07:58 +0000)
* 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

gcc/ChangeLog
gcc/config/sh/sh.h

index 8ba806e23549af1b28ce3c6941af175069f236ee..bef4d4ca35474fa20ce6f82a896425b914788816 100644 (file)
@@ -1,3 +1,10 @@
+2003-01-08  Kaz Kojima  <kkojima@gcc.gnu.org>
+
+       * 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  <rupp@gnat.com>
 
        * config/i386/i386.c (ix86_attribute_table): Add new attributes
index 474fa734847727f02393422ca56dcb54ef83d731..a7a77c0bdff9d4be3bbb6277ba065ca425088266 100644 (file)
@@ -2571,7 +2571,7 @@ while (0)
 \f
 /* 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));