summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Targets.cpp
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2016-10-10 05:34:18 +0000
committerEric Fiselier <eric@efcs.ca>2016-10-10 05:34:18 +0000
commitac473034fc771e5f1b4ef0ac405df70ed27412a1 (patch)
tree3c72903aff8bd88673908c72f65c0e677da64117 /clang/lib/Basic/Targets.cpp
parent99b81a59fb7c9e7dfb7b68d86c4215835ff649b1 (diff)
downloadbcm5719-llvm-ac473034fc771e5f1b4ef0ac405df70ed27412a1.tar.gz
bcm5719-llvm-ac473034fc771e5f1b4ef0ac405df70ed27412a1.zip
Provide a constexpr addressof with GCC 7.
__builtin_addressof was added to the GCC trunk in the past week. This patch teaches libc++ about it so it can correctly provide constexpr addressof. Unfortunately this patch will break users of earlier GCC 7 builds, since we expect __builtin_addressof but one won't be provided. One option would be to only use __builtin_addressof for GCC 7.1 and above, but that means waiting for another release. Instead I've specifically chosen to break older GCC 7 versions. Since GCC 7 has yet to be released, and the 7.0 release is a development release, I believe that anybody currently using GCC 7.0 will have no issue upgrading. llvm-svn: 283715
Diffstat (limited to 'clang/lib/Basic/Targets.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud