This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/30807] sh postreload bug (might be generic in trunk)
- From: "christian dot bruel at st dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Feb 2007 07:04:30 -0000
- Subject: [Bug middle-end/30807] sh postreload bug (might be generic in trunk)
- References: <bug-30807-9958@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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