This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
64-bit host failures, ms1
- From: Alan Modra <amodra at gmail dot com>
- To: binutils at sourceware dot org
- Date: Mon, 27 Feb 2012 17:28:31 +1030
- Subject: 64-bit host failures, ms1
- Authentication-results: mr.google.com; spf=pass (google.com: domain of amodra@gmail.com designates 10.68.240.135 as permitted sender) smtp.mail=amodra@gmail.com; dkim=pass header.i=amodra@gmail.com
- References: <20120227063137.GB3613@bubble.grove.modra.org>
This one is fairly innocuous, just affecting disassmbly of constants,
but a 64-bit host hits
ms1-elf +FAIL: ms2
cpu/
* mt.opc (print_dollarhex): Trim values to 32 bits.
opcodes/
* mt-dis.c: Regenerate.
Index: cpu/mt.opc
===================================================================
RCS file: /cvs/src/src/cpu/mt.opc,v
retrieving revision 1.5
diff -u -p -r1.5 mt.opc
--- cpu/mt.opc 2 Sep 2009 07:21:03 -0000 1.5
+++ cpu/mt.opc 26 Feb 2012 03:49:25 -0000
@@ -1,5 +1,5 @@
/* Morpho Technologies mRISC opcode support, for GNU Binutils. -*- C -*-
- Copyright 2001, 2007, 2008, 2009 Free Software Foundation, Inc.
+ Copyright 2001, 2007, 2008, 2009, 2012 Free Software Foundation, Inc.
Contributed by Red Hat Inc; developed under contract from
Morpho Technologies.
@@ -447,7 +447,7 @@ print_dollarhex (CGEN_CPU_DESC cd ATTRIB
{
disassemble_info *info = (disassemble_info *) dis_info;
- info->fprintf_func (info->stream, "$%lx", value);
+ info->fprintf_func (info->stream, "$%lx", value & 0xffffffff);
if (0)
print_normal (cd, dis_info, value, attrs, pc, length);
Index: opcodes/mt-dis.c
===================================================================
RCS file: /cvs/src/src/opcodes/mt-dis.c,v
retrieving revision 1.5
diff -u -p -r1.5 mt-dis.c
--- opcodes/mt-dis.c 12 Feb 2010 04:42:28 -0000 1.5
+++ opcodes/mt-dis.c 26 Feb 2012 03:50:09 -0000
@@ -72,7 +72,7 @@ print_dollarhex (CGEN_CPU_DESC cd ATTRIB
{
disassemble_info *info = (disassemble_info *) dis_info;
- info->fprintf_func (info->stream, "$%lx", value);
+ info->fprintf_func (info->stream, "$%lx", value & 0xffffffff);
if (0)
print_normal (cd, dis_info, value, attrs, pc, length);
--
Alan Modra
Australia Development Lab, IBM