diff options
author | Nathan Froyd <froydnj@codesourcery.com> | 2008-07-30 15:32:34 +0000 |
---|---|---|
committer | Nathan Froyd <froydnj@gcc.gnu.org> | 2008-07-30 15:32:34 +0000 |
commit | 44bfa35b17b683a5c29dcb512b7f6ec17470ae1f (patch) | |
tree | 7e564ef63d720a94b9199c5d08671835b38660a8 /gcc/config/arm | |
parent | 54ce9cc22770a28a7381f56c959c02e28f7b9a05 (diff) | |
download | gcc-44bfa35b17b683a5c29dcb512b7f6ec17470ae1f.zip gcc-44bfa35b17b683a5c29dcb512b7f6ec17470ae1f.tar.gz gcc-44bfa35b17b683a5c29dcb512b7f6ec17470ae1f.tar.bz2 |
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
Diffstat (limited to 'gcc/config/arm')
-rw-r--r-- | gcc/config/arm/arm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index dfee7c3..7410517 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; |