diff options
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/insn-addr.h | 18 |
2 files changed, 14 insertions, 7 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5da65ff3cdb..9bf6810458f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2001-06-03 Alexandre Oliva <aoliva@redhat.com> + * insn-addr.h (INSN_ADDRESSES_NEW): Make insn_uid__ unsigned. + Reformat according to coding standards. + Warning removal. * config/sh/sh.c (print_operand_address): Cast INTVAL to int. (shl_and_kind): Cast wide constant. diff --git a/gcc/insn-addr.h b/gcc/insn-addr.h index 2a055e7281a..e0045c5963c 100644 --- a/gcc/insn-addr.h +++ b/gcc/insn-addr.h @@ -33,14 +33,18 @@ extern int insn_current_address; #define INSN_ADDRESSES_FREE() VARRAY_FREE (insn_addresses_) #define INSN_ADDRESSES_SET_P() (insn_addresses_ != 0) #define INSN_ADDRESSES_SIZE() VARRAY_SIZE (insn_addresses_) -#define INSN_ADDRESSES_NEW(insn,addr) do { \ - int insn_uid__ = INSN_UID ((insn)), insn_addr__ = (addr); \ +#define INSN_ADDRESSES_NEW(insn, addr) do \ + { \ + unsigned insn_uid__ = INSN_UID ((insn)); \ + int insn_addr__ = (addr); \ \ - if (INSN_ADDRESSES_SET_P()) { \ - if (INSN_ADDRESSES_SIZE() <= insn_uid__) \ - insn_addresses_ = VARRAY_GROW (insn_addresses_, insn_uid__ + 1); \ - INSN_ADDRESSES (insn_uid__) = insn_addr__; \ + if (INSN_ADDRESSES_SET_P ()) \ + { \ + if (INSN_ADDRESSES_SIZE () <= insn_uid__) \ + insn_addresses_ = VARRAY_GROW (insn_addresses_, insn_uid__ + 1); \ + INSN_ADDRESSES (insn_uid__) = insn_addr__; \ + } \ } \ -} while (0) +while (0) #endif /* ! GCC_INSN_ADDR_H */ |