This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] for PR 18040
On Oct 19, 2004, at 5:35 PM, Richard Henderson wrote:
On Sun, Oct 17, 2004 at 02:04:13PM -0700, Zack Weinberg wrote:
What he's saying is that
<COMPONENT_REF type struct field>
(and all other reference nodes) would implicitly convert FIELD to
TYPE,
if that's not FIELD's intrinsic type. I think this makes a hell of a
lot of sense, personally.
I think this is an exceptionally bad idea.
Is this because you'd rather force the optimizers to deal with the fact
that there is a cast there, than only care if they want to?
Or something else?
And if it's the first solution, than I would assume your preferred
solution to this problem is to make
((cast)var).field gimple, and audit the optimizers to make sure they
aren't going to silently generate bad code in this case?
Or do you have something else in mind?
r~