Re: [PATCH 05/14] tree.c: strip location wrappers from integer_zerop etc

2017-12-11 Thread Jason Merrill
On 11/10/2017 04:45 PM, David Malcolm wrote: We need to strip away location wrappers in tree.c predicates like integer_zerop, otherwise they fail when they're called on wrapped INTEGER_CST; an example can be seen for c-c++-common/Wmemset-transposed-args1.c in g++.sum, where the warn_for_memset

[PATCH 05/14] tree.c: strip location wrappers from integer_zerop etc

2017-11-10 Thread David Malcolm
We need to strip away location wrappers in tree.c predicates like integer_zerop, otherwise they fail when they're called on wrapped INTEGER_CST; an example can be seen for c-c++-common/Wmemset-transposed-args1.c in g++.sum, where the warn_for_memset fails to detect integer zero if the location wr