summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-04-17 01:04:22 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-04-17 01:04:22 +0000
commitf5520aebb1db993772068e362abeded071951115 (patch)
tree50d8215c8c61689f8bc9fdec439d64b38bf5ab50 /clang
parente30df5aa2909bc04652dde6940e6e28456b8f03f (diff)
downloadbcm5719-llvm-f5520aebb1db993772068e362abeded071951115.tar.gz
bcm5719-llvm-f5520aebb1db993772068e362abeded071951115.zip
Link to a tiny patch to libstdc++-4.7 to work around the <chrono> issues
from the C++ status page. llvm-svn: 154890
Diffstat (limited to 'clang')
-rw-r--r--clang/www/cxx_status.html5
-rw-r--r--clang/www/libstdc++4.7-clang11.patch13
2 files changed, 16 insertions, 2 deletions
diff --git a/clang/www/cxx_status.html b/clang/www/cxx_status.html
index 7c319ee42c4..a2ef9677063 100644
--- a/clang/www/cxx_status.html
+++ b/clang/www/cxx_status.html
@@ -40,8 +40,9 @@
<p>You can use Clang in C++11 mode either
with <a href="http://libcxx.llvm.org/">libc++</a> or with gcc's libstdc++.
-libstdc++-4.4 requires <a href="libstdc++4.4-clang0x.patch">a patch</a> to work
-with clang; other versions have not been tested.</p>
+Patches are needed to make <a href="libstdc++4.4-clang0x.patch">libstdc++-4.4</a>
+and <a href="libstdc++4.7-clang11.patch">libstdc++-4.7</a> work with Clang in
+C++11 mode.</p>
<table width="689" border="1" cellspacing="0">
<tr>
diff --git a/clang/www/libstdc++4.7-clang11.patch b/clang/www/libstdc++4.7-clang11.patch
new file mode 100644
index 00000000000..3f0300725df
--- /dev/null
+++ b/clang/www/libstdc++4.7-clang11.patch
@@ -0,0 +1,13 @@
+Index: include/std/type_traits
+===================================================================
+--- include/std/type_traits (revision 185724)
++++ include/std/type_traits (working copy)
+@@ -1746,7 +1746,7 @@
+
+ template<typename _Tp, typename _Up>
+ struct common_type<_Tp, _Up>
+- { typedef decltype(true ? declval<_Tp>() : declval<_Up>()) type; };
++ { typedef typename decay<decltype(true ? declval<_Tp>() : declval<_Up>())>::type type; };
+
+ template<typename _Tp, typename _Up, typename... _Vp>
+ struct common_type<_Tp, _Up, _Vp...>
OpenPOWER on IntegriCloud