From: Joel Rosdahl Date: Thu, 11 Nov 2010 22:17:02 +0000 (+0100) Subject: Add notes about the AIX compiler's preprocessor output X-Git-Tag: v3.1.2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cce4dd3fb564765b6029337ab95c8fcfbd71bf27;p=thirdparty%2Fccache.git Add notes about the AIX compiler's preprocessor output --- diff --git a/ccache.c b/ccache.c index 25ff2b168..6022dd31d 100644 --- a/ccache.c +++ b/ccache.c @@ -440,6 +440,11 @@ process_preprocessed_file(struct mdfour *hash, const char *path) * * #line N "file" * + * AIX's compiler: + * + * #line N "file" + * #line N + * * Note that there may be other lines starting with '#' left after * preprocessing as well, for instance "# pragma". */ @@ -449,7 +454,7 @@ process_preprocessed_file(struct mdfour *hash, const char *path) /* GCC precompiled header: */ || (q[1] == 'p' && str_startswith(&q[2], "ragma GCC pch_preprocess ")) - /* HP: */ + /* HP/AIX: */ || (q[1] == 'l' && q[2] == 'i' && q[3] == 'n' && q[4] == 'e' && q[5] == ' ')) && (q == data || q[-1] == '\n')) {