aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2016-09-28 11:57:46 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2016-09-28 11:57:46 +0100
commit1b4be62ad3e153d2e4eda115698cbf33fca09781 (patch)
tree616bc7f64beaee581cacfa983431cbc360c93228 /libstdc++-v3
parent1f5638916419d13d302d37c5fe4210d34417cc19 (diff)
downloadgcc-1b4be62ad3e153d2e4eda115698cbf33fca09781.zip
gcc-1b4be62ad3e153d2e4eda115698cbf33fca09781.tar.gz
gcc-1b4be62ad3e153d2e4eda115698cbf33fca09781.tar.bz2
libstdc++/77686 use may_alias for std::function storage
PR libstdc++/77686 * include/std/functional (_Any_data): Add may_alias attribute. From-SVN: r240567
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/std/functional2
2 files changed, 6 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 69ec081..8c11aad 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2016-09-28 Jonathan Wakely <jwakely@redhat.com>
+
+ PR libstdc++/77686
+ * include/std/functional (_Any_data): Add may_alias attribute.
+
2016-09-27 Jonathan Wakely <jwakely@redhat.com>
* doc/xml/manual/status_cxx2017.xml: Update status.
diff --git a/libstdc++-v3/include/std/functional b/libstdc++-v3/include/std/functional
index 8b2389c..74e65c7 100644
--- a/libstdc++-v3/include/std/functional
+++ b/libstdc++-v3/include/std/functional
@@ -1401,7 +1401,7 @@ _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type)
void (_Undefined_class::*_M_member_pointer)();
};
- union _Any_data
+ union [[gnu::may_alias]] _Any_data
{
void* _M_access() { return &_M_pod_data[0]; }
const void* _M_access() const { return &_M_pod_data[0]; }