]> git.ipfire.org Git - thirdparty/ccache.git/commit
Add test for certain gcc compilers with buggy cpp
authorAnders Björklund <anders@itension.se>
Thu, 14 Jul 2016 15:28:20 +0000 (17:28 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Tue, 19 Jul 2016 14:59:39 +0000 (16:59 +0200)
commit7899edd41c7d4943604ef56c0bcecfa81e10abb1
tree0b135e8e2950134678121b0e5d9f17b5fa97403d
parente76ba34175546c1f4bb512233df7110ba2d241f8
Add test for certain gcc compilers with buggy cpp

The preprocessor in later gcc versions is buggy,
returning extra lines and different "line numbers":

    # 1 "<built-in>"
    # 1 "<command-line>"
    # 31 "<command-line>"
    # 1 "/usr/include/stdc-predef.h" 1 3 4
    # 32 "<command-line>" 2

But it only does this when there are no macros,
otherwise (with -D) it returns the regular output:

    # 1 "<built-in>"
    # 1 "<command-line>"
    # 1 "/usr/include/stdc-predef.h" 1 3 4
    # 1 "<command-line>" 2
test.sh