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]

[PATCH] Fix middle-end/16045, fold checksum fails with builtins


The problem here is that we change TREE_NO_WARNING inside fold_builtin which I think
is wrong. This fixes the problem by creating a NOP_EXPR for all newly created
trees instead of just constants. The only problem I see with this way is we might
cause things not to be gimple and reject them.


OK? Bootstrapped and tested on powerpc-darwin with --enable-checking.

Thanks,
Andrew Pinski

ChangeLog:

* builtins.c (fold_builtin): Create a new NOP_EXPR all the time.

Attachment: t.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]