[patch #8515] AX_GCC_ARCHFLAG: reorder option checking for Clang

Tsukasa Oi <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.archive-maintainers
Message-ID <[email protected]>
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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.