Lines Matching defs:size

198    completed at an inner scope to an array size other than 1.
1706 /* Since the type is OLDDECL's, make OLDDECL's size go with. */
2265 diagnosed if the completion does not have size 1 and
3181 element initializes a flexible array field, add the size of that
3182 initializer to DECL's size. */
3339 /* This can happen if the array size is an undefined macro.
3345 /* A complete type is ok if size is fixed. */
3718 int size = TREE_INT_CST_LOW (TYPE_SIZE_UNIT (block_byref_type));
3741 initlist = tree_cons (fields, build_int_cst (TREE_TYPE (fields), size),
3881 /* Deduce size of array from initialization, if not already known. */
3902 error ("initializer fails to determine size of %q+D", decl);
3907 error ("array size missing in %q+D", decl);
3908 /* If a `static' var's size isn't known,
3912 finish_incomplete_decl will give it a default size
3919 error ("zero or negative size array %q+D", decl);
3974 error ("storage size of %q+D isn%'t known", decl);
3984 error ("storage size of %q+D isn%'t constant", decl);
4370 warn_variable_length_array (const char *name, tree size)
4373 int const_size = TREE_CONSTANT (size);
4380 pedwarn ("ISO C90 forbids array %qs whose size "
4384 pedwarn ("ISO C90 forbids array whose size "
4402 "the size of array %qs can"
4406 "the size of array can %'t be evaluated");
4752 tree size = declarator->u.array.dimen;
4780 if (size == error_mark_node)
4786 /* If size was specified, set ITYPE to a range-type for
4787 that size. Otherwise, ITYPE remains null. finish_decl
4790 if (size)
4794 STRIP_TYPE_NOPS (size);
4796 if (!INTEGRAL_TYPE_P (TREE_TYPE (size)))
4798 error ("size of array %qs has non-integer type", name);
4799 size = integer_one_node;
4802 if (pedantic && integer_zerop (size))
4803 pedwarn ("ISO C forbids zero-size array %qs", name);
4805 if (TREE_CODE (size) == INTEGER_CST)
4807 constant_expression_warning (size);
4808 if (tree_int_cst_sgn (size) < 0)
4810 error ("size of array %qs is negative", name);
4811 size = integer_one_node;
4818 size = integer_one_node;
4822 /* Make sure the array size remains visibly
4826 warn_variable_length_array (orig_name, size);
4831 if (integer_zerop (size))
4837 itype = build_range_type (sizetype, size, NULL_TREE);
4845 size = variable_size (size);
4847 /* Compute the maximum valid index, that is, size
4852 convert (index_type, size),
4857 While a size of INT_MAX+1 technically shouldn't
4866 error ("size of array %qs is too large", name);
4932 variable size, so the enclosing shared array type
4934 if (size && TREE_CODE (size) == INTEGER_CST)
4943 if (size && integer_zerop (size))
5059 /* When the pointed-to type involves components of variable size,
5060 care must be taken to ensure that the size evaluation code is
5077 with side effects on the pointed-to type size "arguments" prior
5079 enclosing context would force the size evaluation prior to the
5138 /* Did array size calculations overflow? */
5145 error ("size of array %qs is too large", name);
6152 /* Any field of nominal variable size implies structure is too. */
6326 parsing parameters, then arrange for the size of a variable sized type
6467 need to do this irrespective of the size of the enum, for
7265 call expand_expr to calculate the size of a variable-sized array.