diff options
author | Kaz Kojima <kkojima@gcc.gnu.org> | 2011-08-05 16:12:16 +0000 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2011-08-05 09:12:16 -0700 |
commit | 7ac1744204d8d70400d72b23548144735a52debd (patch) | |
tree | 60bd0ca4e7f764847869d9dfdd98a38190735d4b /gcc/expr.c | |
parent | 42443bdbc84a6b144c84c96b6cc33b25558a9307 (diff) | |
download | gcc-7ac1744204d8d70400d72b23548144735a52debd.zip gcc-7ac1744204d8d70400d72b23548144735a52debd.tar.gz gcc-7ac1744204d8d70400d72b23548144735a52debd.tar.bz2 |
re PR rtl-optimization/49982 (ICE in fixup_args_size_notes, at expr.c:3625)
PR rtl-opt/49982
* expr.c (fixup_args_size_notes): Look through no-op moves.
Co-Authored-By: Richard Henderson <rth@redhat.com>
From-SVN: r177464
Diffstat (limited to 'gcc/expr.c')
-rw-r--r-- | gcc/expr.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -3631,6 +3631,10 @@ fixup_args_size_notes (rtx prev, rtx last, int end_args_size) && XEXP (SET_SRC (set), 0) == stack_pointer_rtx && CONST_INT_P (XEXP (SET_SRC (set), 1))) this_delta = INTVAL (XEXP (SET_SRC (set), 1)); + /* ??? Reload can generate no-op moves, which will be cleaned + up later. Recognize it and continue searching. */ + else if (rtx_equal_p (dest, SET_SRC (set))) + this_delta = 0; else saw_unknown = true; } |