From: Jan Hubicka Date: Wed, 28 Nov 2018 20:25:08 +0000 (+0100) Subject: except.c (do_allocate_exception): Annotate __cxa_allocate_exception as COLD. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c3cc0122ca3f2a1d039dd24e1590362302de30b6;p=gcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1897c2fa451..5af15e3845f 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2018-11-28 Jan Hubicka + + * except.c (do_allocate_exception): Annotate __cxa_allocate_exception + as COLD. + 2018-11-28 Marek Polacek PR c++/88222 - ICE with bit-field with invalid type. diff --git a/gcc/cp/except.c b/gcc/cp/except.c index 3449b59b3cc..7e39cdf68a9 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,