aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2011-06-29 10:15:00 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2011-06-29 10:15:00 +0200
commita0f33d3a128be9cc917198f93a13d451795b8175 (patch)
tree5f9c8925a92d79802ac210f1d17228247886af68 /gcc/dwarf2out.c
parent946c8b23ddf4ab7cc6af92c5a58b36814af3ecac (diff)
downloadgcc-a0f33d3a128be9cc917198f93a13d451795b8175.zip
gcc-a0f33d3a128be9cc917198f93a13d451795b8175.tar.gz
gcc-a0f33d3a128be9cc917198f93a13d451795b8175.tar.bz2
re PR debug/49567 (ICE in mem_loc_descriptor due to typed DWARF stack changes)
PR debug/49567 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for non-MODE_INT modes instead of asserting the mode has MODE_INT class. * gcc.target/i386/pr49567.c: New test. From-SVN: r175622
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 3d63d7b..8ff5c1e 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -14762,7 +14762,8 @@ mem_loc_descriptor (rtx rtl, enum machine_mode mode,
case SIGN_EXTEND:
case ZERO_EXTEND:
- gcc_assert (GET_MODE_CLASS (mode) == MODE_INT);
+ if (GET_MODE_CLASS (mode) != MODE_INT)
+ break;
op0 = mem_loc_descriptor (XEXP (rtl, 0), GET_MODE (XEXP (rtl, 0)),
mem_mode, VAR_INIT_STATUS_INITIALIZED);
if (op0 == 0)