From cce4dd3fb564765b6029337ab95c8fcfbd71bf27 Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Thu, 11 Nov 2010 23:17:02 +0100 Subject: [PATCH] Add notes about the AIX compiler's preprocessor output --- ccache.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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')) { -- 2.47.2