re PR rtl-optimization/56356 (DJGPP compiler crashing)

PR rtl-optimization/56356
	* sdbout.c (sdbout_parms): Verify that parms'
	incoming argument is valid.
	(sdbout_reg_parms): Likewise.

From-SVN: r208663
This commit is contained in:
Kai Tietz 2014-03-18 21:02:54 +01:00 committed by Kai Tietz
parent 58ca6edfe5
commit 234f76cb20
2 changed files with 15 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2014-03-18 Kai Tietz <ktietz@redhat.com>
PR rtl-optimization/56356
* sdbout.c (sdbout_parms): Verify that parms'
incoming argument is valid.
(sdbout_reg_parms): Likewise.
2014-03-18 Richard Henderson <rth@redhat.com>
PR target/60562

View File

@ -1229,7 +1229,10 @@ static void
sdbout_parms (tree parms)
{
for (; parms; parms = TREE_CHAIN (parms))
if (DECL_NAME (parms))
if (DECL_NAME (parms)
&& TREE_TYPE (parms) != error_mark_node
&& DECL_RTL_SET_P (parms)
&& DECL_INCOMING_RTL (parms))
{
int current_sym_value = 0;
const char *name = IDENTIFIER_POINTER (DECL_NAME (parms));
@ -1361,7 +1364,10 @@ static void
sdbout_reg_parms (tree parms)
{
for (; parms; parms = TREE_CHAIN (parms))
if (DECL_NAME (parms))
if (DECL_NAME (parms)
&& TREE_TYPE (parms) != error_mark_node
&& DECL_RTL_SET_P (parms)
&& DECL_INCOMING_RTL (parms))
{
const char *name = IDENTIFIER_POINTER (DECL_NAME (parms));