c++: Windows rename [PR 98412]
authorNathan Sidwell <nathan@acm.org>
Mon, 21 Dec 2020 17:48:28 +0000 (09:48 -0800)
committerNathan Sidwell <nathan@acm.org>
Mon, 21 Dec 2020 17:48:28 +0000 (09:48 -0800)
commite798f081925b5085de3c9d0f330eb6e255a377bf
treecd282295239b3c43a54ab471d31f3c19d2abd301
parent1467a5c5ab0dfbae3175b4a326467f939864dadb
c++: Windows rename [PR 98412]

Some system's rename(2) fails if the target already exists, so delete it
first.

gcc/cp/
* module.cc (create_dirs): Add logging.
(finish_module_processing): Unlink before rename.
gcc/cp/module.cc