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]

[PATCH] Fix PR30137, folding of addresses of components


This enables us to fold a == &a.c and related comparisons that are
handled by get_inner_reference.

Bootstrapped and tested on x86_64-unknown-linux-gnu, will apply to
mainline in a few days if nobody objects.

Richard.


2006-12-31 Richard Guenther <rguenther@suse.de>


       PR middle-end/30137
       * fold-const.c (fold_comparison): Fold comparison of addresses
       of components.

       * testsuite/gcc.dg/pr30137-1.c: New testcase.
       * testsuite/gcc.dg/pr30137-2.c: Likewise.

Attachment: fix-pr30137
Description: Binary data


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