mirror of git://gcc.gnu.org/git/gcc.git
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:
parent
e5ab5ae072
commit
9f5391ee95
|
|
@ -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>
|
2019-01-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||||
|
|
||||||
* config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns.
|
* config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns.
|
||||||
|
|
|
||||||
|
|
@ -35,10 +35,10 @@
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include <streambuf>
|
#include <streambuf>
|
||||||
#include "stringfwd.h"
|
#include <bits/stringfwd.h>
|
||||||
#include "allocator.h"
|
#include <bits/allocator.h>
|
||||||
#include "codecvt.h"
|
#include <bits/codecvt.h>
|
||||||
#include "unique_ptr.h"
|
#include <bits/unique_ptr.h>
|
||||||
|
|
||||||
namespace std _GLIBCXX_VISIBILITY(default)
|
namespace std _GLIBCXX_VISIBILITY(default)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -3857,8 +3857,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
||||||
_GLIBCXX_END_NAMESPACE_VERSION
|
_GLIBCXX_END_NAMESPACE_VERSION
|
||||||
} // namespace __gnu_cxx
|
} // namespace __gnu_cxx
|
||||||
|
|
||||||
#include "ext/opt_random.h"
|
#include <ext/opt_random.h>
|
||||||
#include "random.tcc"
|
#include <ext/random.tcc>
|
||||||
|
|
||||||
#endif // _GLIBCXX_USE_C99_STDINT_TR1 && UINT32_C
|
#endif // _GLIBCXX_USE_C99_STDINT_TR1 && UINT32_C
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2960,6 +2960,6 @@ _GLIBCXX_END_NAMESPACE_VERSION
|
||||||
|
|
||||||
#endif // C++11
|
#endif // C++11
|
||||||
|
|
||||||
#include "vstring.tcc"
|
#include <ext/vstring.tcc>
|
||||||
|
|
||||||
#endif /* _VSTRING_H */
|
#endif /* _VSTRING_H */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue