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 1897c2f..5af15e3 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 3449b59..7e39cdf 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,