aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/class.c
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <aldot@gcc.gnu.org>2016-06-19 12:38:16 +0200
committerBernhard Reutner-Fischer <aldot@gcc.gnu.org>2016-06-19 12:38:16 +0200
commitd42844f1fadda7cb8bf37a104d57f4f0e0302a1f (patch)
treeb40b06f72522e2e295cc3d3c5b40fbc5c2e9f312 /gcc/fortran/class.c
parent323524d939e45afe9b9e209f6e860980f3bad9d0 (diff)
downloadgcc-d42844f1fadda7cb8bf37a104d57f4f0e0302a1f.zip
gcc-d42844f1fadda7cb8bf37a104d57f4f0e0302a1f.tar.gz
gcc-d42844f1fadda7cb8bf37a104d57f4f0e0302a1f.tar.bz2
Use gfc_add_*_component defines where appropriate
A couple of places used gfc_add_component_ref(expr, "string") instead of the defines from gfortran.h From-SVN: r237580
Diffstat (limited to 'gcc/fortran/class.c')
-rw-r--r--gcc/fortran/class.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/class.c b/gcc/fortran/class.c
index 3627828..a627448 100644
--- a/gcc/fortran/class.c
+++ b/gcc/fortran/class.c
@@ -257,7 +257,7 @@ gfc_add_class_array_ref (gfc_expr *e)
int rank = CLASS_DATA (e)->as->rank;
gfc_array_spec *as = CLASS_DATA (e)->as;
gfc_ref *ref = NULL;
- gfc_add_component_ref (e, "_data");
+ gfc_add_data_component (e);
e->rank = rank;
for (ref = e->ref; ref; ref = ref->next)
if (!ref->next)
@@ -582,7 +582,7 @@ gfc_get_len_component (gfc_expr *e)
ref = ref->next;
}
/* And replace if with a ref to the _len component. */
- gfc_add_component_ref (ptr, "_len");
+ gfc_add_len_component (ptr);
return ptr;
}