preprocessor: Revert premature change
authorNathan Sidwell <nathan@acm.org>
Wed, 20 May 2020 20:43:11 +0000 (13:43 -0700)
committerNathan Sidwell <nathan@acm.org>
Wed, 20 May 2020 20:43:11 +0000 (13:43 -0700)
commit38a4db21e12816c674406f33d8bc4d064d4211d7
tree6ed6d995e37a17fab382d50340f986e5b4188b84
parentc22027a00ede06e3f53170a82aa5b6af8697ddc4
preprocessor:  Revert premature change

This part of the cleanup patch turns out to require more pieces to
function correctly.  I must have got confused over which tree I was
testing.  The very first map has a different pointer to the file name,
so doesn't match with a pointer compare. We were relying on that.

* c-common.c (try_to_locate_new_include_insertion_point): Revert change.
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/testsuite/c-c++-common/cpp/cmd-1.c [new file with mode: 0644]
gcc/testsuite/c-c++-common/cpp/cmd-1.h [new file with mode: 0644]