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

Ron Lieberman ronl at codeaurora.org
Sat Sep 8 13:57:32 PDT 2012


In the interest of simplifying the review of this patch, I will break it up
into 3 separate patch submissions. 
1) CLANG_VENDOR
2) Minor productizing changes within clang for -v and --version
3) VENDOR_GCC_DUMPVERSION

This current patch request is withdrawn and a newer patch for 1) will be
submitted shortly.

Thanks,
Ron
---
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by
The Linux Foundation


-----Original Message-----
From: llvm-commits-bounces at cs.uiuc.edu
[mailto:llvm-commits-bounces at cs.uiuc.edu] On Behalf Of Ron Lieberman
Sent: Tuesday, September 04, 2012 11:01 AM
To: 'Sebastian Pop'; 'Chandler Carruth'
Cc: llvm-commits at cs.uiuc.edu; cfe-commits at cs.uiuc.edu
Subject: Re: [llvm-commits] [cfe-commits] [PATCH] Add configuration of
CLANG_VENDOR, VENDOR_GCC_VERSION

Ping

---
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by
The Linux Foundation


-----Original Message-----
From: llvm-commits-bounces at cs.uiuc.edu
[mailto:llvm-commits-bounces at cs.uiuc.edu] On Behalf Of Ron Lieberman
Sent: Thursday, August 30, 2012 10:13 AM
To: 'Sebastian Pop'; 'Chandler Carruth'
Cc: llvm-commits at cs.uiuc.edu; cfe-commits at cs.uiuc.edu
Subject: Re: [llvm-commits] [cfe-commits] [PATCH] Add configuration of
CLANG_VENDOR, VENDOR_GCC_VERSION

Sebastian, Thanks for adding the clarifications.

It is indeed the case that 6.0.00 is arbitrary.
The proposed change makes it easier for some company to move to 4.4.0 and
want to reflect that in the output of -dumpversion.
The capability to do so is what we are providing. 

Perhaps if I changed VENDOR_GCC_VERSION to be VENDOR_GCC_DUMPVERSION it
might be a bit more clear.

If folks are ok with that change I can proceed forward to do so, and
resubmit the two patches.

Thanks
---
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by
The Linux Foundation


-----Original Message-----
From: Sebastian Pop [mailto:spop at codeaurora.org]
Sent: Wednesday, August 29, 2012 11:59 PM
To: Chandler Carruth
Cc: Ron Lieberman; Rafael EspĂ­ndola; llvm-commits at cs.uiuc.edu;
cfe-commits at cs.uiuc.edu
Subject: Re: [cfe-commits] [PATCH] Add configuration of CLANG_VENDOR,
VENDOR_GCC_VERSION

Chandler Carruth wrote:
> There is no GCC version 6.0.00. That doesn't even make sense as a 
> version number.
> 

Yeah, you shouldn't pay attention to the number that Ron is speaking about:
it's just an example with three random numbers x.y.z.

> I think that if you want to deeply change the versions used by clang 
> in this way for a single product you are shipping, you should do so 
> out-of-tree. Having these macros in the tree complicates the code, and 
> makes it more likely that distributions or packagers will (correctly 
> or
> incorrectly) override them. When that happens, bug reports and issues 
> with upstream Clang become harder to understand and diagnose.

I don't think this will ever be an issue.

In the case of GCC, almost every linux distro and company releasing GCC
toolchains have their own patches on top of the code of GCC. Users of these
GCC distributions are directed to submit bug reports to the linux distro or
company that released the code, and not to GCC's bugzilla. In the rear
occasions a bug is directed to GCC's bugzilla, and is identified to fail
only for a specific vendor toolchain, the bug is taken care of by the
organization who released the code.

>From this perspective it is a good thing to be able to identify these
compilers with a name and version different than that of llvm.org. In case a
bug is reported against a version that is not released by llvm.org, the bug
should be rerouted to the organization that released that code.

Sebastian
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by
The Linux Foundation


_______________________________________________
llvm-commits mailing list
llvm-commits at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits


_______________________________________________
llvm-commits mailing list
llvm-commits at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits





More information about the cfe-commits mailing list