diff options
Diffstat (limited to 'gcc/fortran/trans.c')
-rw-r--r-- | gcc/fortran/trans.c | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/gcc/fortran/trans.c b/gcc/fortran/trans.c index a3c3ddc..5f7c860 100644 --- a/gcc/fortran/trans.c +++ b/gcc/fortran/trans.c @@ -656,30 +656,6 @@ gfc_generate_code (gfc_namespace * ns) return; } - /* Main program subroutine. */ - if (!ns->proc_name) - { - gfc_symbol *main_program; - symbol_attribute attr; - - /* Lots of things get upset if a subroutine doesn't have a symbol, so we - make one now. Hopefully we've set all the required fields. */ - gfc_get_symbol ("MAIN__", ns, &main_program); - gfc_clear_attr (&attr); - attr.flavor = FL_PROCEDURE; - attr.proc = PROC_UNKNOWN; - attr.subroutine = 1; - attr.access = ACCESS_PUBLIC; - attr.is_main_program = 1; - main_program->attr = attr; - - /* Set the location to the first line of code. */ - if (ns->code) - main_program->declared_at = ns->code->loc; - ns->proc_name = main_program; - gfc_commit_symbols (); - } - gfc_generate_function_code (ns); } |