mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-15 22:21:20 +08:00
* c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
From-SVN: r55646
This commit is contained in:
parent
cf3c4f5609
commit
e96eb21529
@ -1,3 +1,7 @@
|
||||
2002-07-22 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
|
||||
|
||||
2002-07-22 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* c-decl.c (build_compound_literal): Defer compound literal decls
|
||||
|
@ -3647,6 +3647,7 @@ build_compound_literal (type, init)
|
||||
DECL_CONTEXT (decl) = current_function_decl;
|
||||
TREE_USED (decl) = 1;
|
||||
TREE_TYPE (decl) = type;
|
||||
TREE_READONLY (decl) = TREE_READONLY (type);
|
||||
store_init_value (decl, init);
|
||||
|
||||
if (TREE_CODE (type) == ARRAY_TYPE && !COMPLETE_TYPE_P (type))
|
||||
|
Loading…
x
Reference in New Issue
Block a user