On 11/14/11 06:17, Eric Blake wrote: > Is there any easy way to identify pcc at compile time, such as a > preprocessor macro it sets differently than gcc?
It's not *easy*, but the C macro __VERSION__ expands to a string that starts with "pcc ". On my host (Fedora 15 x86-64) the exact string is "pcc 1.0.0.RELEASE 20110221 for x86_64-unknown-linux-gnu, mockbuild@". Also, on my host, pcc fails so badly that it can't build executables; see <http://bugzilla.redhat.com/show_bug.cgi?id=708305> and <http://pcc.ludd.ltu.se/jira/browse/PCC-353>. pcc seems like pretty low priority so I'm not inclined to follow up on this.