From: hubicka Date: Wed, 28 Nov 2018 20:25:08 +0000 (+0000) Subject: * except.c (do_allocate_exception): Annotate __cxa_allocate_exception X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=00f6400ee1544ee0ffe1a508e6d9807ffd0a4956;p=thirdparty%2Fgcc.git * except.c (do_allocate_exception): Annotate __cxa_allocate_exception as COLD. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@266583 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 1897c2fa4515..5af15e3845f3 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 3449b59b3cc0..7e39cdf68a9c 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,