aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2005-12-16 21:03:50 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2005-12-16 21:03:50 +0000
commit38611275f68904c91b6e44f2cfdfd6fdd358ed99 (patch)
treeea84006c094f88ea06e93849946999daf67890c6 /gcc/fortran/trans.c
parent06b1145579432ef77e572b9538b68971146f0468 (diff)
downloadgcc-38611275f68904c91b6e44f2cfdfd6fdd358ed99.zip
gcc-38611275f68904c91b6e44f2cfdfd6fdd358ed99.tar.gz
gcc-38611275f68904c91b6e44f2cfdfd6fdd358ed99.tar.bz2
trans.h (gfc_build_indirect_ref): Remove declaration.
2005-12-16 Richard Guenther <rguenther@suse.de> * trans.h (gfc_build_indirect_ref): Remove declaration. * trans.c (gfc_build_indirect_ref): Remove. * trans-array.c (gfc_trans_array_ctor_element): Use build_fold_indirect_ref instead of gfc_build_indirect_ref. (gfc_trans_array_constructor_value): Likewise. (gfc_conv_array_index_offset): Likewise. (gfc_conv_scalarized_array_ref): Likewise. (gfc_conv_array_ref): Likewise. (gfc_trans_dummy_array_bias): Likewise. (gfc_conv_expr_descriptor): Likewise. (gfc_conv_array_parameter): Likewise. * trans-decl.c (gfc_finish_cray_pointee): Likewise. (gfc_get_symbol_decl): Likewise. * trans-expr.c (gfc_conv_substring): Likewise. (gfc_conv_component_ref): Likewise. (gfc_conv_variable): Likewise. (gfc_add_interface_mapping): Likewise. (gfc_conv_function_call): Likewise. * trans-intrinsic.c (gfc_conv_intrinsic_ichar): Likewise. (gfc_conv_intrinsic_transfer): Likewise. * trans-io.c (nml_get_addr_expr): Likewise. (transfer_namelist_element): Likewise. (transfer_expr): Likewise. * trans-stmt.c (gfc_trans_nested_forall_loop): Likewise. (allocate_temp_for_forall_nest_1): Likewise. (gfc_trans_forall_1): Likewise. From-SVN: r108678
Diffstat (limited to 'gcc/fortran/trans.c')
-rw-r--r--gcc/fortran/trans.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gcc/fortran/trans.c b/gcc/fortran/trans.c
index 5f7c860..50a78fc 100644
--- a/gcc/fortran/trans.c
+++ b/gcc/fortran/trans.c
@@ -282,22 +282,6 @@ gfc_build_addr_expr (tree type, tree t)
}
-/* Build an INDIRECT_REF with its natural type. */
-
-tree
-gfc_build_indirect_ref (tree t)
-{
- tree type = TREE_TYPE (t);
- gcc_assert (POINTER_TYPE_P (type));
- type = TREE_TYPE (type);
-
- if (TREE_CODE (t) == ADDR_EXPR)
- return TREE_OPERAND (t, 0);
- else
- return build1 (INDIRECT_REF, type, t);
-}
-
-
/* Build an ARRAY_REF with its natural type. */
tree