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 tree-optimization/21407


On May 10, 2005, at 8:51 PM, Daniel Berlin wrote:
However, since I can't see it as in any way useful

I'd like to think google ("upcast") or google ("up-cast") could convince you...


Generally frowned upon, but handy some of the time. Maybe C needs an up_cast() operator? :-) Given that, and requiring it, would allow the optimizer to do what it does best, almost all the time, and the 2 lines per million that need up_cast, could use it.

Also, it would seem to me that Ada and Java probably have upcast, and that the back end has to work for them too... I just don't know if they would trip over it.


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