diff options
author | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-25 19:08:23 +0000 |
---|---|---|
committer | hjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-04-25 19:08:23 +0000 |
commit | 89336bc382c4b9b7551b33551a5dee9d64f62e4c (patch) | |
tree | b869762bd451f6783651bf15f24f8f5670da02e9 /gcc/dwarf2out.c | |
parent | 106b97d332f143002ea975acdb1485068e2c992d (diff) | |
download | gcc-89336bc382c4b9b7551b33551a5dee9d64f62e4c.tar.gz |
Assert dbx_reg_number doesn't return INVALID_REGNUM
PR debug/52857
* dwarf2out.c (dbx_reg_number): Assert return value !=
INVALID_REGNUM.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186837 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r-- | gcc/dwarf2out.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 1240ddb5637..766edbad130 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -10167,7 +10167,9 @@ dbx_reg_number (const_rtx rtl) } #endif - return DBX_REGISTER_NUMBER (regno); + regno = DBX_REGISTER_NUMBER (regno); + gcc_assert (regno != INVALID_REGNUM); + return regno; } /* Optionally add a DW_OP_piece term to a location description expression. |