PR libstdc++/88066 use <> for includes not ""

Using #include "..." to include a header in the same directory fails if
the user compiles with -I-, so always use something like <bits/...> for
internal headers.

I haven't added tests for this, because dg-options adds options to the
end, and the position of -I- matters (if it's at the end then the tests
won't find any headers in the build tree, as they're specified by -I
options earlier in the flags). It's been manually tested though.

	PR libstdc++/88066
	* include/bits/locale_conv.h: Use <> for includes not "".
	* include/ext/random: Likewise.
	* include/ext/vstring.h: Likewise.

From-SVN: r267726
This commit is contained in:
Jonathan Wakely 2019-01-08 13:25:19 +00:00 committed by Jonathan Wakely
parent e5ab5ae072
commit 9f5391ee95
4 changed files with 14 additions and 7 deletions

View File

@ -1,3 +1,10 @@
2019-01-08 Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/88066
* include/bits/locale_conv.h: Use <> for includes not "".
* include/ext/random: Likewise.
* include/ext/vstring.h: Likewise.
2019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns.

View File

@ -35,10 +35,10 @@
#else
#include <streambuf>
#include "stringfwd.h"
#include "allocator.h"
#include "codecvt.h"
#include "unique_ptr.h"
#include <bits/stringfwd.h>
#include <bits/allocator.h>
#include <bits/codecvt.h>
#include <bits/unique_ptr.h>
namespace std _GLIBCXX_VISIBILITY(default)
{

View File

@ -3857,8 +3857,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
_GLIBCXX_END_NAMESPACE_VERSION
} // namespace __gnu_cxx
#include "ext/opt_random.h"
#include "random.tcc"
#include <ext/opt_random.h>
#include <ext/random.tcc>
#endif // _GLIBCXX_USE_C99_STDINT_TR1 && UINT32_C

View File

@ -2960,6 +2960,6 @@ _GLIBCXX_END_NAMESPACE_VERSION
#endif // C++11
#include "vstring.tcc"
#include <ext/vstring.tcc>
#endif /* _VSTRING_H */