Commit 7d445f15 by Richard Henderson Committed by Richard Henderson

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
parent 9faf4458
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
......
......@@ -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 ();
}
......
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.
......
/* Verify we don't ICE on statement-expressions. */
/* { dg-do compile } */
void foo(void)
{
char buf[({ 4; })];
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment