Re: Add fnspec attributes to cxa_* functions

2022-06-24 Thread Jason Merrill via Gcc-patches
On 6/23/22 09:59, Jan Hubicka via Gcc-patches wrote: Note that your email subject line is missing "[PATCH]" and a component tag like "c++:". this patch adds fnspecs for cxa_* functions in except.cc. Main goal is to make modref to see proper side-effects of functions which may throw. So in ge

Re: Add fnspec attributes to cxa_* functions

2022-06-24 Thread Richard Biener via Gcc-patches
> Am 23.06.2022 um 16:00 schrieb Jan Hubicka via Gcc-patches > : > > Hi, > this patch adds fnspecs for cxa_* functions in except.cc. Main goal is to > make > modref to see proper side-effects of functions which may throw. So in general > we get > - cxa_allocate_exception >which gets the

Add fnspec attributes to cxa_* functions

2022-06-23 Thread Jan Hubicka via Gcc-patches
Hi, this patch adds fnspecs for cxa_* functions in except.cc. Main goal is to make modref to see proper side-effects of functions which may throw. So in general we get - cxa_allocate_exception which gets the same annotations as malloc (since it is kind of same thing) - cxa_free_exception