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
This commit is contained in:
Richard Henderson 2003-06-05 11:08:12 -07:00 committed by Richard Henderson
parent 9faf44582d
commit 7d445f153d
4 changed files with 24 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2003-05-06 Richard Henderson <rth@redhat.com>
* dwarf2out.c (loc_descriptor_from_tree): Return 0 for
language-specific tree codes.
2003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR middle-end/9986

View file

@ -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 ();
}

View file

@ -1,3 +1,7 @@
2003-06-05 Richard Henderson <rth@redhat.com>
* gcc.dg/debug/20030605-1.c: New.
2003-06-04 Mark Mitchell <mark@codesourcery.com>
* README.QMTEST: Update.

View file

@ -0,0 +1,7 @@
/* Verify we don't ICE on statement-expressions. */
/* { dg-do compile } */
void foo(void)
{
char buf[({ 4; })];
}