This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: stab info for const fields
- From: Dale Johannesen <dalej at apple dot com>
- To: Mark Mitchell <mark at codesourcery dot com>
- Cc: Dale Johannesen <dalej at apple dot com>, "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 31 Oct 2002 09:41:50 -0800
- Subject: Re: Patch: stab info for const fields
On Wednesday, October 30, 2002, at 09:58 PM, Mark Mitchell wrote:
--On Wednesday, October 30, 2002 03:16:10 PM -0800 Dale Johannesen
<dalej@apple.com> wrote:
For fields of the form
struct s {
char *const p;
}
the C FE sets the READONLY bit on the FIELD_DECL node, not
on its type.
Yes, and that's what's wrong. :-)
The right fix is to change that behavior in the C front end the same
way that I changed the C++ front end a couple of years ago.
How much of a can of worms is doing it this way?