public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/65849] New: Add missing tuning knobs to #pragma target/attribute target support
@ 2015-04-22 17:27 meissner at gcc dot gnu.org
  2015-04-22 17:30 ` [Bug target/65849] " meissner at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: meissner at gcc dot gnu.org @ 2015-04-22 17:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 65849
           Summary: Add missing tuning knobs to #pragma target/attribute
                    target support
           Product: gcc
           Version: 5.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: meissner at gcc dot gnu.org
              Host: powerpc64-unknown-linux-gnu
            Target: powerpc64-unknown-linux-gnu
             Build: powerpc64-unknown-linux-gnu

Some of the -m<option> tuning knobs were not allowed for #pragma target "..."
and attribute ((target("...))) support.  At first glance, we should add support
for -m{,no-}save-toc-indirect, -m{,no-}optimize-swaps,
-m{,no-}upper-regs-{sf,df}.

Options that affect the ABI (like -mpointers-to-nested-functions, -mabi=...,
-mlittle, -m32, etc.) should not be added, but where possible the other options
should be added.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/65849] Add missing tuning knobs to #pragma target/attribute target support
  2015-04-22 17:27 [Bug target/65849] New: Add missing tuning knobs to #pragma target/attribute target support meissner at gcc dot gnu.org
@ 2015-04-22 17:30 ` meissner at gcc dot gnu.org
  2015-04-24 17:24 ` meissner at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: meissner at gcc dot gnu.org @ 2015-04-22 17:30 UTC (permalink / raw)
  To: gcc-bugs

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

Michael Meissner <meissner at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2015-04-22
           Assignee|unassigned at gcc dot gnu.org      |meissner at gcc dot gnu.org
     Ever confirmed|0                           |1


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/65849] Add missing tuning knobs to #pragma target/attribute target support
  2015-04-22 17:27 [Bug target/65849] New: Add missing tuning knobs to #pragma target/attribute target support meissner at gcc dot gnu.org
  2015-04-22 17:30 ` [Bug target/65849] " meissner at gcc dot gnu.org
@ 2015-04-24 17:24 ` meissner at gcc dot gnu.org
  2015-04-24 20:03 ` meissner at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: meissner at gcc dot gnu.org @ 2015-04-24 17:24 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Michael Meissner <meissner at gcc dot gnu.org> ---
Author: meissner
Date: Fri Apr 24 17:24:05 2015
New Revision: 222417

URL: https://gcc.gnu.org/viewcvs?rev=222417&root=gcc&view=rev
Log:
[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.


Added:
    trunk/gcc/testsuite/gcc.target/powerpc/pr65849-1.c
    trunk/gcc/testsuite/gcc.target/powerpc/pr65849-2.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/rs6000/rs6000.c
    trunk/gcc/config/rs6000/rs6000.opt
    trunk/gcc/testsuite/ChangeLog


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/65849] Add missing tuning knobs to #pragma target/attribute target support
  2015-04-22 17:27 [Bug target/65849] New: Add missing tuning knobs to #pragma target/attribute target support meissner at gcc dot gnu.org
  2015-04-22 17:30 ` [Bug target/65849] " meissner at gcc dot gnu.org
  2015-04-24 17:24 ` meissner at gcc dot gnu.org
@ 2015-04-24 20:03 ` meissner at gcc dot gnu.org
  2015-04-24 23:45 ` meissner at gcc dot gnu.org
  2015-04-24 23:49 ` meissner at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: meissner at gcc dot gnu.org @ 2015-04-24 20:03 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/65849] Add missing tuning knobs to #pragma target/attribute target support
  2015-04-22 17:27 [Bug target/65849] New: Add missing tuning knobs to #pragma target/attribute target support meissner at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2015-04-24 20:03 ` meissner at gcc dot gnu.org
@ 2015-04-24 23:45 ` meissner at gcc dot gnu.org
  2015-04-24 23:49 ` meissner at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: meissner at gcc dot gnu.org @ 2015-04-24 23:45 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Michael Meissner <meissner at gcc dot gnu.org> ---
Author: meissner
Date: Fri Apr 24 23:44:41 2015
New Revision: 222433

URL: https://gcc.gnu.org/viewcvs?rev=222433&root=gcc&view=rev
Log:
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.


Modified:
    branches/gcc-4_9-branch/gcc/ChangeLog
    branches/gcc-4_9-branch/gcc/config/rs6000/rs6000.c
    branches/gcc-4_9-branch/gcc/config/rs6000/rs6000.opt


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug target/65849] Add missing tuning knobs to #pragma target/attribute target support
  2015-04-22 17:27 [Bug target/65849] New: Add missing tuning knobs to #pragma target/attribute target support meissner at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2015-04-24 23:45 ` meissner at gcc dot gnu.org
@ 2015-04-24 23:49 ` meissner at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: meissner at gcc dot gnu.org @ 2015-04-24 23:49 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from Michael Meissner <meissner at gcc dot gnu.org> ---
Author: meissner
Date: Fri Apr 24 23:48:54 2015
New Revision: 222434

URL: https://gcc.gnu.org/viewcvs?rev=222434&root=gcc&view=rev
Log:
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.


Modified:
    branches/gcc-4_8-branch/gcc/ChangeLog
    branches/gcc-4_8-branch/gcc/config/rs6000/rs6000.c
    branches/gcc-4_8-branch/gcc/config/rs6000/rs6000.opt


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-04-24 23:49 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-22 17:27 [Bug target/65849] New: Add missing tuning knobs to #pragma target/attribute target support meissner at gcc dot gnu.org
2015-04-22 17:30 ` [Bug target/65849] " meissner at gcc dot gnu.org
2015-04-24 17:24 ` meissner at gcc dot gnu.org
2015-04-24 20:03 ` meissner at gcc dot gnu.org
2015-04-24 23:45 ` meissner at gcc dot gnu.org
2015-04-24 23:49 ` meissner at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).