[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Bug target/11052] [3.3 regression] [arm] noce_process_if_block() can loose REG_INC notes



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

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



------- Additional Comments From rearnsha@arm.com  2003-06-06 17:23 -------
Subject: Re:  [3.3 regression] [arm] ICE (segfault) 
 compiling xfree86

> On Tue, Jun 03, 2003 at 05:52:16PM +0100, Richard Earnshaw wrote:
> > Is it guaranteed that noce_emit_move_insn will emit exactly one insn?
> 
> No.
> 
> 

In that case, and given that on further review of the source it becomes 
apparent that two of the three variants handled by noce_process_if_block 
lead to invalid code if X has side effects, I think it's easier to just 
disable this optimization for that case.

So fixed with:


2003-06-06  Richard Earnshaw  <rearnsha@arm.com>

	PR target/11052
	* ifcvt.c (noce_process_if_block): Fail if the destination has
	side-effects.

2003-06-06  Richard Earnshaw  <rearnsha@arm.com>

	gcc.c-torture/execute/20030606-1.c: New.



------- Additional Comments From rearnsha@arm.com  2003-06-06 17:23 -------
Created an attachment (id=4183)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=4183&action=view)




------- You are receiving this mail because: -------
You reported the bug, or are watching the reporter.



Reply to: