aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2014-11-17 13:16:19 -0500
committerJason Merrill <jason@gcc.gnu.org>2014-11-17 13:16:19 -0500
commite6b021859d9ca64b8a9f1bcfda8b8f6319be7d71 (patch)
tree91f2b9bcb3c443d45a47c2607199977d5716d601
parent60813a463b1e1398cd9786b8c4761283efefb831 (diff)
downloadgcc-e6b021859d9ca64b8a9f1bcfda8b8f6319be7d71.zip
gcc-e6b021859d9ca64b8a9f1bcfda8b8f6319be7d71.tar.gz
gcc-e6b021859d9ca64b8a9f1bcfda8b8f6319be7d71.tar.bz2
* constexpr.c (use_new_call): Always use new call handling.
From-SVN: r217664
-rw-r--r--gcc/cp/ChangeLog2
-rw-r--r--gcc/cp/constexpr.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index ae347d8..e6fc326 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,7 @@
2014-11-17 Jason Merrill <jason@redhat.com>
+ * constexpr.c (use_new_call): Always use new call handling.
+
C++14 constexpr support (minus loops and multiple returns)
* constexpr.c (use_new_call): New macro.
(build_data_member_initialization): Ignore non-mem-inits.
diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c
index 57d0c46..8881271 100644
--- a/gcc/cp/constexpr.c
+++ b/gcc/cp/constexpr.c
@@ -1021,8 +1021,8 @@ adjust_temp_type (tree type, tree temp)
}
/* True if we want to use the new handling of constexpr calls based on
- DECL_SAVED_TREE. Currently only active for C++14 mode. */
-#define use_new_call (cxx_dialect >= cxx14)
+ DECL_SAVED_TREE. */
+#define use_new_call true
/* Subroutine of cxx_eval_call_expression.
We are processing a call expression (either CALL_EXPR or