This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Two minor fixes
- To: gcc-patches at gcc dot gnu dot org
- Subject: Two minor fixes
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Fri, 26 Oct 01 07:23:32 EDT
Fri Oct 26 07:18:08 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
* local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
ASM_OPERANDS.
*** cfgcleanup.c 2001/10/26 09:20:01 1.11
--- cfgcleanup.c 2001/10/26 11:09:32
*************** enum bb_flags {
*** 57,63 ****
#define BB_FLAGS(bb) (enum bb_flags)(bb)->aux
#define BB_SET_FLAG(bb,flag) \
! (bb)->aux = (void *)((enum bb_flags)(bb)->aux | (flag))
#define BB_CLEAR_FLAG(bb,flag) \
! (bb)->aux = (void *)((enum bb_flags)(bb)->aux & ~(flag))
#define FORWARDER_BLOCK_P(bb) (BB_FLAGS(bb) & BB_FORWARDER_BLOCK)
--- 57,63 ----
#define BB_FLAGS(bb) (enum bb_flags)(bb)->aux
#define BB_SET_FLAG(bb,flag) \
! (bb)->aux = (void *) (long) ((enum bb_flags)(bb)->aux | (flag))
#define BB_CLEAR_FLAG(bb,flag) \
! (bb)->aux = (void *) (long) ((enum bb_flags)(bb)->aux & ~(flag))
#define FORWARDER_BLOCK_P(bb) (BB_FLAGS(bb) & BB_FORWARDER_BLOCK)
*** local-alloc.c 2001/10/21 21:32:00 1.93
--- local-alloc.c 2001/10/26 11:09:48
*************** update_equiv_regs ()
*** 928,933 ****
/* cse sometimes generates function invariants, but doesn't put a
REG_EQUAL note on the insn. Since this note would be redundant,
! there's no point creating it earlier than here. */
! if (! note && ! rtx_varies_p (src, 0))
REG_NOTES (insn)
= note = gen_rtx_EXPR_LIST (REG_EQUAL, src, REG_NOTES (insn));
--- 928,936 ----
/* cse sometimes generates function invariants, but doesn't put a
REG_EQUAL note on the insn. Since this note would be redundant,
! there's no point creating it earlier than here. Don't do this
! for ASM_OPERANDS since eliminate_regs doesn't support it and
! it serves no useful purpose. */
! if (! note && ! rtx_varies_p (src, 0)
! && GET_CODE (src) != ASM_OPERANDS)
REG_NOTES (insn)
= note = gen_rtx_EXPR_LIST (REG_EQUAL, src, REG_NOTES (insn));