OSDN Git Service

* function.c (put_var_into_stack): Change bool parameter to int.
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Mar 2003 17:53:31 +0000 (17:53 +0000)
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 24 Mar 2003 17:53:31 +0000 (17:53 +0000)
(gen_mem_addressof): Likewise.
* rtl.h (gen_mem_addressof): Likewise.
* tree.h (put_var_into_stack): Likewise.
* config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
gen_mem_addressof or put_var_into_stack.
* config/c4x/c4x.c (c4x_expand_builtin): Likewise.
* config/ia64/ia64.c (spill_tfmode_operand): Likewise.

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

gcc/ChangeLog
gcc/config/alpha/alpha.c
gcc/config/c4x/c4x.c
gcc/config/ia64/ia64.c
gcc/function.c
gcc/rtl.h
gcc/tree.h

index e560e07..0e10cb3 100644 (file)
@@ -1,3 +1,14 @@
+2003-03-24  Mark Mitchell  <mark@codesourcery.com>
+
+       * function.c (put_var_into_stack): Change bool parameter to int.
+       (gen_mem_addressof): Likewise.
+       * rtl.h (gen_mem_addressof): Likewise.
+       * tree.h (put_var_into_stack): Likewise.
+       * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
+       gen_mem_addressof or put_var_into_stack.
+       * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
+       * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
+
 2003-03-24  Kazu Hirata  <kazu@cs.umass.edu>
 
        * config/h8300/h8300.md (a peephole2): New.
index 4feb218..cfc3fc5 100644 (file)
@@ -5716,7 +5716,7 @@ alpha_gp_save_rtx ()
 {
   rtx r = get_hard_reg_initial_val (DImode, 29);
   if (GET_CODE (r) != MEM)
-    r = gen_mem_addressof (r, NULL_TREE);
+    r = gen_mem_addressof (r, NULL_TREE, /*rescan=*/true);
   return r;
 }
 
index 0547850..ab77fc5 100644 (file)
@@ -5025,7 +5025,7 @@ c4x_expand_builtin (exp, target, subtarget, mode, ignore)
        break;
       arg0 = TREE_VALUE (arglist);
       if (TREE_CODE (arg0) == VAR_DECL || TREE_CODE (arg0) == PARM_DECL)
-       put_var_into_stack (arg0);
+       put_var_into_stack (arg0, /*rescan=*/true);
       r0 = expand_expr (arg0, NULL_RTX, QFmode, 0);
       r0 = protect_from_queue (r0, 0);
       if (register_operand (r0, QFmode))
index fe6fa37..01ed5d9 100644 (file)
@@ -1438,12 +1438,12 @@ spill_tfmode_operand (in, force)
       && GET_MODE (SUBREG_REG (in)) == TImode
       && GET_CODE (SUBREG_REG (in)) == REG)
     {
-      rtx mem = gen_mem_addressof (SUBREG_REG (in), NULL_TREE);
+      rtx mem = gen_mem_addressof (SUBREG_REG (in), NULL_TREE, /*rescan=*/true);
       return gen_rtx_MEM (TFmode, copy_to_reg (XEXP (mem, 0)));
     }
   else if (force && GET_CODE (in) == REG)
     {
-      rtx mem = gen_mem_addressof (in, NULL_TREE);
+      rtx mem = gen_mem_addressof (in, NULL_TREE, /*rescan=*/true);
       return gen_rtx_MEM (TFmode, copy_to_reg (XEXP (mem, 0)));
     }
   else if (GET_CODE (in) == MEM
index 2749c9a..40186b0 100644 (file)
@@ -1313,7 +1313,7 @@ init_temp_slots ()
 void
 put_var_into_stack (decl, rescan)
      tree decl;
-     bool rescan;
+     int rescan;
 {
   rtx reg;
   enum machine_mode promoted_mode, decl_mode;
@@ -2887,7 +2887,7 @@ rtx
 gen_mem_addressof (reg, decl, rescan)
      rtx reg;
      tree decl;
-     bool rescan;
+     int rescan;
 {
   rtx r = gen_rtx_ADDRESSOF (Pmode, gen_reg_rtx (GET_MODE (reg)),
                             REGNO (reg), decl);
index 0232c43..c7e938c 100644 (file)
--- a/gcc/rtl.h
+++ b/gcc/rtl.h
@@ -1577,7 +1577,7 @@ extern rtx simplify_rtx                   PARAMS ((rtx));
 extern rtx avoid_constant_pool_reference PARAMS ((rtx));
 
 /* In function.c  */
-extern rtx gen_mem_addressof           PARAMS ((rtx, tree, bool));
+extern rtx gen_mem_addressof           PARAMS ((rtx, tree, int));
 
 /* In regclass.c  */
 extern enum machine_mode choose_hard_reg_mode PARAMS ((unsigned int,
index a55374d..d15cce8 100644 (file)
@@ -2987,7 +2987,7 @@ extern void expand_dummy_function_end     PARAMS ((void));
 extern void init_function_for_compilation      PARAMS ((void));
 extern void init_function_start                PARAMS ((tree, const char *, int));
 extern void assign_parms               PARAMS ((tree));
-extern void put_var_into_stack         PARAMS ((tree, bool));
+extern void put_var_into_stack         PARAMS ((tree, int));
 extern void flush_addressof            PARAMS ((tree));
 extern void uninitialized_vars_warning PARAMS ((tree));
 extern void setjmp_args_warning                PARAMS ((void));