This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Two problems with gimplify_init_constructor
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: rth at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 12 Aug 04 12:17:33 EDT
- Subject: Re: Two problems with gimplify_init_constructor
> Should we just do the same thing as for RTL with the corresponding check?
You mean clear TREE_READONLY? Yes.
Actually, I meant suppress the clearing operation in the readonly case.
There are three cases and in only one can we clear TREE_READONLY: when it's
set in a decl. In the other cases (readonly type and a type having readonly
fields), we have to suppress the separate clear. Indeed I'm not even sure
it's worth clearing TREE_READONLY in the case where only it's set.