On Fri, Feb 26, 2016 at 2:27 PM, Jakub Jelinek <ja...@redhat.com> wrote: > Hi! > > Most of the errors and warnings in rs6000_option_override_internal > are emitted only if the particular option is explicit, e.g. > if (TARGET_P9_DFORM && !TARGET_P9_VECTOR) > { > if (rs6000_isa_flags_explicit & OPTION_MASK_P9_VECTOR) > error ("-mpower9-dform requires -mpower9-vector"); > rs6000_isa_flags &= ~OPTION_MASK_P9_DFORM; > } > and many others, which is right, but for the > -mallow-movmisalign requires -mvsx > error it doesn't do this, so if say -mcpu=power8 compiled TU > contains a routine with target ("no-vsx") attribute, we get this > error, even when the user hasn't done anything we should complain about. > > Fixed by following what we do for the other options, bootstrapped/regtested > on powerpc64le-linux (and powerpc64-linux, but regtest is still pending > there). Ok for trunk? > > 2016-02-26 Jakub Jelinek <ja...@redhat.com> > > PR target/69969 > * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't > complain about -mallow-movmisalign without -mvsx if > TARGET_ALLOW_MOVMISALIGN was not set explicitly. > > * gcc.target/powerpc/pr69969.c: New test.
Seems reasonable. LGTM Thanks, David