This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR middle-end/17746


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]