From 7ac1744204d8d70400d72b23548144735a52debd Mon Sep 17 00:00:00 2001 From: Kaz Kojima Date: Fri, 5 Aug 2011 16:12:16 +0000 Subject: [PATCH] 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 From-SVN: r177464 --- gcc/ChangeLog | 6 ++++++ gcc/expr.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1b5cd35bc30..74f634a444d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-08-05 Kaz Kojima + Richard Henderson + + PR rtl-opt/49982 + * expr.c (fixup_args_size_notes): Look through no-op moves. + 2011-08-05 Uros Bizjak * config/i386/i386.md (*push2): Use "o" constraint instead diff --git a/gcc/expr.c b/gcc/expr.c index e5bec34e78c..f170596d330 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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; } -- 2.30.2