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] |
This was found during bootstrap with the patch in PR 22368 to catch the type mismatch in MODIFY_EXPRs.
Thanks, Andrew Pinski
* tree-ssa-propagate.c (fold_predicate_in): Convert the value to the correct type if we have a MODIFY_EXPR.
Attachment:
tree-vrp.diff.txt
Description: Text document
Testcase: /* { dg-do compile } */ /* { dg-options "-O2" } */ int f(int i) { int k = 0; if (i == 0) k = i == 0; return k; }
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |