Has anyone used CLANG yet? - Mailing list pgsql-hackers

From Chris Browne
Subject Has anyone used CLANG yet?
Date
Msg-id 87iqcf4zba.fsf_-_@dba2.int.libertyrms.com
Whole thread Raw
Responses Re: Has anyone used CLANG yet?  (Greg Smith <greg@2ndquadrant.com>)
Re: Has anyone used CLANG yet?  ("A.M." <agentm@themactionfaction.com>)
Re: Has anyone used CLANG yet?  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
This is a C front end for the LLVM compiler...  I noticed that it
entered Debian/Unstable today:
 http://packages.debian.org/sid/main/clang

I thought it would be interesting to see if PostgreSQL compiles with
this, as an alternative compiler that should presumably become more and
more available on Linux et al.  (And I suppose that the randomly
selected .sig is supremely apropos!)

configure blows up here at the following:

conftest.c:75:28: error: invalid token after top level declarator
extern unsigned int PASCAL accept (unsigned int, void *, void *);

I suspect there's something about PASCAL that's a problem, as clang is
nominally supposed to be a C compiler ;-).  

I haven't looked deeper, so haven't the remotest idea how deep the issue
lies.

At any rate, I should poke at this further soon, but if it seems
interesting to others, well, CLANG is now an easy install on some number
of systems!
-- 
let name="cbbrowne" and tld="gmail.com" in name ^ "@" ^ tld;;
http://linuxdatabases.info/info/postgresql.html
"The problem with the cutting edge is that someone has to bleed."
-- Zalman Stern


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: explain output infelicity in psql
Next
From: Greg Smith
Date:
Subject: Re: Has anyone used CLANG yet?