diff options
author | Tom Tromey <tromey@redhat.com> | 2007-11-16 00:11:47 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2007-11-16 00:11:47 +0000 |
commit | 5576d6f2daa3e88ac6dfcf9469c4e98eb6e67daf (patch) | |
tree | 672e864a197fe1e491117b7d173a827a5d262941 /gcc/function.h | |
parent | 506af7a420bd9f4016bbbfc1d126ab835764b0ac (diff) | |
download | gcc-5576d6f2daa3e88ac6dfcf9469c4e98eb6e67daf.zip gcc-5576d6f2daa3e88ac6dfcf9469c4e98eb6e67daf.tar.gz gcc-5576d6f2daa3e88ac6dfcf9469c4e98eb6e67daf.tar.bz2 |
tree-ssa-structalias.c (ipa_pta_execute): Rename 'cfun' to 'func'.
* tree-ssa-structalias.c (ipa_pta_execute): Rename 'cfun' to
'func'.
* tree-parloops.c (create_loop_fn): Use set_cfun.
* gengtype.c (open_base_files): Emit #undef cfun.
* ipa-struct-reorg.c (do_reorg_1): Use set_cfun.
* function.h (cfun): New define.
* function.c: Undefine cfun.
From-SVN: r130213
Diffstat (limited to 'gcc/function.h')
-rw-r--r-- | gcc/function.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/function.h b/gcc/function.h index 27bde1c..ff71c9a 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -466,6 +466,11 @@ struct function GTY(()) /* The function currently being compiled. */ extern GTY(()) struct function *cfun; +/* In order to ensure that cfun is not set directly, we redefine it so + that it is not an lvalue. Rather than assign to cfun, use + push_cfun or set_cfun. */ +#define cfun (cfun + 0) + /* Pointer to chain of `struct function' for containing functions. */ extern GTY(()) struct function *outer_function_chain; |