Commit 61e215dd by Richard Stallman

(process_init_element): Treat string constants specially

only for arrays of integers.

From-SVN: r5048
parent 97093cca
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment