I thought we could do without this, but rest_of_decl_compilation is not
called for constant decls, so I've put back what the Fortran FE
originally had. This fixes a gdb regression.
Committed to branch.
Aldy
commit 0f6f7418836c533a49a5464828a0461aec437ebc
Author: Aldy Hernandez <al...@redhat.com>
Date: Tue Mar 24 09:23:50 2015 -0700
Emit early debug from gfc_emit_parameter_debug_info.
diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c
index dba6362..107a7d8 100644
--- a/gcc/fortran/trans-decl.c
+++ b/gcc/fortran/trans-decl.c
@@ -4776,6 +4776,7 @@ gfc_emit_parameter_debug_info (gfc_symbol *sym)
TREE_TYPE (decl),
sym->attr.dimension,
false, false);
+ debug_hooks->early_global_decl (decl);
}