Put constant compound initializers in .rodata
Richard Henderson
rth@redhat.com
Tue May 1 20:46:00 GMT 2012
On 05/01/2012 01:05 PM, Ian Lance Taylor wrote:
> 2012-05-01 Ian Lance Taylor<iant@google.com>
>
> 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. Change all callers. If the decl is not addressable
> and is not an l-value, make it readonly.
>
> gcc/testsuite/:
>
> 2012-05-01 Ian Lance Taylor<iant@google.com>
>
> PR c/37303
> * gcc.dg/pr37303.c: New test.
>
Ok.
r~
More information about the Gcc-patches
mailing list