This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On Thu, Aug 25, 2005 at 01:14:54AM -0700, Richard Henderson wrote:On Thu, Aug 25, 2005 at 02:29:38PM +0930, Alan Modra wrote:- if (zero_sized_type (type)) + if (!TREE_SIDE_EFFECTS (*from_p) && zero_sized_type (type)) { *expr_p = NULL_TREE;
You can write
if (zero_sized_type (type)) { *expr_p = (TREE_SIDE_EFFECTS (*from_p) ? *from_p : NULL);
Um, this variation results in
va-arg-22.c:46: internal compiler error: in gimplify_expr, at gimplify.c:4441
Thanks, Andrew Pinski
testsuite/ChangeLog: PR middle-end/23463 * gcc.c-torture/execute/zero-struct-1.c: New test.
Attachment:
fixPR23463.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |