This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/26272] [4.2 Regression] gcc.c-torture/execute/built-in-setjmp.c fails at -O2 and above on powerpc-darwin
- 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: 14 Feb 2006 00:37:33 -0000
- Subject: [Bug rtl-optimization/26272] [4.2 Regression] gcc.c-torture/execute/built-in-setjmp.c fails at -O2 and above on powerpc-darwin
- References: <bug-26272-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-02-14 00:37 -------
I am going to test the following patch (but I would like to know if this is the
correct approach):
Index: config/rs6000/darwin.md
===================================================================
--- config/rs6000/darwin.md (revision 110948)
+++ config/rs6000/darwin.md (working copy)
@@ -254,8 +254,8 @@ Boston, MA 02110-1301, USA. */
(define_insn "load_macho_picbase_si"
[(set (match_operand:SI 0 "register_operand" "=l")
- (unspec:SI [(match_operand:SI 1 "immediate_operand" "s")]
- UNSPEC_LD_MPIC))]
+ (unspec:SI [(match_operand:SI 1 "immediate_operand" "s")
+ (pc)] UNSPEC_LD_MPIC))]
"(DEFAULT_ABI == ABI_DARWIN) && flag_pic"
"bcl 20,31,%1\\n%1:"
[(set_attr "type" "branch")
@@ -263,7 +263,8 @@ Boston, MA 02110-1301, USA. */
(define_insn "load_macho_picbase_di"
[(set (match_operand:DI 0 "register_operand" "=l")
- (unspec:DI [(match_operand:DI 1 "immediate_operand" "s")]
UNSPEC_LD_MPIC))]
+ (unspec:DI [(match_operand:DI 1 "immediate_operand" "s")
+ (pc)] UNSPEC_LD_MPIC))]
"(DEFAULT_ABI == ABI_DARWIN) && flag_pic && TARGET_64BIT"
"bcl 20,31,%1\\n%1:"
[(set_attr "type" "branch")
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26272