[Bug middle-end/30807] sh postreload bug (might be generic in trunk)

christian dot bruel at st dot com gcc-bugzilla@gcc.gnu.org
Fri Feb 16 07:04:00 GMT 2007



------- Comment #3 from christian dot bruel at st dot com  2007-02-16 07:04 -------
Created an attachment (id=13053)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=13053&action=view)
Add testcase.

compile with sh-superh-elf-gcc (3.4.3) -O2 sh_postreload_bug.c -S -da
at line 28 of sh_postreload_bug.s mov.l @(r0,r2),r1 uses an unitialized r2.

in sh_postreload_bug.c.26.postreload line 47 r1 was replaced by r2 by
postreload_combine. 

is it generic and not target specific ?

see patch and other attachements for proposed analysis and fix.


-- 


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



More information about the Gcc-bugs mailing list