re PR testsuite/24281 (WARNING: Could not execute gcc.dg/compat/struct-layout-1 generator)

PR testsuite/24281
	* gcc.dg/compat/struct-layout-1_generator.c (generate_fields):
	Check for null pointer.

From-SVN: r105243
This commit is contained in:
Janis Johnson 2005-10-11 17:04:45 +00:00 committed by Janis Johnson
parent ca85f65910
commit 8c07e3d7a7
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2005-10-11 Janis Johnson <janis187@us.ibm.com>
PR testsuite/24281
* gcc.dg/compat/struct-layout-1_generator.c (generate_fields):
Check for null pointer.
2005-10-11 Mark Mitchell <mark@codesourcery.com>
PR c++/21369

View File

@ -1749,6 +1749,7 @@ generate_fields (enum FEATURE features, struct entry *e, struct entry *parent,
size will result in a compiler error. */
if ((e[n].etype == ETYPE_ARRAY)
&& e[n].attrib != NULL
&& (strncmp (e[n].attrib, "atal", 4) == 0))
e[n].attrib = NULL;
}