altivec-9.c: New file.
authorSegher Boessenkool <segher@koffie.nl>
Mon, 10 Mar 2003 19:36:26 +0000 (20:36 +0100)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Mon, 10 Mar 2003 19:36:26 +0000 (19:36 +0000)
2003-03-10  Segher Boessenkool  <segher@koffie.nl>

        * testsuite/gcc.dg/altivec-9.c: New file.

        * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
        (rs6000_emit_prologue): Use rs6000_frame_related instead.

From-SVN: r64109

gcc/ChangeLog
gcc/config/rs6000/rs6000.c

index f49c3d8960dd1722bdbdedecb0826f62ffa8edfe..9cfdcb8ef747b0db3781c0111375860cb277aad2 100644 (file)
@@ -1,3 +1,10 @@
+2003-03-10  Segher Boessenkool  <segher@koffie.nl>
+
+        * testsuite/gcc.dg/altivec-9.c: New file.
+
+        * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
+        (rs6000_emit_prologue): Use rs6000_frame_related instead.
+
 2003-03-10  Aldy Hernandez  <aldyh@redhat.com>
 
         * config/rs6000/spe.h: Define __ev64_*64__ to use single element
index 91c91ad7ba4a9015f09539a937a183f8c78e8ec2..ec9008dd1a76c4e91b95fefd4b7dd609939dd930 100644 (file)
@@ -267,7 +267,6 @@ static int first_altivec_reg_to_save PARAMS ((void));
 static unsigned int compute_vrsave_mask PARAMS ((void));
 static void is_altivec_return_reg PARAMS ((rtx, void *));
 static rtx generate_set_vrsave PARAMS ((rtx, rs6000_stack_t *, int));
-static void altivec_frame_fixup PARAMS ((rtx, rtx, HOST_WIDE_INT));
 static int easy_vector_constant PARAMS ((rtx));
 static bool is_ev64_opaque_type PARAMS ((tree));
 static rtx rs6000_dwarf_register_span PARAMS ((rtx));
@@ -10102,32 +10101,6 @@ rs6000_emit_allocate_stack (size, copy_r12)
                       REG_NOTES (insn));
 }
 
-/* Add a RTX_FRAME_RELATED note so that dwarf2out_frame_debug_expr
-   knows that:
-
-     (mem (plus (blah) (regXX)))
-
-   is really:
-
-     (mem (plus (blah) (const VALUE_OF_REGXX))).  */
-
-static void
-altivec_frame_fixup (insn, reg, val)
-     rtx insn, reg;
-     HOST_WIDE_INT val;
-{
-  rtx real;
-
-  real = copy_rtx (PATTERN (insn));
-
-  real = replace_rtx (real, reg, GEN_INT (val));
-
-  RTX_FRAME_RELATED_P (insn) = 1;
-  REG_NOTES (insn) = gen_rtx_EXPR_LIST (REG_FRAME_RELATED_EXPR,
-                                       real,
-                                       REG_NOTES (insn));
-}
-
 /* Add to 'insn' a note which is PATTERN (INSN) but with REG replaced
    with (plus:P (reg 1) VAL), and with REG2 replaced with RREG if REG2
    is not NULL.  It would be nice if dwarf2out_frame_debug_expr could
@@ -10494,7 +10467,8 @@ rs6000_emit_prologue ()
 
            insn = emit_move_insn (mem, savereg);
 
-           altivec_frame_fixup (insn, areg, offset);
+           rs6000_frame_related (insn, frame_ptr_rtx, info->total_size,
+                                 areg, GEN_INT (offset));
          }
     }