https://gcc.gnu.org/g:be1c135eb78c74b0a5bf51f1c0f5b68e07461b22
commit be1c135eb78c74b0a5bf51f1c0f5b68e07461b22 Author: Mikael Morin <mik...@gcc.gnu.org> Date: Sun Jun 29 14:15:55 2025 +0200 Suppression gfc_conv_descriptor_attribute compil' OK Diff: --- gcc/fortran/trans-descriptor.cc | 16 ---------------- gcc/fortran/trans-descriptor.h | 1 - 2 files changed, 17 deletions(-) diff --git a/gcc/fortran/trans-descriptor.cc b/gcc/fortran/trans-descriptor.cc index 34a635cc90ca..2a59f7dfd13f 100644 --- a/gcc/fortran/trans-descriptor.cc +++ b/gcc/fortran/trans-descriptor.cc @@ -393,22 +393,6 @@ gfc_conv_descriptor_elem_len_set (stmtblock_t *block, tree desc, tree value) } -tree -gfc_conv_descriptor_attribute (tree desc) -{ - tree tmp; - tree dtype; - - dtype = get_descriptor_dtype (desc); - tmp = gfc_advance_chain (TYPE_FIELDS (TREE_TYPE (dtype)), - GFC_DTYPE_ATTRIBUTE); - gcc_assert (tmp!= NULL_TREE - && TREE_TYPE (tmp) == short_integer_type_node); - return fold_build3_loc (input_location, COMPONENT_REF, TREE_TYPE (tmp), - dtype, tmp, NULL_TREE); -} - - static tree get_descriptor_type (tree desc) { diff --git a/gcc/fortran/trans-descriptor.h b/gcc/fortran/trans-descriptor.h index 96f66b004ecb..69cc4f3e2ac6 100644 --- a/gcc/fortran/trans-descriptor.h +++ b/gcc/fortran/trans-descriptor.h @@ -48,7 +48,6 @@ tree gfc_get_cfi_dim_extent (tree desc, tree idx); tree gfc_get_cfi_dim_sm (tree desc, tree idx); -tree gfc_conv_descriptor_attribute (tree desc); tree gfc_get_descriptor_dimension (tree desc); tree gfc_conv_descriptor_dimension (tree desc, tree dim); tree gfc_conv_descriptor_token (tree desc);