c++: Unneeded export query [PR 99380]
authorNathan Sidwell <nathan@acm.org>
Mon, 5 Apr 2021 14:51:28 +0000 (07:51 -0700)
committerNathan Sidwell <nathan@acm.org>
Mon, 5 Apr 2021 14:55:41 +0000 (07:55 -0700)
commitdd6f588a7b8878d677af51ff4d1c1e3f9f6f40db
tree044c35cbed1402cb9bdbfaa0516ad308dbaca47d
parent7d8f4240c94e2e7643ac13cda1fdd0bb6ca3a3fb
c++: Unneeded export query [PR 99380]

This problem got introduced fixing a module numbering problem.  When
preprocessing a header unit, we don't need to send an EXPORT query
unless we're also determining dependencies, or the mapper asked us
to.  Sadly the testsuite isn't set up to test this kind of subtlety.
I manually did that with stdin/stdout.

PR c++/99380
gcc/cp/
* module.cc (name_pending_imports): Drop 'atend' parm.  Don't
query export when not needed.
(preprocess_module, preprocessed_module): Adjust.
gcc/cp/module.cc