This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/26687] gcc -O1 -fno-pic generates bad code that references uninitialized r31
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2006 12:33:49 -0000
- Subject: [Bug target/26687] gcc -O1 -fno-pic generates bad code that references uninitialized r31
- References: <bug-26687-12349@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-03-15 12:33 -------
This comes from the following pattern:
(define_insn "movdf_low_si"
[(set (match_operand:DF 0 "gpc_reg_operand" "=f,!r")
(mem:DF (lo_sum:SI (match_operand:SI 1 "gpc_reg_operand" "b,b")
(match_operand 2 "" ""))))]
"TARGET_MACHO && TARGET_HARD_FLOAT && TARGET_FPRS && !TARGET_64BIT"
But this has been fixed in 4.1.0 by:
2005-10-08 Andrew Pinski <pinskia@physics.uc.edu>
PR target/24136
* config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
Rewrite for no need for the early clobber.
2005-09-13 Andrew Pinski <pinskia@physics.uc.edu>
* config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r
constraint
as early clobber. Rewrite so the PIC register is not implicitly used.
I rewrote this part so that there was no need for the PIC register.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |normal
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26687