summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-03 22:58:08 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2001-06-03 22:58:08 +0000
commitbc38ec441d090e76f2d95a757c2e1b598ca4e129 (patch)
tree32ea0936be40379b2cbaeda3d802fb45054196fc
parent265761321606151b2cb252788a915c7fed1d0a69 (diff)
downloadgcc-bc38ec441d090e76f2d95a757c2e1b598ca4e129.tar.gz
* insn-addr.h (INSN_ADDRESSES_NEW): Make insn_uid__ unsigned.
Reformat according to coding standards. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42839 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/insn-addr.h18
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 */