Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mac68k-current cross build on amd64 breaks



On Sun, 22 Apr 2012, Christos Zoulas wrote:

In article <alpine.NEB.2.02.1204211911080.1466%chris.i8u.org@localhost>,
Hisashi T Fujinaka  <htodd%twofifty.com@localhost> wrote:
Looks like a compiler bug?

#   compile  build/v_txt.o
/usr/cross/mac68k/bin/m68k--netbsdelf-gcc -Os  -std=gnu99  -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-
compare  -Wno-traditional  -Wa,--fatal-warnings -Wreturn-type -Wswitch
-Wshadow -Wcast-qual -Wwrite-strings -Wextra -Wno-unused-parameter
-Wno-sign-compare -Wsign-compare -Wformat=2   -Wno-format-zero-length
-Wno-uninitialized -Werror    --sysroot=/usr/src/obj.ma
c68k/destdir.mac68k -I/usr/src/dist/nvi/include
-I/usr/src/usr.bin/nvi/build -I. -DGTAGS -I/usr/src/dist/nvi/regex
-D__REGEX_PRIVATE
 -DUSE_WIDECHAR  -c    /usr/src/dist/nvi/vi/v_txt.c
--- dependall-external ---
/usr/src/external/gpl3/gcc/dist/libmudflap/mf-hooks1.c: In function
'__mf_wrap_alloca_indirect':
/usr/src/external/gpl3/gcc/dist/libmudflap/mf-hooks1.c:492:1: error:
insn does not satisfy its constraints:
(insn 360 142 68 13
/usr/src/external/gpl3/gcc/dist/libmudflap/mf-impl.h:257 (set (reg/f:SI
6 %d6 [159])
        (const:SI (unspec:SI [
                    (symbol_ref:SI ("__mf_state_1") [flags 0x50]
<var_decl 0x7f7ff7304d20 __mf_state_1>)
                    (const_int 1 [0x1])
                ] 6))) 36 {*movsi_m68k}
(nil))/usr/src/external/gpl3/gcc/dist/libmudflap/mf-hooks1.c:492:1:
internal compiler error: in reload_cse_simplify_operands, at postreloa
d.c:396
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://www.NetBSD.org/Misc/send-pr.html> for instructions.
*** [mf-hooks1.pico] Error code 1
nbmake: stopped in /usr/src/external/gpl3/gcc/lib/libmudflapth

Looks like:
http://gcc.gnu.org/bugzilla/show_bug.cgi?format=multiple&id=43804

Does this fix it?

christos

Index: constraints.md
===================================================================
RCS file: /cvsroot/src/external/gpl3/gcc/dist/gcc/config/m68k/constraints.md,v
retrieving revision 1.1.1.1
diff -u -p -u -r1.1.1.1 constraints.md
--- constraints.md      21 Jun 2011 01:22:28 -0000      1.1.1.1
+++ constraints.md      22 Apr 2012 02:49:14 -0000
@@ -94,7 +94,8 @@
(define_constraint "T"
  "Used for operands that satisfy 's' when -mpcrel is not in effect."
  (and (match_code "symbol_ref,label_ref,const")
-       (match_test "!flag_pic")))
+       (match_test "!TARGET_PCREL")
+       (match_test "!flag_pic || LEGITIMATE_PIC_OPERAND_P (op)")))

(define_memory_constraint "Q"
  "Means address register indirect addressing mode."

That worked!

--
Hisashi T Fujinaka - htodd%twofifty.com@localhost
BSEE(6/86) + BSChem(3/95) + BAEnglish(8/95) + MSCS(8/03) + $2.50 = latte


Home | Main Index | Thread Index | Old Index