[llvm-commits] [cfe-commits] revised: [PATCH] Add configuration of CLANG_VENDOR, VENDOR_GCC_VERSION

ronl ronl at codeaurora.org
Mon Aug 27 13:15:21 PDT 2012


And here are the two patches J

 

 

From: cfe-commits-bounces at cs.uiuc.edu
[mailto:cfe-commits-bounces at cs.uiuc.edu] On Behalf Of ronl
Sent: Monday, August 27, 2012 3:13 PM
To: llvm-commits at cs.uiuc.edu; cfe-commits at cs.uiuc.edu
Subject: [cfe-commits] revised: [PATCH] Add configuration of CLANG_VENDOR,
VENDOR_GCC_VERSION

 

Please find attached two revised patches for Add configuration of
CLANG_VENDOR, VENDOR_GCC_VERSION.

Removes the extraneous braces {} from an if statement.

Removed extraneous space from a comment in the file configure.ac.

 

 

Note:

Two patches associated with this commit, first for llvm, second for clang.

The clang patch

   0002-Add-configuration-of-CLANG_VENDOR-VENDOR_GCC_VERSION.patch

depends on the llvm patch

   0001-Add-configuration-of-CLANG_VENDOR-VENDOR_GCC_VERSION.patch

 

Defaults for the new configure options:

  --with-vendor-gcc-version defaults to.4.2.1.

  --with-clang-vendor defaults to null.

 

The -v and --version command line options will print the version # last,

after the thread model and target.

 

-v will no longer produce unused command line argument warnings. This was

for GCC comparability, which prints the version number last, and suppresses

unused option warnings.

 

The vendor name, and version are configured via the following options to

configure \

  --with-clang-vendor="QuIC LLVM Hexagon 6.1-pre-BT_201208240506 " \

  --with-vendor-gcc-version="6.0.00" \

 

Examples:

 

$ clang -v -Wall |& tail -1

QuIC LLVM Hexagon 6.1-pre-BT_201208240506 clang version 3.2 (clang
<repo_url> <ID>) (llvm <repo_url> <ID>)

 

$ clang -v

Target: hexagon-unknown-linux-gnu

Thread model: posix

QuIC LLVM Hexagon 6.1-pre-BT_201208240506 clang version 3.2 (clang
<repo_url> <ID>) (llvm <repo_url> <ID>)

 

$ clang -dumpversion

6.0.03

 

$ clang --version

Target: hexagon-unknown-linux-gnu

Thread model: posix

QuIC LLVM Hexagon 6.1-pre-BT_201208240506 clang version 3.2 (clang
<repo_url> <ID>) (llvm <repo_url> <ID>)

 

Hexagon Clang defined __VERSION__

__VERSION__ "4.2.1 Compatible QuIC LLVM Hexagon 6.1-pre-BT_201208240506
Clang 3.2 (clang <repo_url> <ID>) (llvm <repo_url> <ID>)

 

Testing:

cmake

cmake -DCLANG_VENDOR_GCC_VERSION=

cmake -DCLANG_VENDOR=

cmake -DCLANG_VENDOR_GCC_VERSION= -DCLANG_VENDOR=

cmake -DCLANG_VENDOR_GCC_VERSION=6.0.03

cmake -DCLANG_VENDOR="QuIC LLVM Hexagon 6.1-pre-BT_201208240506"

cmake -DCLANG_VENDOR_GCC_VERSION=6.0.03 -DCLANG_VENDOR="QuIC LLVM Hexagon
6.1-pre-BT_201208240506"

 

configure

configure --with-vendor-gcc-version=

configure --with-vendor-gcc-version=6.0.03

configure --with-clang-vendor=

configure --with-clang-vendor= --with-vendor-gcc-version=

configure --with-clang-vendor="QuIC LLVM Hexagon 6.1-pre-BT_201208240506 "

configure --with-vendor-gcc-version=6.0.03 --with-clang-vendor="QuIC LLVM
Hexagon 6.1-pre-BT_201208240506 "

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120827/a74c2deb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Add-configuration-of-CLANG_VENDOR-VENDOR_GCC_VERSION.patch
Type: application/octet-stream
Size: 7767 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120827/a74c2deb/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Add-configuration-of-CLANG_VENDOR-VENDOR_GCC_VERSION.patch
Type: application/octet-stream
Size: 6337 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120827/a74c2deb/attachment-0001.obj>


More information about the llvm-commits mailing list