From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1502 invoked by alias); 5 Nov 2008 10:05:44 -0000 Received: (qmail 312 invoked by uid 48); 5 Nov 2008 10:04:30 -0000 Date: Wed, 05 Nov 2008 10:05:00 -0000 Message-ID: <20081105100430.311.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/37362] [4.4 Regression] Bootstrap broken on mipsisa64r2-linux-gcc In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ubizjak at gmail dot com" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-11/txt/msg00370.txt.bz2 ------- Comment #3 from ubizjak at gmail dot com 2008-11-05 10:04 ------- I guess this issue can be fixed by following (untested) trivial patch: --cut here-- Index: mips.md =================================================================== --- mips.md (revision 141602) +++ mips.md (working copy) @@ -4508,7 +4508,7 @@ rtx low = mips_subword (operands[1], 0); rtx high = mips_subword (operands[1], 1); emit_insn (gen_load_low (operands[0], low)); - if (ISA_HAS_MXHC1) + if (TARGET_HARD_FLOAT && ISA_HAS_MXHC1) emit_insn (gen_mthc1 (operands[0], high, operands[0])); else emit_insn (gen_load_high (operands[0], high, operands[0])); @@ -4518,7 +4518,7 @@ rtx low = mips_subword (operands[0], 0); rtx high = mips_subword (operands[0], 1); emit_insn (gen_store_word (low, operands[1], const0_rtx)); - if (ISA_HAS_MXHC1) + if (TARGET_HARD_FLOAT && ISA_HAS_MXHC1) emit_insn (gen_mfhc1 (high, operands[1])); else emit_insn (gen_store_word (high, operands[1], const1_rtx)); --cut here-- Nebu, can you bootstrap and regression test this patch on your target? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37362