preprocessor: Teach traditional about has_include [PR95889]
authorTiziano Müller <tiziano.mueller@chem.uzh.ch>
Wed, 29 Jul 2020 14:28:23 +0000 (07:28 -0700)
committerNathan Sidwell <nathan@acm.org>
Wed, 29 Jul 2020 14:47:21 +0000 (07:47 -0700)
commitf6fe3bbf9f6c0b7249933e19b94560b6b26bf269
tree92e81c82505a9d23ed95b53c521f8dc1a40dd14d
parent55ede0bb87e74463c5b89fbfd501e85e9e683048
preprocessor: Teach traditional about has_include [PR95889]

Traditional cpp (used by fortran) didn;t know about the new
__has_include__ implementation.  Hey, since when did traditional cpp
grow __has_include__? That wasn't in knr!

libcpp/
* init.c (builtin_array): Add xref comment.
* traditional.c (fun_like_macro): Add HAS_INCLUDE codes.
gcc/testsuite/
* c-c++-common/cpp/has-include-1-traditional.c: New.
gcc/testsuite/c-c++-common/cpp/has-include-1-traditional.c [new file with mode: 0644]
libcpp/init.c
libcpp/traditional.c