From: aph Date: Tue, 24 Jul 2001 15:06:14 +0000 (+0000) Subject: 2001-07-24 Andrew Haley X-Git-Tag: upstream/4.9.2~93065 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=901a31b543db37744e0e7fddb76af990f883d790;p=platform%2Fupstream%2Flinaro-gcc.git 2001-07-24 Andrew Haley * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of dangling else. * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands for SImode to prevent overflow. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44298 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4e70b95..d2c4334 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2001-07-24 Andrew Haley + + * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of + dangling else. + + * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands + for SImode to prevent overflow. + 2001-07-24 Rainer Orth * config/mips/irix6-libc-compat.c: New file. diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h index cc17258..039c7b0 100644 --- a/gcc/config/sh/sh.h +++ b/gcc/config/sh/sh.h @@ -278,14 +278,16 @@ do { \ fp_reg_names[regno][0] = 0; \ } \ if (flag_omit_frame_pointer < 0) \ - /* The debugging information is sufficient, \ - but gdb doesn't implement this yet */ \ - if (0) \ - flag_omit_frame_pointer \ - = (PREFERRED_DEBUGGING_TYPE == DWARF_DEBUG \ - || PREFERRED_DEBUGGING_TYPE == DWARF2_DEBUG); \ - else \ - flag_omit_frame_pointer = 0; \ + { \ + /* The debugging information is sufficient, \ + but gdb doesn't implement this yet */ \ + if (0) \ + flag_omit_frame_pointer \ + = (PREFERRED_DEBUGGING_TYPE == DWARF_DEBUG \ + || PREFERRED_DEBUGGING_TYPE == DWARF2_DEBUG); \ + else \ + flag_omit_frame_pointer = 0; \ + } \ \ if (flag_pic && ! TARGET_PREFERGOT) \ flag_no_function_cse = 1; \ @@ -1240,7 +1242,9 @@ extern int current_function_anonymous_args; #define INITIALIZE_TRAMPOLINE(TRAMP, FNADDR, CXT) do \ { \ emit_move_insn (gen_rtx_MEM (SImode, (TRAMP)), \ - GEN_INT (TARGET_LITTLE_ENDIAN ? 0xd301d202 : 0xd202d301));\ + GEN_INT (trunc_int_for_mode \ + (TARGET_LITTLE_ENDIAN ? 0xd301d202 : 0xd202d301,\ + SImode))); \ emit_move_insn (gen_rtx_MEM (SImode, plus_constant ((TRAMP), 4)), \ GEN_INT (TARGET_LITTLE_ENDIAN ? 0x0009422b : 0x422b0009));\ emit_move_insn (gen_rtx_MEM (SImode, plus_constant ((TRAMP), 8)), \