diff options
author | Richard Biener <rguenther@suse.de> | 2013-03-25 14:46:08 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2013-03-25 14:46:08 +0000 |
commit | c16fd67643acd718a5355e96c7759b42e8f211f6 (patch) | |
tree | 0da6abe60c60c42778149fd307577107d5797313 /gcc/tree-eh.c | |
parent | 5ad29f129eac4c5f092578dd1ae4550abf430557 (diff) | |
download | gcc-c16fd67643acd718a5355e96c7759b42e8f211f6.zip gcc-c16fd67643acd718a5355e96c7759b42e8f211f6.tar.gz gcc-c16fd67643acd718a5355e96c7759b42e8f211f6.tar.bz2 |
re PR c++/56694 (Internal compiler error when compiling OpenMP code)
2013-03-25 Richard Biener <rguenther@suse.de>
PR middle-end/56694
* tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
must-not-throw stmt location.
* g++.dg/torture/pr56694.C: New testcase.
From-SVN: r197047
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r-- | gcc/tree-eh.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c index 6b9dac9..973782b 100644 --- a/gcc/tree-eh.c +++ b/gcc/tree-eh.c @@ -1855,7 +1855,8 @@ lower_eh_must_not_throw (struct leh_state *state, gimple tp) this_region = gen_eh_region_must_not_throw (state->cur_region); this_region->u.must_not_throw.failure_decl = gimple_eh_must_not_throw_fndecl (inner); - this_region->u.must_not_throw.failure_loc = gimple_location (tp); + this_region->u.must_not_throw.failure_loc + = LOCATION_LOCUS (gimple_location (tp)); /* In order to get mangling applied to this decl, we must mark it used now. Otherwise, pass_ipa_free_lang_data won't think it |