diff options
author | Geoffrey Keating <geoffk@apple.com> | 2003-07-29 04:14:48 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2003-07-29 04:14:48 +0000 |
commit | 5f0eabcc4df9bfda5ea33cc8e12826b41b95d50b (patch) | |
tree | 936bb5aa80644d833375f2c7d9730fb036224eff /gcc/c-decl.c | |
parent | 5fd5bdbd62322815065d88b6f54ac0704540d5d2 (diff) | |
download | gcc-5f0eabcc4df9bfda5ea33cc8e12826b41b95d50b.zip gcc-5f0eabcc4df9bfda5ea33cc8e12826b41b95d50b.tar.gz gcc-5f0eabcc4df9bfda5ea33cc8e12826b41b95d50b.tar.bz2 |
c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect main function.
* c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
main function.
From-SVN: r69913
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 7923a16..6a87c42 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -6338,7 +6338,7 @@ c_expand_body_1 (tree fndecl, int nested_p) to run global initializers, etc. */ if (DECL_NAME (fndecl) && MAIN_NAME_P (DECL_NAME (fndecl)) - && DECL_CONTEXT (fndecl) == NULL_TREE) + && C_DECL_FILE_SCOPE (fndecl)) expand_main_function (); /* Generate the RTL for this function. */ |