Re: [RFA] Fix various PPC build failures due to int-in-boolean-context code

2016-11-23 Thread Jeff Law
On 11/07/2016 08:15 AM, Bernd Edlinger wrote: On Fri, Oct 28, 2016 at 09:12:29AM -0600, Jeff Law wrote: > > The PPC port is stumbling over the new integer in boolean context warnings. > > In particular this code from rs6000_option_override_internal is > problematical: > > HOST_WIDE_I

Re: [RFA] Fix various PPC build failures due to int-in-boolean-context code

2016-11-07 Thread Bernd Edlinger
On Fri, Oct 28, 2016 at 09:12:29AM -0600, Jeff Law wrote: > > The PPC port is stumbling over the new integer in boolean context warnings. > > In particular this code from rs6000_option_override_internal is > problematical: > > HOST_WIDE_INT flags = ((TARGET_DEFAULT) ? TARGET_DEFAULT

Re: [RFA] Fix various PPC build failures due to int-in-boolean-context code

2016-10-29 Thread Segher Boessenkool
On Fri, Oct 28, 2016 at 09:12:29AM -0600, Jeff Law wrote: > > The PPC port is stumbling over the new integer in boolean context warnings. > > In particular this code from rs6000_option_override_internal is > problematical: > > HOST_WIDE_INT flags = ((TARGET_DEFAULT) ? TARGET_DEFAULT >

Re: [RFA] Fix various PPC build failures due to int-in-boolean-context code

2016-10-28 Thread Jakub Jelinek
On Fri, Oct 28, 2016 at 09:12:29AM -0600, Jeff Law wrote: > * config/rs6000/rs6000.c (rs6000_option_override_internal): Avoid > false positive from int-in-boolean-context warnings. > > diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c > index 5e35e33..38a5226 100644

Re: [RFA] Fix various PPC build failures due to int-in-boolean-context code

2016-10-28 Thread Jeff Law
On 10/28/2016 09:17 AM, Jakub Jelinek wrote: On Fri, Oct 28, 2016 at 09:12:29AM -0600, Jeff Law wrote: * config/rs6000/rs6000.c (rs6000_option_override_internal): Avoid false positive from int-in-boolean-context warnings. diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs60