This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR middle-end/17746
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: gcc-patches at gcc dot gnu dot org
- Cc: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- Date: Tue, 26 Oct 2004 20:03:32 +0200
- Subject: Re: [PATCH] Fix PR middle-end/17746
- References: <10410261324.AA19558@vlsi1.ultra.nyu.edu>
> Perhaps, but I don't rememember that and it's a kludge if so. If the
> VIEW_CONVERT_EXPR is the outermost operation, we may need to "step
> things up", but that doesn't use get_inner_reference. If it's in the
> middle of a reference chain, I'm not convinced that anything has to be
> done, but if it does, then somebody else ought to do it. Admittedly,
> this is a complex case.
Note your latest comment:
"Ed and I worked on this and it turns out that because of the tagged
?types, the alignment is OK and the appropriate flags were set. ?But
?because of the use of a component of the type, they were ignored. ?I
?have a fix for it."
Doesn't this mean the problem was precisely that TYPE_ALIGN_OK was not acted
upon in the middle of a reference chain like:
COMPONENT_REF
VIEW_CONVERT_EXPR <align-ok>
INDIRECT_REF
...
--
Eric Botcazou