diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-11-24 22:28:38 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2006-11-24 22:28:38 +0100 |
commit | 5c386a95ee20b9bb8f705ed1f8394ca7b4bafa7d (patch) | |
tree | 36c8035a96cc911760ed8fd295e9fcba32d8a983 /gcc/c-tree.h | |
parent | 238564598bce2cc56d65382076806f3ca73af4de (diff) | |
download | gcc-5c386a95ee20b9bb8f705ed1f8394ca7b4bafa7d.tar.gz |
re PR c/29955 (ICE with -fopenmp -fexceptions)
PR c/29955
* c-tree.h (c_maybe_initialize_eh): New prototype.
* c-decl.c (finish_decl): Move EH initialization...
(c_maybe_initialize_eh): ... here. New function.
* c-parser.c (c_parser_omp_construct): Call c_maybe_initialize_eh
if not #pragma omp atomic.
* gcc.dg/gomp/pr29955.c: New test.
From-SVN: r119168
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r-- | gcc/c-tree.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h index 5785e1cb96f..87af5cbae9d 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -456,6 +456,7 @@ extern void declare_parm_level (void); extern void undeclared_variable (tree, location_t); extern tree declare_label (tree); extern tree define_label (location_t, tree); +extern void c_maybe_initialize_eh (void); extern void finish_decl (tree, tree, tree); extern tree finish_enum (tree, tree, tree); extern void finish_function (void); |