except.c (do_allocate_exception): Annotate __cxa_allocate_exception as COLD.
authorJan Hubicka <hubicka@ucw.cz>
Wed, 28 Nov 2018 20:25:08 +0000 (21:25 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 28 Nov 2018 20:25:08 +0000 (20:25 +0000)
* except.c (do_allocate_exception): Annotate __cxa_allocate_exception
as COLD.

From-SVN: r266583

gcc/cp/ChangeLog
gcc/cp/except.c

index 1897c2fa451572e455c6b50ff6b63428a705cbf1..5af15e3845f3abee5efce2e8dac2e0163bc7597a 100644 (file)
@@ -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.
index 3449b59b3cc0fa05f8bbb0af6345146e957ad4f2..7e39cdf68a9c03eb581243bb73b3f6686efc16a3 100644 (file)
@@ -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,