]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Add notes about the AIX compiler's preprocessor output
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 11 Nov 2010 22:17:02 +0000 (23:17 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 11 Nov 2010 22:17:02 +0000 (23:17 +0100)
ccache.c

index 25ff2b16887961d5c48ad36134b7f503d5d4c9a2..6022dd31ded27a2bc2a3b3be2d1b328a6498989a 100644 (file)
--- 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')) {