autoconf-archive-maintainers | |
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[patch #8515] AX_GCC_ARCHFLAG: reorder option checking for Clang
From: |
Tsukasa Oi |
Subject: |
[patch #8515] AX_GCC_ARCHFLAG: reorder option checking for Clang |
Date: |
Fri, 15 Aug 2014 09:51:03 +0000 |
User-agent: |
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36 |
URL:
<http://savannah.gnu.org/patch/?8515>
Summary: AX_GCC_ARCHFLAG: reorder option checking for Clang
Project: GNU Autoconf Archive
Submitted by: a4lg
Submitted on: 2014年08月15日 18時51分01秒
Priority: 5 - Normal
Status: None
Assigned to: None
Originator Email:
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
https://savannah.gnu.org/patch/index.php?8514
As I mentioned in the submission above, LLVM Clang support on this macro is
partially corrupt because of different error handling from GCC.
For instance, in my Ivy Bridge environment with Clang compiler,
* AX_GCC_ARCHFLAG([no]) selects option `-mcpu=ivybridge' which is not really
supported by LLVM Clang
* AX_GCC_ARCHFLAG([yes]) selects option `-mtune=ivybridge' which is not really
support by LLVM Clang (as well)
This is because Clang does not fail on unknown processor type specified in
-mcpu=... and -mtune=... options. This fix (changes order of option checking)
does not resolve all the problems (AX_GCC_ARCHFLAG([yes]) still selects
`-mtune=ivybridge') but it will solve *some* of them.
Please note that the submitted patch is expected to be applied after the patch
#8514 but you could apply this patch first (with small modifications).
_______________________________________________________
File Attachments:
-------------------------------------------------------
Date: 2014年08月15日 18時51分01秒 Name:
0001-AX_GCC_ARCHFLAG-reorder-option-checking-for-Clang.patch Size: 2kB By:
a4lg
<http://savannah.gnu.org/patch/download.php?file_id=31904>
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/patch/?8515>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [patch #8515] AX_GCC_ARCHFLAG: reorder option checking for Clang,
Tsukasa Oi <=