From: Nathan Froyd Date: Wed, 30 Jul 2008 15:32:34 +0000 (+0000) Subject: arm.c (arm_expand_prologue): Use 0-length rtvec instead of NULL_RTVEC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=44bfa35b17b683a5c29dcb512b7f6ec17470ae1f;p=gcc.git arm.c (arm_expand_prologue): Use 0-length rtvec instead of NULL_RTVEC. * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec instead of NULL_RTVEC. From-SVN: r138317 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4b8f2d6bb8b..4e6acf0e627 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-07-30 Nathan Froyd + + * config/arm/arm.c (arm_expand_prologue): Use 0-length rtvec + instead of NULL_RTVEC. + 2008-07-30 Nathan Froyd PR target/35866 diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index dfee7c3740e..7410517d6c8 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -12438,7 +12438,9 @@ arm_expand_prologue (void) r0 = gen_rtx_REG (SImode, 0); r1 = gen_rtx_REG (SImode, 1); - dwarf = gen_rtx_UNSPEC (SImode, NULL_RTVEC, UNSPEC_STACK_ALIGN); + /* Use a real rtvec rather than NULL_RTVEC so the rest of the + compiler won't choke. */ + dwarf = gen_rtx_UNSPEC (SImode, rtvec_alloc (0), UNSPEC_STACK_ALIGN); dwarf = gen_rtx_SET (VOIDmode, r0, dwarf); insn = gen_movsi (r0, stack_pointer_rtx); RTX_FRAME_RELATED_P (insn) = 1;