From: redi Date: Tue, 8 Jan 2019 13:25:19 +0000 (+0000) Subject: PR libstdc++/88066 use <> for includes not "" X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64a50f48590a46253913524f5417144e90fc72ad;p=thirdparty%2Fgcc.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 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@267726 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 84fb8d7d0457..3adec7cc818b 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2019-01-08 Jonathan Wakely + + 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 * config/abi/pre/gnu.ver (GLIBCXX_3.4): Tighten existing patterns. diff --git a/libstdc++-v3/include/bits/locale_conv.h b/libstdc++-v3/include/bits/locale_conv.h index 3dffdc4d1b17..8438fedb5161 100644 --- a/libstdc++-v3/include/bits/locale_conv.h +++ b/libstdc++-v3/include/bits/locale_conv.h @@ -35,10 +35,10 @@ #else #include -#include "stringfwd.h" -#include "allocator.h" -#include "codecvt.h" -#include "unique_ptr.h" +#include +#include +#include +#include namespace std _GLIBCXX_VISIBILITY(default) { diff --git a/libstdc++-v3/include/ext/random b/libstdc++-v3/include/ext/random index 91c5a296a795..41a2962c8f6e 100644 --- a/libstdc++-v3/include/ext/random +++ b/libstdc++-v3/include/ext/random @@ -3857,8 +3857,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _GLIBCXX_END_NAMESPACE_VERSION } // namespace __gnu_cxx -#include "ext/opt_random.h" -#include "random.tcc" +#include +#include #endif // _GLIBCXX_USE_C99_STDINT_TR1 && UINT32_C diff --git a/libstdc++-v3/include/ext/vstring.h b/libstdc++-v3/include/ext/vstring.h index d83ba02fc1a6..ddffebf08939 100644 --- a/libstdc++-v3/include/ext/vstring.h +++ b/libstdc++-v3/include/ext/vstring.h @@ -2960,6 +2960,6 @@ _GLIBCXX_END_NAMESPACE_VERSION #endif // C++11 -#include "vstring.tcc" +#include #endif /* _VSTRING_H */