[llvm-commits] [llvm-gcc-4.2] r55660 - in /llvm-gcc-4.2/trunk/gcc/config/arm: arm.c arm.h
Bill Wendling
isanbard at gmail.com
Tue Sep 2 14:49:38 PDT 2008
Author: void
Date: Tue Sep 2 16:49:38 2008
New Revision: 55660
URL: http://llvm.org/viewvc/llvm-project?rev=55660&view=rev
Log:
Mark pushes as RTW_FRAME_RELATED_P
Modified:
llvm-gcc-4.2/trunk/gcc/config/arm/arm.c
llvm-gcc-4.2/trunk/gcc/config/arm/arm.h
Modified: llvm-gcc-4.2/trunk/gcc/config/arm/arm.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/arm.c?rev=55660&r1=55659&r2=55660&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/arm.c (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/arm.c Tue Sep 2 16:49:38 2008
@@ -84,6 +84,7 @@
static const char *fp_const_from_val (REAL_VALUE_TYPE *);
static arm_cc get_arm_condition_code (rtx);
static HOST_WIDE_INT int_log2 (HOST_WIDE_INT);
+static rtx is_jump_table (rtx);
static const char *output_multi_immediate (rtx *, const char *, const char *,
int, HOST_WIDE_INT);
static const char *shift_op (rtx, HOST_WIDE_INT *);
@@ -12165,7 +12166,9 @@
& regs_above_fp;
/* Save everything up to the FP, and the LR */
- emit_multi_reg_push (initial_push_regs);
+ insn = emit_multi_reg_push (initial_push_regs);
+ /* rdar://6148015 */
+ RTX_FRAME_RELATED_P (insn) = 1;
/* Configure FP to point to the saved FP. */
insn = emit_insn (
@@ -12179,7 +12182,11 @@
/* Push remaining regs. */
if (second_push_regs)
- emit_multi_reg_push (second_push_regs);
+ {
+ insn = emit_multi_reg_push (second_push_regs);
+ /* rdar://6148015 */
+ RTX_FRAME_RELATED_P (insn) = 1;
+ }
}
else
{
@@ -12640,7 +12647,8 @@
"wC12", "wC13", "wC14", "wC15"
};
- fprintf (stream, wc_reg_names [INTVAL (x)]);
+ /* APPLE LOCAL default to Wformat-security 5764921 */
+ fprintf (stream, "%s", wc_reg_names [INTVAL (x)]);
}
return;
Modified: llvm-gcc-4.2/trunk/gcc/config/arm/arm.h
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/arm/arm.h?rev=55660&r1=55659&r2=55660&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/arm/arm.h (original)
+++ llvm-gcc-4.2/trunk/gcc/config/arm/arm.h Tue Sep 2 16:49:38 2008
@@ -2682,6 +2682,14 @@
(TARGET_THUMB ? (MAX (BASIC_ALIGN, 4 * BITS_PER_UNIT)) : BASIC_ALIGN)
#endif
/* APPLE LOCAL end ARM 4-byte align stack objects */
+
+/* APPLE LOCAL begin ARM 6148015 */
+/* Tells us how to find the CFA == dwarf frame_base == address of stack
+ on entry to the function given the (virtual) arg-pointer. */
+#define ARG_POINTER_CFA_OFFSET(FNDECL) \
+ ((FIRST_PARM_OFFSET (FNDECL)) \
+ + (DECL_STRUCT_FUNCTION (FNDECL))->pretend_args_size)
+/* APPLE LOCAL end ARM 6148015 */
enum arm_builtins
{
More information about the llvm-commits
mailing list