Gentoo Archives: gentoo-user

From: Florian Philipp <lists@×××××××××××.net>
To: Gentoo User List <gentoo-user@l.g.o>
Subject: [gentoo-user] g++ -fnothrow-opt
Date: Wed, 22 Jan 2014 17:45:03
Message-Id: 52E0031A.8020104@binarywings.net
1 Hi list!
2
3 I'm wondering if anyone tried setting -fnothrow-opt as a CXX_FLAG in
4 make.conf?
5
6 It makes C++ throw() statements behave like C++11 nothrow. This could
7 have measurable performance benefits and will reduce code size. The only
8 downside is that, when a function violates its throw() guarantee,
9 terminate() will be called instead of unexpected().
10
11 However, neither function is allowed to do anything but terminate the
12 program. So all you possibly lose is a meaningful error message just
13 before the program crashes.
14
15 So, what do you think? Safe to enable by default?
16
17 Thanks in advance!
18 Florian Philipp

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] g++ -fnothrow-opt Florian Philipp <lists@×××××××××××.net>