------- 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