aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/trans-decl.c')
-rw-r--r--gcc/fortran/trans-decl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/trans-decl.c b/gcc/fortran/trans-decl.c
index fb15396..d0fc5d3 100644
--- a/gcc/fortran/trans-decl.c
+++ b/gcc/fortran/trans-decl.c
@@ -307,7 +307,7 @@ gfc_build_label_decl (tree label_id)
void
gfc_set_decl_location (tree decl, locus * loc)
{
- DECL_SOURCE_LOCATION (decl) = loc->lb->location;
+ DECL_SOURCE_LOCATION (decl) = gfc_get_location (loc);
}
@@ -1760,7 +1760,7 @@ gfc_get_symbol_decl (gfc_symbol * sym)
}
/* Create the decl for the variable. */
- decl = build_decl (sym->declared_at.lb->location,
+ decl = build_decl (gfc_get_location (&sym->declared_at),
VAR_DECL, gfc_sym_identifier (sym), gfc_sym_type (sym));
/* Add attributes to variables. Functions are handled elsewhere. */