aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2018-11-28 21:25:08 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2018-11-28 20:25:08 +0000
commitc3cc0122ca3f2a1d039dd24e1590362302de30b6 (patch)
treec638b3523751d0b041fdd3f19450139f64d1f1d3
parent6d078c9ad5888c7e581790cd8ce16462fa7d7f14 (diff)
downloadgcc-c3cc0122ca3f2a1d039dd24e1590362302de30b6.zip
gcc-c3cc0122ca3f2a1d039dd24e1590362302de30b6.tar.gz
gcc-c3cc0122ca3f2a1d039dd24e1590362302de30b6.tar.bz2
except.c (do_allocate_exception): Annotate __cxa_allocate_exception as COLD.
* except.c (do_allocate_exception): Annotate __cxa_allocate_exception as COLD. From-SVN: r266583
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/except.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 1897c2f..5af15e3 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2018-11-28 Jan Hubicka <hubicka@ucw.cz>
+
+ * except.c (do_allocate_exception): Annotate __cxa_allocate_exception
+ as COLD.
+
2018-11-28 Marek Polacek <polacek@redhat.com>
PR c++/88222 - ICE with bit-field with invalid type.
diff --git a/gcc/cp/except.c b/gcc/cp/except.c
index 3449b59..7e39cdf 100644
--- a/gcc/cp/except.c
+++ b/gcc/cp/except.c
@@ -506,7 +506,7 @@ do_allocate_exception (tree type)
allocate_exception_fn
= declare_library_fn ("__cxa_allocate_exception",
ptr_type_node, size_type_node,
- ECF_NOTHROW | ECF_MALLOC, ECF_TM_PURE);
+ ECF_NOTHROW | ECF_MALLOC | ECF_COLD, ECF_TM_PURE);
return cp_build_function_call_nary (allocate_exception_fn,
tf_warning_or_error,