(process_init_element): Treat string constants specially
only for arrays of integers. From-SVN: r5048
This commit is contained in:
parent
97093ccaa2
commit
61e215dd1f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue