From: H.J. Lu Date: Thu, 31 Jul 2008 15:32:51 +0000 (+0000) Subject: re PR debug/36980 (Bootstrap broken with RTL checking on i586) X-Git-Tag: releases/gcc-4.4.0~3545 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc74cbc4bd40b9f1b0f58abff1fb9efecb5b1d49;p=thirdparty%2Fgcc.git re PR debug/36980 (Bootstrap broken with RTL checking on i586) 2008-07-31 H.J. Lu PR debug/36980 * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before rule 19. From-SVN: r138424 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e293cc5ec021..2b13a5ddf7af 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2008-07-31 H.J. Lu + + PR debug/36980 + * dwarf2out.c (dwarf2out_frame_debug_expr): Move rule 17 before + rule 19. + 2008-07-31 H.J. Lu PR debug/36976 diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 888ac99d187c..2fc23a5206b8 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -2024,6 +2024,13 @@ dwarf2out_frame_debug_expr (rtx expr, const char *label) gcc_unreachable (); } + /* Rule 17 */ + /* If the source operand of this MEM operation is not a + register, basically the source is return address. Here + we only care how much stack grew and we don't save it. */ + if (!REG_P (src)) + break; + if (REGNO (src) != STACK_POINTER_REGNUM && REGNO (src) != HARD_FRAME_POINTER_REGNUM && (unsigned) REGNO (src) == cfa.reg) @@ -2082,12 +2089,6 @@ dwarf2out_frame_debug_expr (rtx expr, const char *label) break; } } - /* Rule 17 */ - /* If the source operand of this MEM operation is not a - register, basically the source is return address. Here - we only care how much stack grew and we don't save it. */ - if (!REG_P (src)) - break; def_cfa_1 (label, &cfa); {