Re: [pushed] c++: enable -fdelete-dead-exceptions by default

2021-07-15 Thread Richard Biener
On Wed, 14 Jul 2021, Jason Merrill wrote: > As I was discussing with richi, I don't think it makes sense to protect > calls to pure/const functions from DCE just because they aren't explicitly > declared noexcept. PR100382 indicates that there are different > considerations for Go, which has non-

[pushed] c++: enable -fdelete-dead-exceptions by default

2021-07-14 Thread Jason Merrill via Gcc-patches
As I was discussing with richi, I don't think it makes sense to protect calls to pure/const functions from DCE just because they aren't explicitly declared noexcept. PR100382 indicates that there are different considerations for Go, which has non-call exceptions. But still turn the flag off for t