diff options
author | Ian Lance Taylor <iant@google.com> | 2012-05-01 21:25:15 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2012-05-01 21:25:15 +0000 |
commit | a845a7f5aa73f695fd44fac430bf4ac684515173 (patch) | |
tree | ed944aa62023941006f92af1582be1c26ecce946 /gcc/omp-low.c | |
parent | b7a9facb2c4308b738b0785a291ae31f02d30b76 (diff) | |
download | gcc-a845a7f5aa73f695fd44fac430bf4ac684515173.zip gcc-a845a7f5aa73f695fd44fac430bf4ac684515173.tar.gz gcc-a845a7f5aa73f695fd44fac430bf4ac684515173.tar.bz2 |
re PR c/37303 (const compound initializers in structs are written to .data instead of .rodata)
gcc/:
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:
PR c/37303
* gcc.dg/pr37303.c: New test.
From-SVN: r187027
Diffstat (limited to 'gcc/omp-low.c')
0 files changed, 0 insertions, 0 deletions