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] (updated/ping) Fold (T *)&T.x... (aka upcasting)


2005-07-19 Richard Guenther <rguenther@suse.de>

        PR tree-optimization/22486
        * fold-const.c (fold_unary): Fold away useless component
        references of the form (T *)&T.x, if the address
        doesn't change.  Common result of upcasting in C++.

* gcc.dg/tree-ssa/upcast-1.c: New testcase.

This is OK (although you don't need that last sentence in the ChangeLog entry for fold_unary).


:REVIEWMAIL:

Attachment: smime.p7s
Description: S/MIME cryptographic signature


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