Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

linux compilation flag -fno-enforce-eh-specs for g++

15 views
Skip to first unread message

Jude Naveen Pinto

unread,
Jan 27, 2012, 7:57:15 AM1/27/12
to
Hi
i have a compilation flag in my project make file. could you please
let me know what it is used for. Also could you tell me what will flag
do when mentioned two times.
compilation flag
===========
-fno-enforce-eh-specs

Regards
Jude

Jude Naveen Pinto

unread,
Jan 27, 2012, 7:59:06 AM1/27/12
to

J G Miller

unread,
Jan 27, 2012, 10:45:01 AM1/27/12
to
On Friday, January 27th, 2012 at 04:57:15h -0800, Jude Naveen Pinto explained:

> i have a compilation flag in my project make file.

Your project?

Which project is that?

Which compiler?

Jude Naveen Pinto

unread,
Jan 30, 2012, 1:12:32 AM1/30/12
to
Hi the g++ version is g++ (GCC) 3.2.3 20030502 (Red Hat Linux
3.2.3-53)
it is a c++ project ported from linux x86 32 bit to x 86 64 bit

J G Miller

unread,
Jan 30, 2012, 9:00:49 AM1/30/12
to
On Sunday, January 29th, 2012, at 22:12:32h -0800, Jude Naveen Pinto explained:

> the g++ version is g++ (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-53)

man g++

-fno-enforce-eh-specs

Don't generate code to check for violation of exception
specifications at runtime. This option violates the C++ standard,
but may be useful for reducing code size in production builds, much
like defining NDEBUG. This does not give user code permission to
throw exceptions in violation of the exception specifications; the
compiler will still optimize based on the specifications, so
throwing an unexpected exception will result in undefined behavior.


Specifying a flag such as this a second time will have no further effect
than if it was specified only once.
0 new messages