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


> Again, my question is: what behavior do we expect from this code?
> Given the quoted code
>
>     ADDR_EXPR
>       COMPONENT_REF
>         VIEW_CONVERT_EXPR <record_type1 ... align-ok>
>           INDIRECT_REF <record_type2>
>             VAR_DECL <pointer_type <record_type2>>
>
> where the VIEW_CONVERT_EXPR is increasing the alignment, either
> 1) we know that the pointer already has the proper alignment, or
> 2) the pointer might not have the proper alignment, so we might need to
>    copy into a record_type1 temporary with the appropriate alignment.

Jason, may I apply my initial patch?  The problem is the last show stopper for 
Ada on the SPARC (and presumably on the PA too) and I get ACATS results on 
par with other platforms with it (27 failures on sparc-sun-solaris2.8).

I can add a ??? comment explaining the discrepancy between get_inner_reference 
and handled_component_p if you wish.

-- 
Eric Botcazou


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