insn-addr.h (INSN_ADDRESSES_NEW): Make insn_uid__ unsigned.
authorAlexandre Oliva <aoliva@redhat.com>
Sun, 3 Jun 2001 22:58:08 +0000 (22:58 +0000)
committerAlexandre Oliva <aoliva@gcc.gnu.org>
Sun, 3 Jun 2001 22:58:08 +0000 (22:58 +0000)
* insn-addr.h (INSN_ADDRESSES_NEW): Make insn_uid__ unsigned.
Reformat according to coding standards.

From-SVN: r42839

gcc/ChangeLog
gcc/insn-addr.h

index 5da65ff3cdb0573b6aa80f0876b0ebba2bb2c8bf..9bf6810458fb38d141ddfb30e0e514c8f40607fe 100644 (file)
@@ -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.
index 2a055e7281a83ab49f862bc706ee6c56ad52a932..e0045c5963cb56872a9f72bb935978f3ad6adf95 100644 (file)
@@ -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 */