https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90029

--- Comment #2 from Federico Kircheis <federico.kircheis at gmail dot com> ---
Thank you for your answer, I need to learn better how to search for related
bugs.

The bugs you linked do surely answer my question, but they do not cover exactly
the same requests.

1) optimize dead call to `std::terminate`.


2) remove typeinfo information for types that can never escape the local scope 

The other tickets are more generic, in the general case it will not be possible
to remove the typeinfo by just looking at a function.
In my example `foo` is defined, thrown and captured inside `bar_ex*`, which is
not the common case when using exception (normally the error class is defined
globally or in a namespace)


Should I maybe open a feature request with those two missed optimization?
They are related to optimizing exceptions, but not completely dependent (I
think at least).

Reply via email to