* tree-sra.c (type_can_be_decomposed_p): Reject variable sized types.
From-SVN: r92494
This commit is contained in:
parent
821c5063f9
commit
ba9ce455bb
@ -1,3 +1,7 @@
|
||||
2004-12-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
|
||||
|
||||
* tree-sra.c (type_can_be_decomposed_p): Reject variable sized types.
|
||||
|
||||
2004-12-22 Mark Mitchell <mark@codesourcery.com>
|
||||
|
||||
* Makefile.in (install-common): Remove special-case code for when
|
||||
|
@ -184,7 +184,8 @@ type_can_be_decomposed_p (tree type)
|
||||
return false;
|
||||
|
||||
/* The type must have a definite nonzero size. */
|
||||
if (TYPE_SIZE (type) == NULL || integer_zerop (TYPE_SIZE (type)))
|
||||
if (TYPE_SIZE (type) == NULL || TREE_CODE (TYPE_SIZE (type)) != INTEGER_CST
|
||||
|| integer_zerop (TYPE_SIZE (type)))
|
||||
goto fail;
|
||||
|
||||
/* The type must be a non-union aggregate. */
|
||||
|
Loading…
Reference in New Issue
Block a user