On 05/01/2012 01:05 PM, Ian Lance Taylor wrote:
2012-05-01 Ian Lance Taylor
PR c/37303
* c-decl.c (build_compound_literal): Make the decl readonly if it
an array of a readonly type.
* gimplify.c (gimplify_compound_literal_expr): Add fallback
parameter. C
This patch to the C frontend and the middle-end puts constant compound
initializers in the readonly data section where possible. This is for
PR 37303. Bootstrapped and ran full testsuite on
x86_64-unknown-linux-gnu.
OK for mainline?
Ian
gcc/:
2012-05-01 Ian Lance Taylor
PR c/3730