aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2003-06-05 11:08:12 -0700
committerRichard Henderson <rth@gcc.gnu.org>2003-06-05 11:08:12 -0700
commit7d445f153d2937b96ccdde7c6acde3f0996564ed (patch)
tree89fe51052af3f94cf74cc07ba5c6aef4be3641c2 /gcc/dwarf2out.c
parent9faf44582d372f1773287fe5102a1839de81fdaf (diff)
downloadgcc-7d445f153d2937b96ccdde7c6acde3f0996564ed.zip
gcc-7d445f153d2937b96ccdde7c6acde3f0996564ed.tar.gz
gcc-7d445f153d2937b96ccdde7c6acde3f0996564ed.tar.bz2
dwarf2out.c (loc_descriptor_from_tree): Return 0 for language-specific tree codes.
* dwarf2out.c (loc_descriptor_from_tree): Return 0 for language-specific tree codes. * gcc.dg/debug/20030605-1.c: New. From-SVN: r67505
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index e649329..dd0ee35 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -9033,6 +9033,14 @@ loc_descriptor_from_tree (loc, addressp)
break;
default:
+ /* Leave front-end specific codes as simply unknown. This comes
+ up, for instance, with the C STMT_EXPR. */
+ if ((unsigned int) TREE_CODE (loc)
+ >= (unsigned int) LAST_AND_UNUSED_TREE_CODE)
+ return 0;
+
+ /* Otherwise this is a generic code; we should just lists all of
+ these explicitly. Aborting means we forgot one. */
abort ();
}