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] | |
The problem here is that we gimplify the expression for side effects but don't actually add the expression if the gimplify put it back in the same expression. OK? Bootstrapped and tested on x86_64-pc-linux-gnu with no regressions. References: http://gcc.gnu.org/ml/gcc/2005-09/msg00286.html http://gcc.gnu.org/ml/gcc/2005-09/msg00260.html ChangeLog: * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the expressions to a statement list instead of gimplifying them. testsuite/ChangeLog: * gcc.c-torture/execute/zero-struct-2.c: New test.
Attachment:
fixPR24589.diff.txt
Description: ASCII C program text
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |