OSDN Git Service

* m32r/m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P
authordevans <devans@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Dec 2002 19:23:58 +0000 (19:23 +0000)
committerdevans <devans@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Dec 2002 19:23:58 +0000 (19:23 +0000)
and LIT_NAME_P.
(move_src_operand): Remove compile-time warning.
* m32r/m32r.h (ROUND_ADVANCE_ARG): Ditto.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@60262 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/m32r/m32r.c
gcc/config/m32r/m32r.h

index ed8a64d..3f35ff5 100644 (file)
@@ -1,3 +1,10 @@
+2002-12-18  Doug Evans  <dje@sebabeach.org>
+
+       * m32r/m32r.c (addr24_operand): Fix arg to CONSTANT_POOL_ADDRESS_P
+       and LIT_NAME_P.
+       (move_src_operand): Remove compile-time warning.
+       * m32r/m32r.h (ROUND_ADVANCE_ARG): Ditto.
+
 2002-12-18  Jason Merrill  <jason@redhat.com>
 
        * unwind-dw2-fde.c (frame_downheap): Split out from...
index b95a468..a004eed 100644 (file)
@@ -602,8 +602,8 @@ addr24_operand (op, mode)
       rtx sym = XEXP (XEXP (op, 0), 0);
       return (SMALL_NAME_P (XSTR (sym, 0))
              || (TARGET_ADDR24
-                 && (CONSTANT_POOL_ADDRESS_P (op)
-                     || LIT_NAME_P (XSTR (op, 0)))));
+                 && (CONSTANT_POOL_ADDRESS_P (sym)
+                     || LIT_NAME_P (XSTR (sym, 0)))));
     }
 
   return 0;
@@ -839,7 +839,7 @@ move_src_operand (op, mode)
 
          low = CONST_DOUBLE_LOW (op);
          high = CONST_DOUBLE_HIGH (op);
-         return high == 0 && low <= 0xffffffff;
+         return high == 0 && low <= (unsigned) 0xffffffff;
        }
       else
        return 0;
index 195b468..ed36eb7 100644 (file)
@@ -1074,7 +1074,7 @@ M32R_STACK_ALIGN (current_function_outgoing_args_size)
 #define ROUND_ADVANCE_ARG(MODE, TYPE) \
   ((MODE) == BLKmode                           \
    ? ROUND_ADVANCE ((unsigned int) int_size_in_bytes (TYPE))   \
-   : ROUND_ADVANCE (GET_MODE_SIZE (MODE)))
+   : ROUND_ADVANCE ((unsigned int) GET_MODE_SIZE (MODE)))
 
 /* Round CUM up to the necessary point for argument MODE/TYPE.  */
 #define ROUND_ADVANCE_CUM(CUM, MODE, TYPE) (CUM)