fortran: Add support for per-location warning groups.
gcc/fortran/ChangeLog: * trans-array.c (trans_array_constructor): Replace direct uses of TREE_NO_WARNING with warning_suppressed_p, and suppress_warning. * trans-decl.c (gfc_build_qualified_array): Same. (gfc_build_dummy_array_decl): Same. (generate_local_decl): Same. (gfc_generate_function_code): Same. * trans-openmp.c (gfc_omp_clause_default_ctor): Same. (gfc_omp_clause_copy_ctor): Same. * trans-types.c (get_dtype_type_node): Same. (gfc_get_desc_dim_type): Same. (gfc_get_array_descriptor_base): Same. (gfc_get_caf_vector_type): Same. (gfc_get_caf_reference_type): Same. * trans.c (gfc_create_var_np): Same.
This commit is contained in:
parent
8c7dfbb8f3
commit
d5e69948be
5 changed files with 60 additions and 60 deletions
|
@ -2764,7 +2764,7 @@ trans_array_constructor (gfc_ss * ss, locus * where)
|
||||||
desc = ss_info->data.array.descriptor;
|
desc = ss_info->data.array.descriptor;
|
||||||
offset = gfc_index_zero_node;
|
offset = gfc_index_zero_node;
|
||||||
offsetvar = gfc_create_var_np (gfc_array_index_type, "offset");
|
offsetvar = gfc_create_var_np (gfc_array_index_type, "offset");
|
||||||
TREE_NO_WARNING (offsetvar) = 1;
|
suppress_warning (offsetvar);
|
||||||
TREE_USED (offsetvar) = 0;
|
TREE_USED (offsetvar) = 0;
|
||||||
gfc_trans_array_constructor_value (&outer_loop->pre, type, desc, c,
|
gfc_trans_array_constructor_value (&outer_loop->pre, type, desc, c,
|
||||||
&offset, &offsetvar, dynamic);
|
&offset, &offsetvar, dynamic);
|
||||||
|
|
|
@ -1045,7 +1045,7 @@ gfc_build_qualified_array (tree decl, gfc_symbol * sym)
|
||||||
if (GFC_TYPE_ARRAY_LBOUND (type, dim) == NULL_TREE)
|
if (GFC_TYPE_ARRAY_LBOUND (type, dim) == NULL_TREE)
|
||||||
{
|
{
|
||||||
GFC_TYPE_ARRAY_LBOUND (type, dim) = create_index_var ("lbound", nest);
|
GFC_TYPE_ARRAY_LBOUND (type, dim) = create_index_var ("lbound", nest);
|
||||||
TREE_NO_WARNING (GFC_TYPE_ARRAY_LBOUND (type, dim)) = 1;
|
suppress_warning (GFC_TYPE_ARRAY_LBOUND (type, dim));
|
||||||
}
|
}
|
||||||
/* Don't try to use the unknown bound for assumed shape arrays. */
|
/* Don't try to use the unknown bound for assumed shape arrays. */
|
||||||
if (GFC_TYPE_ARRAY_UBOUND (type, dim) == NULL_TREE
|
if (GFC_TYPE_ARRAY_UBOUND (type, dim) == NULL_TREE
|
||||||
|
@ -1053,13 +1053,13 @@ gfc_build_qualified_array (tree decl, gfc_symbol * sym)
|
||||||
|| dim < GFC_TYPE_ARRAY_RANK (type) - 1))
|
|| dim < GFC_TYPE_ARRAY_RANK (type) - 1))
|
||||||
{
|
{
|
||||||
GFC_TYPE_ARRAY_UBOUND (type, dim) = create_index_var ("ubound", nest);
|
GFC_TYPE_ARRAY_UBOUND (type, dim) = create_index_var ("ubound", nest);
|
||||||
TREE_NO_WARNING (GFC_TYPE_ARRAY_UBOUND (type, dim)) = 1;
|
suppress_warning (GFC_TYPE_ARRAY_UBOUND (type, dim));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GFC_TYPE_ARRAY_STRIDE (type, dim) == NULL_TREE)
|
if (GFC_TYPE_ARRAY_STRIDE (type, dim) == NULL_TREE)
|
||||||
{
|
{
|
||||||
GFC_TYPE_ARRAY_STRIDE (type, dim) = create_index_var ("stride", nest);
|
GFC_TYPE_ARRAY_STRIDE (type, dim) = create_index_var ("stride", nest);
|
||||||
TREE_NO_WARNING (GFC_TYPE_ARRAY_STRIDE (type, dim)) = 1;
|
suppress_warning (GFC_TYPE_ARRAY_STRIDE (type, dim));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
for (dim = GFC_TYPE_ARRAY_RANK (type);
|
for (dim = GFC_TYPE_ARRAY_RANK (type);
|
||||||
|
@ -1068,21 +1068,21 @@ gfc_build_qualified_array (tree decl, gfc_symbol * sym)
|
||||||
if (GFC_TYPE_ARRAY_LBOUND (type, dim) == NULL_TREE)
|
if (GFC_TYPE_ARRAY_LBOUND (type, dim) == NULL_TREE)
|
||||||
{
|
{
|
||||||
GFC_TYPE_ARRAY_LBOUND (type, dim) = create_index_var ("lbound", nest);
|
GFC_TYPE_ARRAY_LBOUND (type, dim) = create_index_var ("lbound", nest);
|
||||||
TREE_NO_WARNING (GFC_TYPE_ARRAY_LBOUND (type, dim)) = 1;
|
suppress_warning (GFC_TYPE_ARRAY_LBOUND (type, dim));
|
||||||
}
|
}
|
||||||
/* Don't try to use the unknown ubound for the last coarray dimension. */
|
/* Don't try to use the unknown ubound for the last coarray dimension. */
|
||||||
if (GFC_TYPE_ARRAY_UBOUND (type, dim) == NULL_TREE
|
if (GFC_TYPE_ARRAY_UBOUND (type, dim) == NULL_TREE
|
||||||
&& dim < GFC_TYPE_ARRAY_RANK (type) + GFC_TYPE_ARRAY_CORANK (type) - 1)
|
&& dim < GFC_TYPE_ARRAY_RANK (type) + GFC_TYPE_ARRAY_CORANK (type) - 1)
|
||||||
{
|
{
|
||||||
GFC_TYPE_ARRAY_UBOUND (type, dim) = create_index_var ("ubound", nest);
|
GFC_TYPE_ARRAY_UBOUND (type, dim) = create_index_var ("ubound", nest);
|
||||||
TREE_NO_WARNING (GFC_TYPE_ARRAY_UBOUND (type, dim)) = 1;
|
suppress_warning (GFC_TYPE_ARRAY_UBOUND (type, dim));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (GFC_TYPE_ARRAY_OFFSET (type) == NULL_TREE)
|
if (GFC_TYPE_ARRAY_OFFSET (type) == NULL_TREE)
|
||||||
{
|
{
|
||||||
GFC_TYPE_ARRAY_OFFSET (type) = gfc_create_var_np (gfc_array_index_type,
|
GFC_TYPE_ARRAY_OFFSET (type) = gfc_create_var_np (gfc_array_index_type,
|
||||||
"offset");
|
"offset");
|
||||||
TREE_NO_WARNING (GFC_TYPE_ARRAY_OFFSET (type)) = 1;
|
suppress_warning (GFC_TYPE_ARRAY_OFFSET (type));
|
||||||
|
|
||||||
if (nest)
|
if (nest)
|
||||||
gfc_add_decl_to_parent_function (GFC_TYPE_ARRAY_OFFSET (type));
|
gfc_add_decl_to_parent_function (GFC_TYPE_ARRAY_OFFSET (type));
|
||||||
|
@ -1094,7 +1094,7 @@ gfc_build_qualified_array (tree decl, gfc_symbol * sym)
|
||||||
&& as->type != AS_ASSUMED_SIZE)
|
&& as->type != AS_ASSUMED_SIZE)
|
||||||
{
|
{
|
||||||
GFC_TYPE_ARRAY_SIZE (type) = create_index_var ("size", nest);
|
GFC_TYPE_ARRAY_SIZE (type) = create_index_var ("size", nest);
|
||||||
TREE_NO_WARNING (GFC_TYPE_ARRAY_SIZE (type)) = 1;
|
suppress_warning (GFC_TYPE_ARRAY_SIZE (type));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (POINTER_TYPE_P (type))
|
if (POINTER_TYPE_P (type))
|
||||||
|
@ -1299,7 +1299,7 @@ gfc_build_dummy_array_decl (gfc_symbol * sym, tree dummy)
|
||||||
|
|
||||||
/* Avoid uninitialized warnings for optional dummy arguments. */
|
/* Avoid uninitialized warnings for optional dummy arguments. */
|
||||||
if (sym->attr.optional)
|
if (sym->attr.optional)
|
||||||
TREE_NO_WARNING (decl) = 1;
|
suppress_warning (decl);
|
||||||
|
|
||||||
/* We should never get deferred shape arrays here. We used to because of
|
/* We should never get deferred shape arrays here. We used to because of
|
||||||
frontend bugs. */
|
frontend bugs. */
|
||||||
|
@ -5986,7 +5986,7 @@ generate_local_decl (gfc_symbol * sym)
|
||||||
"does not have a default initializer",
|
"does not have a default initializer",
|
||||||
sym->name, &sym->declared_at);
|
sym->name, &sym->declared_at);
|
||||||
if (sym->backend_decl != NULL_TREE)
|
if (sym->backend_decl != NULL_TREE)
|
||||||
TREE_NO_WARNING(sym->backend_decl) = 1;
|
suppress_warning (sym->backend_decl);
|
||||||
}
|
}
|
||||||
else if (warn_unused_dummy_argument)
|
else if (warn_unused_dummy_argument)
|
||||||
{
|
{
|
||||||
|
@ -5996,7 +5996,7 @@ generate_local_decl (gfc_symbol * sym)
|
||||||
&sym->declared_at);
|
&sym->declared_at);
|
||||||
|
|
||||||
if (sym->backend_decl != NULL_TREE)
|
if (sym->backend_decl != NULL_TREE)
|
||||||
TREE_NO_WARNING(sym->backend_decl) = 1;
|
suppress_warning (sym->backend_decl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6012,7 +6012,7 @@ generate_local_decl (gfc_symbol * sym)
|
||||||
"explicitly imported at %L", sym->name,
|
"explicitly imported at %L", sym->name,
|
||||||
&sym->declared_at);
|
&sym->declared_at);
|
||||||
if (sym->backend_decl != NULL_TREE)
|
if (sym->backend_decl != NULL_TREE)
|
||||||
TREE_NO_WARNING(sym->backend_decl) = 1;
|
suppress_warning (sym->backend_decl);
|
||||||
}
|
}
|
||||||
else if (!sym->attr.use_assoc)
|
else if (!sym->attr.use_assoc)
|
||||||
{
|
{
|
||||||
|
@ -6030,7 +6030,7 @@ generate_local_decl (gfc_symbol * sym)
|
||||||
"Unused variable %qs declared at %L",
|
"Unused variable %qs declared at %L",
|
||||||
sym->name, &sym->declared_at);
|
sym->name, &sym->declared_at);
|
||||||
if (sym->backend_decl != NULL_TREE)
|
if (sym->backend_decl != NULL_TREE)
|
||||||
TREE_NO_WARNING(sym->backend_decl) = 1;
|
suppress_warning (sym->backend_decl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6145,7 +6145,7 @@ generate_local_decl (gfc_symbol * sym)
|
||||||
/* Silence bogus "unused parameter" warnings from the
|
/* Silence bogus "unused parameter" warnings from the
|
||||||
middle end. */
|
middle end. */
|
||||||
if (sym->backend_decl != NULL_TREE)
|
if (sym->backend_decl != NULL_TREE)
|
||||||
TREE_NO_WARNING (sym->backend_decl) = 1;
|
suppress_warning (sym->backend_decl);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6976,7 +6976,7 @@ gfc_generate_function_code (gfc_namespace * ns)
|
||||||
"Return value of function %qs at %L not set",
|
"Return value of function %qs at %L not set",
|
||||||
sym->name, &sym->declared_at);
|
sym->name, &sym->declared_at);
|
||||||
if (warn_return_type > 0)
|
if (warn_return_type > 0)
|
||||||
TREE_NO_WARNING(sym->backend_decl) = 1;
|
suppress_warning (sym->backend_decl);
|
||||||
}
|
}
|
||||||
if (result != NULL_TREE)
|
if (result != NULL_TREE)
|
||||||
gfc_add_expr_to_block (&body, gfc_generate_return ());
|
gfc_add_expr_to_block (&body, gfc_generate_return ());
|
||||||
|
|
|
@ -785,7 +785,7 @@ gfc_omp_clause_default_ctor (tree clause, tree decl, tree outer)
|
||||||
else_b));
|
else_b));
|
||||||
/* Avoid -W*uninitialized warnings. */
|
/* Avoid -W*uninitialized warnings. */
|
||||||
if (DECL_P (decl))
|
if (DECL_P (decl))
|
||||||
TREE_NO_WARNING (decl) = 1;
|
suppress_warning (decl, OPT_Wuninitialized);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
gfc_add_expr_to_block (&block, then_b);
|
gfc_add_expr_to_block (&block, then_b);
|
||||||
|
@ -970,7 +970,7 @@ gfc_omp_clause_copy_ctor (tree clause, tree dest, tree src)
|
||||||
void_type_node, cond, then_b, else_b));
|
void_type_node, cond, then_b, else_b));
|
||||||
/* Avoid -W*uninitialized warnings. */
|
/* Avoid -W*uninitialized warnings. */
|
||||||
if (DECL_P (dest))
|
if (DECL_P (dest))
|
||||||
TREE_NO_WARNING (dest) = 1;
|
suppress_warning (dest, OPT_Wuninitialized);
|
||||||
|
|
||||||
return gfc_finish_block (&block);
|
return gfc_finish_block (&block);
|
||||||
}
|
}
|
||||||
|
|
|
@ -150,23 +150,23 @@ tree get_dtype_type_node (void)
|
||||||
field = gfc_add_field_to_struct_1 (dtype_node,
|
field = gfc_add_field_to_struct_1 (dtype_node,
|
||||||
get_identifier ("elem_len"),
|
get_identifier ("elem_len"),
|
||||||
size_type_node, &dtype_chain);
|
size_type_node, &dtype_chain);
|
||||||
TREE_NO_WARNING (field) = 1;
|
suppress_warning (field);
|
||||||
field = gfc_add_field_to_struct_1 (dtype_node,
|
field = gfc_add_field_to_struct_1 (dtype_node,
|
||||||
get_identifier ("version"),
|
get_identifier ("version"),
|
||||||
integer_type_node, &dtype_chain);
|
integer_type_node, &dtype_chain);
|
||||||
TREE_NO_WARNING (field) = 1;
|
suppress_warning (field);
|
||||||
field = gfc_add_field_to_struct_1 (dtype_node,
|
field = gfc_add_field_to_struct_1 (dtype_node,
|
||||||
get_identifier ("rank"),
|
get_identifier ("rank"),
|
||||||
signed_char_type_node, &dtype_chain);
|
signed_char_type_node, &dtype_chain);
|
||||||
TREE_NO_WARNING (field) = 1;
|
suppress_warning (field);
|
||||||
field = gfc_add_field_to_struct_1 (dtype_node,
|
field = gfc_add_field_to_struct_1 (dtype_node,
|
||||||
get_identifier ("type"),
|
get_identifier ("type"),
|
||||||
signed_char_type_node, &dtype_chain);
|
signed_char_type_node, &dtype_chain);
|
||||||
TREE_NO_WARNING (field) = 1;
|
suppress_warning (field);
|
||||||
field = gfc_add_field_to_struct_1 (dtype_node,
|
field = gfc_add_field_to_struct_1 (dtype_node,
|
||||||
get_identifier ("attribute"),
|
get_identifier ("attribute"),
|
||||||
short_integer_type_node, &dtype_chain);
|
short_integer_type_node, &dtype_chain);
|
||||||
TREE_NO_WARNING (field) = 1;
|
suppress_warning (field);
|
||||||
gfc_finish_type (dtype_node);
|
gfc_finish_type (dtype_node);
|
||||||
TYPE_DECL_SUPPRESS_DEBUG (TYPE_STUB_DECL (dtype_node)) = 1;
|
TYPE_DECL_SUPPRESS_DEBUG (TYPE_STUB_DECL (dtype_node)) = 1;
|
||||||
dtype_type_node = dtype_node;
|
dtype_type_node = dtype_node;
|
||||||
|
@ -1453,17 +1453,17 @@ gfc_get_desc_dim_type (void)
|
||||||
decl = gfc_add_field_to_struct_1 (type,
|
decl = gfc_add_field_to_struct_1 (type,
|
||||||
get_identifier ("stride"),
|
get_identifier ("stride"),
|
||||||
gfc_array_index_type, &chain);
|
gfc_array_index_type, &chain);
|
||||||
TREE_NO_WARNING (decl) = 1;
|
suppress_warning (decl);
|
||||||
|
|
||||||
decl = gfc_add_field_to_struct_1 (type,
|
decl = gfc_add_field_to_struct_1 (type,
|
||||||
get_identifier ("lbound"),
|
get_identifier ("lbound"),
|
||||||
gfc_array_index_type, &chain);
|
gfc_array_index_type, &chain);
|
||||||
TREE_NO_WARNING (decl) = 1;
|
suppress_warning (decl);
|
||||||
|
|
||||||
decl = gfc_add_field_to_struct_1 (type,
|
decl = gfc_add_field_to_struct_1 (type,
|
||||||
get_identifier ("ubound"),
|
get_identifier ("ubound"),
|
||||||
gfc_array_index_type, &chain);
|
gfc_array_index_type, &chain);
|
||||||
TREE_NO_WARNING (decl) = 1;
|
suppress_warning (decl);
|
||||||
|
|
||||||
/* Finish off the type. */
|
/* Finish off the type. */
|
||||||
gfc_finish_type (type);
|
gfc_finish_type (type);
|
||||||
|
@ -1853,19 +1853,19 @@ gfc_get_array_descriptor_base (int dimen, int codimen, bool restricted)
|
||||||
decl = gfc_add_field_to_struct_1 (fat_type,
|
decl = gfc_add_field_to_struct_1 (fat_type,
|
||||||
get_identifier ("offset"),
|
get_identifier ("offset"),
|
||||||
gfc_array_index_type, &chain);
|
gfc_array_index_type, &chain);
|
||||||
TREE_NO_WARNING (decl) = 1;
|
suppress_warning (decl);
|
||||||
|
|
||||||
/* Add the dtype component. */
|
/* Add the dtype component. */
|
||||||
decl = gfc_add_field_to_struct_1 (fat_type,
|
decl = gfc_add_field_to_struct_1 (fat_type,
|
||||||
get_identifier ("dtype"),
|
get_identifier ("dtype"),
|
||||||
get_dtype_type_node (), &chain);
|
get_dtype_type_node (), &chain);
|
||||||
TREE_NO_WARNING (decl) = 1;
|
suppress_warning (decl);
|
||||||
|
|
||||||
/* Add the span component. */
|
/* Add the span component. */
|
||||||
decl = gfc_add_field_to_struct_1 (fat_type,
|
decl = gfc_add_field_to_struct_1 (fat_type,
|
||||||
get_identifier ("span"),
|
get_identifier ("span"),
|
||||||
gfc_array_index_type, &chain);
|
gfc_array_index_type, &chain);
|
||||||
TREE_NO_WARNING (decl) = 1;
|
suppress_warning (decl);
|
||||||
|
|
||||||
/* Build the array type for the stride and bound components. */
|
/* Build the array type for the stride and bound components. */
|
||||||
if (dimen + codimen > 0)
|
if (dimen + codimen > 0)
|
||||||
|
@ -1878,7 +1878,7 @@ gfc_get_array_descriptor_base (int dimen, int codimen, bool restricted)
|
||||||
|
|
||||||
decl = gfc_add_field_to_struct_1 (fat_type, get_identifier ("dim"),
|
decl = gfc_add_field_to_struct_1 (fat_type, get_identifier ("dim"),
|
||||||
arraytype, &chain);
|
arraytype, &chain);
|
||||||
TREE_NO_WARNING (decl) = 1;
|
suppress_warning (decl);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flag_coarray == GFC_FCOARRAY_LIB)
|
if (flag_coarray == GFC_FCOARRAY_LIB)
|
||||||
|
@ -1886,7 +1886,7 @@ gfc_get_array_descriptor_base (int dimen, int codimen, bool restricted)
|
||||||
decl = gfc_add_field_to_struct_1 (fat_type,
|
decl = gfc_add_field_to_struct_1 (fat_type,
|
||||||
get_identifier ("token"),
|
get_identifier ("token"),
|
||||||
prvoid_type_node, &chain);
|
prvoid_type_node, &chain);
|
||||||
TREE_NO_WARNING (decl) = 1;
|
suppress_warning (decl);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Finish off the type. */
|
/* Finish off the type. */
|
||||||
|
@ -2882,7 +2882,7 @@ copy_derived_types:
|
||||||
token = gfc_find_component (derived, caf_name, true, true, NULL);
|
token = gfc_find_component (derived, caf_name, true, true, NULL);
|
||||||
gcc_assert (token);
|
gcc_assert (token);
|
||||||
c->caf_token = token->backend_decl;
|
c->caf_token = token->backend_decl;
|
||||||
TREE_NO_WARNING (c->caf_token) = 1;
|
suppress_warning (c->caf_token);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -3547,11 +3547,11 @@ gfc_get_caf_vector_type (int dim)
|
||||||
tmp = gfc_add_field_to_struct_1 (vect_struct_type,
|
tmp = gfc_add_field_to_struct_1 (vect_struct_type,
|
||||||
get_identifier ("vector"),
|
get_identifier ("vector"),
|
||||||
pvoid_type_node, &chain);
|
pvoid_type_node, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (vect_struct_type,
|
tmp = gfc_add_field_to_struct_1 (vect_struct_type,
|
||||||
get_identifier ("kind"),
|
get_identifier ("kind"),
|
||||||
integer_type_node, &chain);
|
integer_type_node, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
gfc_finish_type (vect_struct_type);
|
gfc_finish_type (vect_struct_type);
|
||||||
|
|
||||||
chain = 0;
|
chain = 0;
|
||||||
|
@ -3559,34 +3559,34 @@ gfc_get_caf_vector_type (int dim)
|
||||||
tmp = gfc_add_field_to_struct_1 (triplet_struct_type,
|
tmp = gfc_add_field_to_struct_1 (triplet_struct_type,
|
||||||
get_identifier ("lower_bound"),
|
get_identifier ("lower_bound"),
|
||||||
gfc_array_index_type, &chain);
|
gfc_array_index_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (triplet_struct_type,
|
tmp = gfc_add_field_to_struct_1 (triplet_struct_type,
|
||||||
get_identifier ("upper_bound"),
|
get_identifier ("upper_bound"),
|
||||||
gfc_array_index_type, &chain);
|
gfc_array_index_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (triplet_struct_type, get_identifier ("stride"),
|
tmp = gfc_add_field_to_struct_1 (triplet_struct_type, get_identifier ("stride"),
|
||||||
gfc_array_index_type, &chain);
|
gfc_array_index_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
gfc_finish_type (triplet_struct_type);
|
gfc_finish_type (triplet_struct_type);
|
||||||
|
|
||||||
chain = 0;
|
chain = 0;
|
||||||
union_type = make_node (UNION_TYPE);
|
union_type = make_node (UNION_TYPE);
|
||||||
tmp = gfc_add_field_to_struct_1 (union_type, get_identifier ("v"),
|
tmp = gfc_add_field_to_struct_1 (union_type, get_identifier ("v"),
|
||||||
vect_struct_type, &chain);
|
vect_struct_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (union_type, get_identifier ("triplet"),
|
tmp = gfc_add_field_to_struct_1 (union_type, get_identifier ("triplet"),
|
||||||
triplet_struct_type, &chain);
|
triplet_struct_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
gfc_finish_type (union_type);
|
gfc_finish_type (union_type);
|
||||||
|
|
||||||
chain = 0;
|
chain = 0;
|
||||||
vec_type = make_node (RECORD_TYPE);
|
vec_type = make_node (RECORD_TYPE);
|
||||||
tmp = gfc_add_field_to_struct_1 (vec_type, get_identifier ("nvec"),
|
tmp = gfc_add_field_to_struct_1 (vec_type, get_identifier ("nvec"),
|
||||||
size_type_node, &chain);
|
size_type_node, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (vec_type, get_identifier ("u"),
|
tmp = gfc_add_field_to_struct_1 (vec_type, get_identifier ("u"),
|
||||||
union_type, &chain);
|
union_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
gfc_finish_type (vec_type);
|
gfc_finish_type (vec_type);
|
||||||
TYPE_NAME (vec_type) = get_identifier ("caf_vector_t");
|
TYPE_NAME (vec_type) = get_identifier ("caf_vector_t");
|
||||||
}
|
}
|
||||||
|
@ -3613,11 +3613,11 @@ gfc_get_caf_reference_type ()
|
||||||
tmp = gfc_add_field_to_struct_1 (c_struct_type,
|
tmp = gfc_add_field_to_struct_1 (c_struct_type,
|
||||||
get_identifier ("offset"),
|
get_identifier ("offset"),
|
||||||
gfc_array_index_type, &chain);
|
gfc_array_index_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (c_struct_type,
|
tmp = gfc_add_field_to_struct_1 (c_struct_type,
|
||||||
get_identifier ("caf_token_offset"),
|
get_identifier ("caf_token_offset"),
|
||||||
gfc_array_index_type, &chain);
|
gfc_array_index_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
gfc_finish_type (c_struct_type);
|
gfc_finish_type (c_struct_type);
|
||||||
|
|
||||||
chain = 0;
|
chain = 0;
|
||||||
|
@ -3625,15 +3625,15 @@ gfc_get_caf_reference_type ()
|
||||||
tmp = gfc_add_field_to_struct_1 (s_struct_type,
|
tmp = gfc_add_field_to_struct_1 (s_struct_type,
|
||||||
get_identifier ("start"),
|
get_identifier ("start"),
|
||||||
gfc_array_index_type, &chain);
|
gfc_array_index_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (s_struct_type,
|
tmp = gfc_add_field_to_struct_1 (s_struct_type,
|
||||||
get_identifier ("end"),
|
get_identifier ("end"),
|
||||||
gfc_array_index_type, &chain);
|
gfc_array_index_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (s_struct_type,
|
tmp = gfc_add_field_to_struct_1 (s_struct_type,
|
||||||
get_identifier ("stride"),
|
get_identifier ("stride"),
|
||||||
gfc_array_index_type, &chain);
|
gfc_array_index_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
gfc_finish_type (s_struct_type);
|
gfc_finish_type (s_struct_type);
|
||||||
|
|
||||||
chain = 0;
|
chain = 0;
|
||||||
|
@ -3641,25 +3641,25 @@ gfc_get_caf_reference_type ()
|
||||||
tmp = gfc_add_field_to_struct_1 (v_struct_type,
|
tmp = gfc_add_field_to_struct_1 (v_struct_type,
|
||||||
get_identifier ("vector"),
|
get_identifier ("vector"),
|
||||||
pvoid_type_node, &chain);
|
pvoid_type_node, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (v_struct_type,
|
tmp = gfc_add_field_to_struct_1 (v_struct_type,
|
||||||
get_identifier ("nvec"),
|
get_identifier ("nvec"),
|
||||||
size_type_node, &chain);
|
size_type_node, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (v_struct_type,
|
tmp = gfc_add_field_to_struct_1 (v_struct_type,
|
||||||
get_identifier ("kind"),
|
get_identifier ("kind"),
|
||||||
integer_type_node, &chain);
|
integer_type_node, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
gfc_finish_type (v_struct_type);
|
gfc_finish_type (v_struct_type);
|
||||||
|
|
||||||
chain = 0;
|
chain = 0;
|
||||||
union_type = make_node (UNION_TYPE);
|
union_type = make_node (UNION_TYPE);
|
||||||
tmp = gfc_add_field_to_struct_1 (union_type, get_identifier ("s"),
|
tmp = gfc_add_field_to_struct_1 (union_type, get_identifier ("s"),
|
||||||
s_struct_type, &chain);
|
s_struct_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (union_type, get_identifier ("v"),
|
tmp = gfc_add_field_to_struct_1 (union_type, get_identifier ("v"),
|
||||||
v_struct_type, &chain);
|
v_struct_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
gfc_finish_type (union_type);
|
gfc_finish_type (union_type);
|
||||||
|
|
||||||
tmp = build_range_type (gfc_array_index_type, gfc_index_zero_node,
|
tmp = build_range_type (gfc_array_index_type, gfc_index_zero_node,
|
||||||
|
@ -3674,40 +3674,40 @@ gfc_get_caf_reference_type ()
|
||||||
gfc_index_zero_node,
|
gfc_index_zero_node,
|
||||||
gfc_rank_cst[GFC_MAX_DIMENSIONS - 1])),
|
gfc_rank_cst[GFC_MAX_DIMENSIONS - 1])),
|
||||||
&chain);
|
&chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (a_struct_type,
|
tmp = gfc_add_field_to_struct_1 (a_struct_type,
|
||||||
get_identifier ("static_array_type"),
|
get_identifier ("static_array_type"),
|
||||||
integer_type_node, &chain);
|
integer_type_node, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (a_struct_type, get_identifier ("dim"),
|
tmp = gfc_add_field_to_struct_1 (a_struct_type, get_identifier ("dim"),
|
||||||
dim_union_type, &chain);
|
dim_union_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
gfc_finish_type (a_struct_type);
|
gfc_finish_type (a_struct_type);
|
||||||
|
|
||||||
chain = 0;
|
chain = 0;
|
||||||
u_union_type = make_node (UNION_TYPE);
|
u_union_type = make_node (UNION_TYPE);
|
||||||
tmp = gfc_add_field_to_struct_1 (u_union_type, get_identifier ("c"),
|
tmp = gfc_add_field_to_struct_1 (u_union_type, get_identifier ("c"),
|
||||||
c_struct_type, &chain);
|
c_struct_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (u_union_type, get_identifier ("a"),
|
tmp = gfc_add_field_to_struct_1 (u_union_type, get_identifier ("a"),
|
||||||
a_struct_type, &chain);
|
a_struct_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
gfc_finish_type (u_union_type);
|
gfc_finish_type (u_union_type);
|
||||||
|
|
||||||
chain = 0;
|
chain = 0;
|
||||||
reference_type = make_node (RECORD_TYPE);
|
reference_type = make_node (RECORD_TYPE);
|
||||||
tmp = gfc_add_field_to_struct_1 (reference_type, get_identifier ("next"),
|
tmp = gfc_add_field_to_struct_1 (reference_type, get_identifier ("next"),
|
||||||
build_pointer_type (reference_type), &chain);
|
build_pointer_type (reference_type), &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (reference_type, get_identifier ("type"),
|
tmp = gfc_add_field_to_struct_1 (reference_type, get_identifier ("type"),
|
||||||
integer_type_node, &chain);
|
integer_type_node, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (reference_type, get_identifier ("item_size"),
|
tmp = gfc_add_field_to_struct_1 (reference_type, get_identifier ("item_size"),
|
||||||
size_type_node, &chain);
|
size_type_node, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
tmp = gfc_add_field_to_struct_1 (reference_type, get_identifier ("u"),
|
tmp = gfc_add_field_to_struct_1 (reference_type, get_identifier ("u"),
|
||||||
u_union_type, &chain);
|
u_union_type, &chain);
|
||||||
TREE_NO_WARNING (tmp) = 1;
|
suppress_warning (tmp);
|
||||||
gfc_finish_type (reference_type);
|
gfc_finish_type (reference_type);
|
||||||
TYPE_NAME (reference_type) = get_identifier ("caf_reference_t");
|
TYPE_NAME (reference_type) = get_identifier ("caf_reference_t");
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,7 @@ gfc_create_var_np (tree type, const char *prefix)
|
||||||
|
|
||||||
/* No warnings for anonymous variables. */
|
/* No warnings for anonymous variables. */
|
||||||
if (prefix == NULL)
|
if (prefix == NULL)
|
||||||
TREE_NO_WARNING (t) = 1;
|
suppress_warning (t);
|
||||||
|
|
||||||
return t;
|
return t;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue