diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-01-19 18:49:46 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2008-01-19 18:49:46 +0100 |
commit | 135a171d9eac312352f58e0c09abac9156d9fbda (patch) | |
tree | c47ee4cdc097d5f98d818d66731d4ecf07beeff8 /gcc/function.h | |
parent | d7e2fcd0038214e3e3d9301fa7f22cccb54de009 (diff) | |
download | gcc-135a171d9eac312352f58e0c09abac9156d9fbda.zip gcc-135a171d9eac312352f58e0c09abac9156d9fbda.tar.gz gcc-135a171d9eac312352f58e0c09abac9156d9fbda.tar.bz2 |
re PR gcov-profile/34610 (ICE with "-fprofile-arcs -fopenmp")
PR gcov-profile/34610
* tree-cfg.c (make_edges): Mark both outgoing edges from
OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
* omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
from OMP_FOR and OMP_CONTINUE outgoing edges.
* tree-profile.c (tree_profiling): Return early if
cfun->after_tree_profile != 0. Set cfun->after_tree_profile
at the end.
* omp-low.c (expand_omp_parallel): Copy after_tree_profile
from cfun to child_cfun.
* function.h (struct function): Add after_tree_profile bit.
* gcc.dg/gomp/pr34610.c: New test.
From-SVN: r131653
Diffstat (limited to 'gcc/function.h')
-rw-r--r-- | gcc/function.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/function.h b/gcc/function.h index eb2a753..abc2303 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -1,6 +1,7 @@ /* Structure for saving state for a nested function. Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. + 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2008 + Free Software Foundation, Inc. This file is part of GCC. @@ -459,6 +460,9 @@ struct function GTY(()) /* Nonzero if function being compiled needs to return the address of where it has put a structure value. */ unsigned int returns_pcc_struct : 1; + + /* Nonzero if pass_tree_profile was run on this function. */ + unsigned int after_tree_profile : 1; }; /* If va_list_[gf]pr_size is set to this, it means we don't know how |