This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/14279] delete_null_pointer_checks removes live insn
- From: "amodra at bigpond dot net dot au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Feb 2004 03:35:22 -0000
- Subject: [Bug optimization/14279] delete_null_pointer_checks removes live insn
- References: <20040224222531.14279.amodra@bigpond.net.au>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From amodra at bigpond dot net dot au 2004-02-26 03:35 -------
I forgot the PR number on the changelog. Fixed mainline with
Log message:
* gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
unless HAVE_cc0.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.2931&r2=2.2932
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcse.c.diff?cvsroot=gcc&r1=1.292&r2=1.293
Fixed gcc-3.4 with
Log message:
* gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
beginning of block. Do not delete CC setter unless HAVE_cc0.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.257&r2=2.2326.2.258
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/gcse.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.288.2.2&r2=1.288.2.3
--
What |Removed |Added
----------------------------------------------------------------------------
Known to fail|3.3.3 3.4.0 3.5.0 |3.3.3
Known to work| |3.4.0 3.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14279