This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] Fix PR middle-end/17746
> Again, my question is: what behavior do we expect from this code?
> Given the quoted code
> 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.