[flashrom] [PATCH] Print clang version

Uwe Hermann uwe at hermann-uwe.de
Sat Jul 17 15:53:28 CEST 2010


On Mon, Jul 12, 2010 at 07:05:43PM +0200, Carl-Daniel Hailfinger wrote:
> Newer llvm/clang versions (since r102686) have a __clang_version__ macro
> which can be used to print the exact clang version.
> 
> Fix a case where chip_to_probe was referenced twice via extern, once at
> the function level and once in a global include file. Found by latest clang.
> 
> Tested on old and new clang.
> 
> Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>

Acked-by: Uwe Hermann <uwe at hermann-uwe.de>

Looks good here, I tested with clang 2.6-3 from Debian unstable.

Before:
flashrom v0.9.2-r1085 on Linux 2.6.32-5-amd64 (x86_64), built with libpci 3.1.7, LLVM 1/clang 1,  little endian

After:
flashrom v0.9.2-r1085 on Linux 2.6.32-5-amd64 (x86_64), built with libpci 3.1.7, LLVM Clang unknown version (before r102686), little endian


Uwe.
-- 
http://hermann-uwe.de     | http://sigrok.org
http://randomprojects.org | http://unmaintained-free-software.org




More information about the flashrom mailing list