diff options
author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-01 21:25:15 +0000 |
---|---|---|
committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-01 21:25:15 +0000 |
commit | 73242672e877fad79873cf3e764dc4e8771870bb (patch) | |
tree | ed944aa62023941006f92af1582be1c26ecce946 /gcc/regset.h | |
parent | 970b2c22a884383459d455b8614222caa320c7d6 (diff) | |
download | gcc-73242672e877fad79873cf3e764dc4e8771870bb.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187027 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regset.h')
0 files changed, 0 insertions, 0 deletions