OSDN Git Service

* c-decl.c (build_compound_literal): Use TYPE_READONLY.
[pf3gnuchains/gcc-fork.git] / gcc / c-decl.c
index 871592a..de96be3 100644 (file)
@@ -3089,7 +3089,7 @@ build_compound_literal (tree type, tree init)
   DECL_CONTEXT (decl) = current_function_decl;
   TREE_USED (decl) = 1;
   TREE_TYPE (decl) = type;
-  TREE_READONLY (decl) = TREE_READONLY (type);
+  TREE_READONLY (decl) = TYPE_READONLY (type);
   store_init_value (decl, init);
 
   if (TREE_CODE (type) == ARRAY_TYPE && !COMPLETE_TYPE_P (type))