re PR target/65849 (Add missing tuning knobs to #pragma target/attribute target support)
authorMichael Meissner <meissner@linux.vnet.ibm.com>
Fri, 24 Apr 2015 17:24:05 +0000 (17:24 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Fri, 24 Apr 2015 17:24:05 +0000 (17:24 +0000)
commit6d7d9f0eaecc3896149504cc44de789e6cbb2366
tree5399212e2b499024a9eec913c419cc3b61a970ec
parent728dc15380585e6706357092c0b7becfc48f5133
re PR target/65849 (Add missing tuning knobs to #pragma target/attribute target support)

[gcc]
2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/65849
* config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
save to independent variables use the Save attribute.  This will
allow these options to be modified with the #pragma/attribute
target support.
(-mallow-movmisalign): Likewise.
(-mallow-df-permute): Likewise.
(-msched-groups): Likewise.
(-malways-hint): Likewise.
(-malign-branch-targets): Likewise.
(-mvectorize-builtins): Likewise.
(-msave-toc-indirect): Likewise.

* config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
can be set via the #pragma/attribute target support.
(rs6000_opt_vars): Likewise.
(rs6000_inner_target_options): If VSX was set, also set
-mno-avoid-indexed-addresses.

[gcc/testsuite]
2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/65849
* gcc.target/powerpc/pr65849-1.c: New test to verify being able to
set new options.
* gcc.target/powerpc/pr65849-2.c: Likewise.

From-SVN: r222417
gcc/ChangeLog
gcc/config/rs6000/rs6000.c
gcc/config/rs6000/rs6000.opt
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/powerpc/pr65849-1.c [new file with mode: 0644]
gcc/testsuite/gcc.target/powerpc/pr65849-2.c [new file with mode: 0644]