public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug jit/66594] New: jitted code should use -mtune=native
@ 2015-06-19  1:28 dmalcolm at gcc dot gnu.org
  2015-06-19  1:39 ` [Bug jit/66594] " pinskia at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: dmalcolm at gcc dot gnu.org @ 2015-06-19  1:28 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 66594
           Summary: jitted code should use -mtune=native
           Product: gcc
           Version: 6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: jit
          Assignee: dmalcolm at gcc dot gnu.org
          Reporter: dmalcolm at gcc dot gnu.org
  Target Milestone: ---

We should probably default to -mtune=native when building code in-memory (but
probably to -mtune=generic when compiling to disk?).  Perhaps an option, or
maybe expose these options directly?

Note to self:

  * I see in gcc.c:
      /* As special support for cross compilers we read -mtune=native
             as -mtune=generic.  With native compilers we won't see the
             -mtune=native, as it was changed by the driver.  */
      if (!strcmp (opts->x_ix86_tune_string, "native"))
        {
          opts->x_ix86_tune_string = "generic";
        } 

hence we need to somehow run the *driver* logic for -mtune=native.

Note that that logic can be a no-op under non-bootstrapped builds; see bug
66593.


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

end of thread, other threads:[~2023-05-24 18:13 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-19  1:28 [Bug jit/66594] New: jitted code should use -mtune=native dmalcolm at gcc dot gnu.org
2015-06-19  1:39 ` [Bug jit/66594] " pinskia at gcc dot gnu.org
2015-06-19 16:20 ` dmalcolm at gcc dot gnu.org
2015-06-19 16:21 ` dmalcolm at gcc dot gnu.org
2015-06-19 16:30 ` ktkachov at gcc dot gnu.org
2015-06-19 17:12 ` dmalcolm at gcc dot gnu.org
2015-06-19 17:15 ` dmalcolm at gcc dot gnu.org
2023-05-19  1:25 ` pinskia at gcc dot gnu.org
2023-05-24 18:13 ` schuchart at icl dot utk.edu

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).