Commit 77411c84 by Alexandre Oliva Committed by Alexandre Oliva

insn-addr.h (INSN_ADDRESSES_NEW): Make insn_uid__ unsigned.

* insn-addr.h (INSN_ADDRESSES_NEW): Make insn_uid__ unsigned.
Reformat according to coding standards.

From-SVN: r42839
parent c5b9ef02
2001-06-03 Alexandre Oliva <aoliva@redhat.com> 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. Warning removal.
* config/sh/sh.c (print_operand_address): Cast INTVAL to int. * config/sh/sh.c (print_operand_address): Cast INTVAL to int.
(shl_and_kind): Cast wide constant. (shl_and_kind): Cast wide constant.
......
...@@ -33,14 +33,18 @@ extern int insn_current_address; ...@@ -33,14 +33,18 @@ extern int insn_current_address;
#define INSN_ADDRESSES_FREE() VARRAY_FREE (insn_addresses_) #define INSN_ADDRESSES_FREE() VARRAY_FREE (insn_addresses_)
#define INSN_ADDRESSES_SET_P() (insn_addresses_ != 0) #define INSN_ADDRESSES_SET_P() (insn_addresses_ != 0)
#define INSN_ADDRESSES_SIZE() VARRAY_SIZE (insn_addresses_) #define INSN_ADDRESSES_SIZE() VARRAY_SIZE (insn_addresses_)
#define INSN_ADDRESSES_NEW(insn,addr) do { \ #define INSN_ADDRESSES_NEW(insn, addr) do \
int insn_uid__ = INSN_UID ((insn)), insn_addr__ = (addr); \ { \
unsigned insn_uid__ = INSN_UID ((insn)); \
int insn_addr__ = (addr); \
\ \
if (INSN_ADDRESSES_SET_P()) { \ if (INSN_ADDRESSES_SET_P ()) \
if (INSN_ADDRESSES_SIZE() <= insn_uid__) \ { \
insn_addresses_ = VARRAY_GROW (insn_addresses_, insn_uid__ + 1); \ if (INSN_ADDRESSES_SIZE () <= insn_uid__) \
INSN_ADDRESSES (insn_uid__) = insn_addr__; \ insn_addresses_ = VARRAY_GROW (insn_addresses_, insn_uid__ + 1); \
INSN_ADDRESSES (insn_uid__) = insn_addr__; \
} \
} \ } \
} while (0) while (0)
#endif /* ! GCC_INSN_ADDR_H */ #endif /* ! GCC_INSN_ADDR_H */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment