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: Fix delete_null_pointer_checks


On Wed, Feb 25, 2004 at 01:40:43PM +1030, Alan Modra wrote:
> 	* gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
> 	unless HAVE_cc0.
> 
> Index: gcc/gcse.c
> ===================================================================
> RCS file: /cvs/gcc/gcc/gcc/gcse.c,v
> retrieving revision 1.292
> diff -u -p -r1.292 gcse.c
> --- gcc/gcse.c	24 Feb 2004 10:34:22 -0000	1.292
> +++ gcc/gcse.c	25 Feb 2004 03:10:09 -0000
> @@ -6069,8 +6069,10 @@ delete_null_pointer_checks_1 (unsigned i
>  
>        something_changed = 1;
>        delete_insn (last_insn);
> +#ifdef HAVE_cc0
>        if (compare_and_branch == 2)
>  	delete_insn (earliest);
> +#endif
>        purge_dead_edges (bb);
>  
>        /* Don't check this block again.  (Note that BB_END is

Applied mainline and 3.4 on rth's OK via irc.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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