This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A question about ARG_FINAL_P in the Java frontend.
- From: Per Bothner <per at bothner dot com>
- To: Kazu Hirata <kazu at codesourcery dot com>
- Cc: gcc at gcc dot gnu dot org, aph at redhat dot com, tromey at redhat dot com, mark at codesourcery dot com
- Date: Mon, 31 Jul 2006 10:47:22 -0700
- Subject: Re: A question about ARG_FINAL_P in the Java frontend.
- References: <200607311543.k6VFhOiB020811@sparrowhawk.codesourcery.com>
I just noticed that the Java frontend has ARG_FINAL_P, which uses a
bit in the TREE_LIST node that is pointed to from TYPE_ARG_TYPES.
It's only used in the Java source front-end, which is going away.
We could figure out an alternative, but I'm not sure it's worthwhile.
As a stop-gap, you could probably just remove setting and testing
the flag. That may introduce some regressions in terms of not
catching some errors.
A cleaner fix may be to create the PARAM_DECL at parse time, and set
the final flag on the decl, but that's a bigger change not worth
doing at this point.
--
--Per Bothner
per@bothner.com http://per.bothner.com/