This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/65849] Add missing tuning knobs to #pragma target/attribute target support


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65849

--- Comment #2 from Michael Meissner <meissner at gcc dot gnu.org> ---
Author: meissner
Date: Fri Apr 24 20:03:13 2015
New Revision: 222421

URL: https://gcc.gnu.org/viewcvs?rev=222421&root=gcc&view=rev
Log:
[gcc]
2015-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>

    Backport from mainline
    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>

    Backport from mainline
    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.



Added:
    branches/gcc-5-branch/gcc/testsuite/gcc.target/powerpc/pr65849-1.c
      - copied unchanged from r222417,
trunk/gcc/testsuite/gcc.target/powerpc/pr65849-1.c
    branches/gcc-5-branch/gcc/testsuite/gcc.target/powerpc/pr65849-2.c
      - copied unchanged from r222417,
trunk/gcc/testsuite/gcc.target/powerpc/pr65849-2.c
Modified:
    branches/gcc-5-branch/gcc/ChangeLog
    branches/gcc-5-branch/gcc/config/rs6000/rs6000.c
    branches/gcc-5-branch/gcc/config/rs6000/rs6000.opt
    branches/gcc-5-branch/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]