aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-01-08 13:25:19 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2019-01-08 13:25:19 +0000
commit9f5391ee9521e90d0f3b545893d9d4b3d98839d1 (patch)
treead29a3f5641b32fd4aa90694a55bbac5254c0f0e /libstdc++-v3
parente5ab5ae072f7555eb8019c16cb394c18b88b5dc2 (diff)
downloadgcc-9f5391ee9521e90d0f3b545893d9d4b3d98839d1.zip
gcc-9f5391ee9521e90d0f3b545893d9d4b3d98839d1.tar.gz
gcc-9f5391ee9521e90d0f3b545893d9d4b3d98839d1.tar.bz2
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
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog7
-rw-r--r--libstdc++-v3/include/bits/locale_conv.h8
-rw-r--r--libstdc++-v3/include/ext/random4
-rw-r--r--libstdc++-v3/include/ext/vstring.h2
4 files changed, 14 insertions, 7 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 84fb8d7..3adec7c 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -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.
diff --git a/libstdc++-v3/include/bits/locale_conv.h b/libstdc++-v3/include/bits/locale_conv.h
index 3dffdc4..8438fed 100644
--- a/libstdc++-v3/include/bits/locale_conv.h
+++ b/libstdc++-v3/include/bits/locale_conv.h
@@ -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)
{
diff --git a/libstdc++-v3/include/ext/random b/libstdc++-v3/include/ext/random
index 91c5a29..41a2962 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 <ext/opt_random.h>
+#include <ext/random.tcc>
#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 d83ba02..ddffebf 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 <ext/vstring.tcc>
#endif /* _VSTRING_H */