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 jit/66594] jitted code should use -mtune=native


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.


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