diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2002-08-11 19:24:09 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2002-08-11 19:24:09 +0000 |
commit | e0c32c62d5c47790333bb557ed2d89a3806246d0 (patch) | |
tree | fe53ca4ba392d25b1374ffe33608794308bcfc0e /gcc | |
parent | 7ae8cf75dae94f2b0b68f433e0962ffe7883a158 (diff) | |
download | gcc-e0c32c62d5c47790333bb557ed2d89a3806246d0.zip gcc-e0c32c62d5c47790333bb557ed2d89a3806246d0.tar.gz gcc-e0c32c62d5c47790333bb557ed2d89a3806246d0.tar.bz2 |
dsp16xx.c (print_operand): Fix format specifier.
* dsp16xx.c (print_operand): Fix format specifier.
* dsp16xx.md: Avoid automatic aggregate initialization.
* frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
* h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
integer constant modifier.
* ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
* mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
guards.
* sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
* v850.c (v850_select_section): Mark parameter with
ATTRIBUTE_UNUSED.
* global.c (global_alloc): Const-ify.
* ra-colorize.c (hardregset_to_string): Fix format specifier.
From-SVN: r56212
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 16 | ||||
-rw-r--r-- | gcc/config/dsp16xx/dsp16xx.c | 2 | ||||
-rw-r--r-- | gcc/config/dsp16xx/dsp16xx.md | 4 | ||||
-rw-r--r-- | gcc/config/frv/frv.h | 2 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.c | 4 | ||||
-rw-r--r-- | gcc/config/ip2k/ip2k.c | 2 | ||||
-rw-r--r-- | gcc/config/mmix/mmix-protos.h | 2 | ||||
-rw-r--r-- | gcc/config/sh/netbsd-elf.h | 8 | ||||
-rw-r--r-- | gcc/config/v850/v850.c | 2 | ||||
-rw-r--r-- | gcc/global.c | 4 | ||||
-rw-r--r-- | gcc/ra-colorize.c | 2 |
11 files changed, 33 insertions, 15 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0158816..3bdc08f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,21 @@ 2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + * dsp16xx.c (print_operand): Fix format specifier. + * dsp16xx.md: Avoid automatic aggregate initialization. + * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index. + * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U + integer constant modifier. + * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning. + * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE + guards. + * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier. + * v850.c (v850_select_section): Mark parameter with + ATTRIBUTE_UNUSED. + * global.c (global_alloc): Const-ify. + * ra-colorize.c (hardregset_to_string): Fix format specifier. + +2002-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> + * darwin-c.c (darwin_pragma_options): Const-ify. * darwin.c (machopic_non_lazy_ptr_name, machopic_validate_stub_or_non_lazy_ptr): Likewise. diff --git a/gcc/config/dsp16xx/dsp16xx.c b/gcc/config/dsp16xx/dsp16xx.c index cd4b42d..b30e405 100644 --- a/gcc/config/dsp16xx/dsp16xx.c +++ b/gcc/config/dsp16xx/dsp16xx.c @@ -1841,7 +1841,7 @@ print_operand(file, op, letter) REAL_VALUE_TYPE r; REAL_VALUE_FROM_CONST_DOUBLE (r, op); REAL_VALUE_TO_TARGET_SINGLE (r, l); - fprintf (file, "0x%x", l); + fprintf (file, "0x%lx", l); } else if (code == CONST) { diff --git a/gcc/config/dsp16xx/dsp16xx.md b/gcc/config/dsp16xx/dsp16xx.md index fc506b9..f39f183 100644 --- a/gcc/config/dsp16xx/dsp16xx.md +++ b/gcc/config/dsp16xx/dsp16xx.md @@ -1935,7 +1935,9 @@ rtx reg3 = gen_reg_rtx (HImode); rtx label1 = gen_label_rtx (); rtx label2 = gen_label_rtx (); - REAL_VALUE_TYPE offset = REAL_VALUE_LDEXP (dconst1, 31); + REAL_VALUE_TYPE offset; + + offset = REAL_VALUE_LDEXP (dconst1, 31); if (reg1) /* turn off complaints about unreached code */ { diff --git a/gcc/config/frv/frv.h b/gcc/config/frv/frv.h index 2502fc0..37c28e3 100644 --- a/gcc/config/frv/frv.h +++ b/gcc/config/frv/frv.h @@ -1375,7 +1375,7 @@ extern enum reg_class regno_reg_class[]; 'g', 'i', 'm', 'n', 'o', 'p', 'r', 's' */ extern enum reg_class reg_class_from_letter[]; -#define REG_CLASS_FROM_LETTER(CHAR) reg_class_from_letter [CHAR] +#define REG_CLASS_FROM_LETTER(CHAR) reg_class_from_letter [(unsigned char)(CHAR)] /* A C expression which is nonzero if register number NUM is suitable for use as a base register in operand addresses. It may be either a suitable hard diff --git a/gcc/config/h8300/h8300.c b/gcc/config/h8300/h8300.c index d79eba3..f53e6fa 100644 --- a/gcc/config/h8300/h8300.c +++ b/gcc/config/h8300/h8300.c @@ -3212,7 +3212,7 @@ emit_a_rotate (code, operands) /* Determine the faster direction. After this phase, amount will be at most a half of GET_MODE_BITSIZE (mode). */ - if ((unsigned int) amount > GET_MODE_BITSIZE (mode) / 2U) + if ((unsigned int) amount > GET_MODE_BITSIZE (mode) / (unsigned) 2) { /* Flip the direction. */ amount = GET_MODE_BITSIZE (mode) - amount; @@ -3747,7 +3747,7 @@ h8300_adjust_insn_length (insn, length) /* Determine the faster direction. After this phase, amount will be at most a half of GET_MODE_BITSIZE (mode). */ - if ((unsigned int) amount > GET_MODE_BITSIZE (mode) / 2U) + if ((unsigned int) amount > GET_MODE_BITSIZE (mode) / (unsigned) 2) /* Flip the direction. */ amount = GET_MODE_BITSIZE (mode) - amount; diff --git a/gcc/config/ip2k/ip2k.c b/gcc/config/ip2k/ip2k.c index 2c91ea8..5622898 100644 --- a/gcc/config/ip2k/ip2k.c +++ b/gcc/config/ip2k/ip2k.c @@ -1090,7 +1090,7 @@ ip2k_set_compare (x, y) if (GET_MODE (x) == DImode && GET_CODE (y) == CONST_INT) { rtx value; - int i; + size_t i; value = rtx_alloc (CONST_DOUBLE); PUT_MODE (value, VOIDmode); diff --git a/gcc/config/mmix/mmix-protos.h b/gcc/config/mmix/mmix-protos.h index 693d344..0f43e86 100644 --- a/gcc/config/mmix/mmix-protos.h +++ b/gcc/config/mmix/mmix-protos.h @@ -57,6 +57,7 @@ extern void mmix_output_register_setting extern void mmix_conditional_register_usage PARAMS ((void)); extern int mmix_local_regno PARAMS ((int)); extern int mmix_dbx_register_number PARAMS ((int)); +extern int mmix_use_simple_return PARAMS ((void)); /* Things that need rtl.h, tree.h or real.h included, or in combination. */ @@ -81,7 +82,6 @@ extern void mmix_asm_output_aligned_local extern void mmix_asm_declare_register_global PARAMS ((FILE *, tree, int, const char *)); extern void mmix_asm_output_mi_thunk PARAMS ((FILE *, tree, int, tree)); -extern int mmix_use_simple_return PARAMS ((void)); /* Need tree.h and rtl.h */ # ifdef RTX_CODE diff --git a/gcc/config/sh/netbsd-elf.h b/gcc/config/sh/netbsd-elf.h index ce71402..513b39f 100644 --- a/gcc/config/sh/netbsd-elf.h +++ b/gcc/config/sh/netbsd-elf.h @@ -112,16 +112,16 @@ do \ } \ else \ { \ - fprintf((STREAM), "\tmov.l\t%cLP%d,r1\n", \ + fprintf((STREAM), "\tmov.l\t%sLP%d,r1\n", \ LOCAL_LABEL_PREFIX, (LABELNO)); \ - fprintf((STREAM), "\tmova\t%cLP%dr,r0\n", \ + fprintf((STREAM), "\tmova\t%sLP%dr,r0\n", \ LOCAL_LABEL_PREFIX, (LABELNO)); \ fprintf((STREAM), "\tjmp\t@r1\n"); \ fprintf((STREAM), "\tnop\n"); \ fprintf((STREAM), "\t.align\t2\n"); \ - fprintf((STREAM), "%cLP%d:\t.long\t__mcount\n", \ + fprintf((STREAM), "%sLP%d:\t.long\t__mcount\n", \ LOCAL_LABEL_PREFIX, (LABELNO)); \ - fprintf((STREAM), "%cLP%dr:\n", LOCAL_LABEL_PREFIX, (LABELNO)); \ + fprintf((STREAM), "%sLP%dr:\n", LOCAL_LABEL_PREFIX, (LABELNO)); \ } \ } \ while (0) diff --git a/gcc/config/v850/v850.c b/gcc/config/v850/v850.c index c5e3d98..7c3dd3e 100644 --- a/gcc/config/v850/v850.c +++ b/gcc/config/v850/v850.c @@ -2876,7 +2876,7 @@ v850_return_addr (count) static void v850_select_section (exp, reloc, align) tree exp; - int reloc; + int reloc ATTRIBUTE_UNUSED; unsigned HOST_WIDE_INT align ATTRIBUTE_UNUSED; { if (TREE_CODE (exp) == VAR_DECL) diff --git a/gcc/global.c b/gcc/global.c index 50a1648..d7950fa 100644 --- a/gcc/global.c +++ b/gcc/global.c @@ -367,8 +367,8 @@ global_alloc (file) that need a register window. So prefer the ones that can be used in a leaf function. */ { - char *cheap_regs; - char *leaf_regs = LEAF_REGISTERS; + const char *cheap_regs; + const char *const leaf_regs = LEAF_REGISTERS; if (only_leaf_regs_used () && leaf_function_p ()) cheap_regs = leaf_regs; diff --git a/gcc/ra-colorize.c b/gcc/ra-colorize.c index f101eaa..eecea50 100644 --- a/gcc/ra-colorize.c +++ b/gcc/ra-colorize.c @@ -1160,7 +1160,7 @@ hardregset_to_string (s) { static char string[/*FIRST_PSEUDO_REGISTER + 30*/1024]; #if FIRST_PSEUDO_REGISTER <= HOST_BITS_PER_WIDE_INT - sprintf (string, "%x", s); + sprintf (string, HOST_WIDE_INT_PRINT_HEX, s); #else char *c = string; int i,j; |