Message ID | 201406281031.s5SAVW8T014778@d06av02.portsmouth.uk.ibm.com |
---|---|
State | New |
Headers | show |
On Jun 28, 2014, at 3:31 AM, Ulrich Weigand <uweigand@de.ibm.com> wrote: > Mike Stump wrote: > >> (rs6000_aggregate_candidate): Use wide-int interfaces. > [snip] >> - /* Can't handle incomplete types. */ >> - if (!COMPLETE_TYPE_P (type)) >> - return -1; >> + /* Can't handle incomplete types nor sizes that are not >> + fixed. */ >> + if (!COMPLETE_TYPE_P (type) >> + || TREE_CODE (TYPE_SIZE (type)) != INTEGER_CST) Ouch, sorry. At least 8 eyes missed it. Does this fix the -m32 issue? > I've checked in the following patch as obvious. Thanks.
Index: gcc/config/rs6000/rs6000.c =================================================================== --- gcc/config/rs6000/rs6000.c (revision 212069) +++ gcc/config/rs6000/rs6000.c (working copy) @@ -8766,6 +8766,7 @@ fixed. */ if (!COMPLETE_TYPE_P (type) || TREE_CODE (TYPE_SIZE (type)) != INTEGER_CST) + return -1; for (field = TYPE_FIELDS (type); field; field = TREE_CHAIN (field)) {