This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug jit/66594] jitted code should use -mtune=native
- From: "dmalcolm at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 19 Jun 2015 17:12:26 +0000
- Subject: [Bug jit/66594] jitted code should use -mtune=native
- Auto-submitted: auto-generated
- References: <bug-66594-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66594
--- Comment #5 from David Malcolm <dmalcolm at gcc dot gnu.org> ---
Created attachment 35815
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35815&action=edit
Hacky work-in-progress fix, using hardcoded calls to host_detect_local_cpu
The attached patch is a hack, in that
(A) it assumes host_detect_local_cpu exists, which isn't always the case,
(B) it loops through "arch", "cpu", "tune", trying all of them, and appending
any results in order to libgccjit's fake args.
...but it seems to work on x86_64.