diff options
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. */ |