[Bug optimization/11662] [3.3 regression][SPARC] -O1: wrong code for expr. with cast to long long and exclusive or

ehrhardt at mathematik dot uni-ulm dot de gcc-bugzilla@gcc.gnu.org
Fri Jul 25 16:36:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11662



------- Additional Comments From ehrhardt at mathematik dot uni-ulm dot de  2003-07-25 16:36 -------
This is a combine bug where CLOBBER expressions, that are meant to
make the combine attempt fail are folded and treated as zero.

It got fixed in 3.4 by this hunk:

2003-07-10  Denis Chertykov  <denisc@overta.ru>
            Richard Kenner <kenner@vlsi1.ultra.nyu.edu>

        * combine.c (gen_binary): Handle the CLOBBER rtx and
        don't build a binary operation with it.

I'll add the relevant backported hunk as a proposed patch. But it'll
take some time to get it bootstrapped and regresison tested.

    regards  Christian



More information about the Gcc-bugs mailing list