[C++ PATCH] Rewrite convert_nontype_argument

Andrew Pinski pinskia@physics.uc.edu
Wed Jul 21 15:50:00 GMT 2004


On Jul 20, 2004, at 6:55 PM, Roger Sayle wrote:

>
> On Tue, 20 Jul 2004, Andrew Pinski wrote:
>> Well it also used for IMA reasons so it cannot be removed after fixing
>> the C++ front-end.
>
> Could you explain why in a bit more detail?  I'm not happy that
> we're now "stuck" with this performance degrading work-around for
> reasons that weren't made explicit when the patch was proposed.


With IMA we have compatible structs which do not set the 
TYPE_MAIN_VARIANT
to one other because of they are not variants to one another until after
the front-end is finished with them.

What could be done is a pass which takes the compatible structs and 
make them
one type thus being able to remove the language hook.

Thanks,
Andrew Pinski



More information about the Gcc-patches mailing list