diff options
author | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-03 04:26:37 +0000 |
---|---|---|
committer | amodra <amodra@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-12-03 04:26:37 +0000 |
commit | ccb88806030aab71bb045bd2ce203c543a9c7642 (patch) | |
tree | 3bb800fbe98d7cfb325a607770ca8751df3ef796 /gcc/dwarf2out.c | |
parent | 1da9f615fcd96c1af70bf85960f3d004aac798d6 (diff) | |
download | gcc-ccb88806030aab71bb045bd2ce203c543a9c7642.tar.gz |
PR rtl-optimization 25197
* dwarf2out.c (dwarf2out_frame_debug_expr <rule 12>): Assert we
have a reg.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107992 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 803898e03ed..ad7154e7d5f 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; |