Handle noexcept on transactions with -fno-exceptions
2013-09-08 Tom de Vries <tom@codesourcery.com> PR c++/58282 * except.c (build_must_not_throw_expr): Handle flag_exceptions. From-SVN: r202359
This commit is contained in:
parent
9a7fb488e3
commit
6df2ca09e9
|
@ -1,3 +1,9 @@
|
|||
2013-09-08 Tom de Vries <tom@codesourcery.com>
|
||||
|
||||
PR c++/58282
|
||||
* except.c (build_must_not_throw_expr): Handle
|
||||
flag_exceptions.
|
||||
|
||||
2013-09-06 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* cgraphunit.c (expand_thunk): Get body before touching arguments.
|
||||
|
|
|
@ -374,6 +374,9 @@ build_must_not_throw_expr (tree body, tree cond)
|
|||
{
|
||||
tree type = body ? TREE_TYPE (body) : void_type_node;
|
||||
|
||||
if (!flag_exceptions)
|
||||
return body;
|
||||
|
||||
if (cond && !value_dependent_expression_p (cond))
|
||||
{
|
||||
cond = cxx_constant_value (cond);
|
||||
|
|
Loading…
Reference in New Issue