On Fri, Jan 12, 2018 at 09:23:49PM +0100, Jakub Jelinek wrote: > After the addition of location wrappers the > targetm.resolve_overloaded_builtin target hook is called with parameters > that may have those location wrappers in it. Seems generic code has been > changed to fold_for_warn fold it away when looking for something that should > be e.g. INTEGER_CST. Fixed thusly, bootstrapped/regtested on > powerpc64le-linux, ok for trunk?
Looks good to me. Okay for trunk. Thanks! > 2018-01-12 Jakub Jelinek <ja...@redhat.com> > > PR c++/83778 > * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Call > fold_for_warn before checking if arg2 is INTEGER_CST.