(process_init_element): Treat string constants specially

only for arrays of integers.

From-SVN: r5048
This commit is contained in:
Richard Stallman 1993-07-31 20:13:36 +00:00
parent 97093ccaa2
commit 61e215dd1f
1 changed files with 1 additions and 0 deletions

View File

@ -6005,6 +6005,7 @@ process_init_element (value)
char x[] = {"foo"}; */
if (string_flag
&& TREE_CODE (constructor_type) == ARRAY_TYPE
&& TREE_CODE (TREE_TYPE (constructor_type)) == INTEGER_TYPE
&& integer_zerop (constructor_unfilled_index))
{
constructor_stack->replacement_value = value;