aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gcc.gnu.org>2005-12-03 14:56:37 +1030
committerAlan Modra <amodra@gcc.gnu.org>2005-12-03 14:56:37 +1030
commit66a5ab4015e57c4c014310258de12488d4815b55 (patch)
tree3bb800fbe98d7cfb325a607770ca8751df3ef796 /gcc/dwarf2out.c
parentc19e090aa2d1053510beb66910d7a28530923b1a (diff)
downloadgcc-66a5ab4015e57c4c014310258de12488d4815b55.zip
gcc-66a5ab4015e57c4c014310258de12488d4815b55.tar.gz
gcc-66a5ab4015e57c4c014310258de12488d4815b55.tar.bz2
PR rtl-optimization 25197
PR rtl-optimization 25197 * dwarf2out.c (dwarf2out_frame_debug_expr <rule 12>): Assert we have a reg. From-SVN: r107992
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 803898e..ad7154e 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -1773,7 +1773,8 @@ dwarf2out_frame_debug_expr (rtx expr, const char *label)
{
int regno;
- gcc_assert (GET_CODE (XEXP (XEXP (dest, 0), 1)) == CONST_INT);
+ gcc_assert (GET_CODE (XEXP (XEXP (dest, 0), 1)) == CONST_INT
+ && REG_P (XEXP (XEXP (dest, 0), 0)));
offset = INTVAL (XEXP (XEXP (dest, 0), 1));
if (GET_CODE (XEXP (dest, 0)) == MINUS)
offset = -offset;