From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16331 invoked by alias); 4 Apr 2005 08:58:53 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 16124 invoked from network); 4 Apr 2005 08:58:35 -0000 Received: from unknown (HELO topsns.toshiba-tops.co.jp) (202.230.225.5) by sourceware.org with SMTP; 4 Apr 2005 08:58:35 -0000 Received: from inside-ms1.toshiba-tops.co.jp by topsns.toshiba-tops.co.jp via smtpd (for sourceware.org [12.107.209.250]) with SMTP; 4 Apr 2005 08:58:35 UT Received: from topsms.toshiba-tops.co.jp (localhost.localdomain [127.0.0.1]) by localhost.toshiba-tops.co.jp (Postfix) with ESMTP id 039271F23B; Mon, 4 Apr 2005 17:58:34 +0900 (JST) Received: from srd2sd.toshiba-tops.co.jp (gw-chiba7.toshiba-tops.co.jp [172.17.244.27]) by topsms.toshiba-tops.co.jp (Postfix) with ESMTP id E3195183CB; Mon, 4 Apr 2005 17:58:33 +0900 (JST) Received: from localhost (fragile [172.17.28.65]) by srd2sd.toshiba-tops.co.jp (8.12.10/8.12.10) with ESMTP id j348wX9c025328; Mon, 4 Apr 2005 17:58:33 +0900 (JST) (envelope-from anemo@mba.ocn.ne.jp) Date: Mon, 04 Apr 2005 08:58:00 -0000 Message-Id: <20050404.175833.115610647.nemoto@toshiba-tops.co.jp> To: binutils@sources.redhat.com Subject: Re: "Error: constant too large" on mips gas From: Atsushi Nemoto In-Reply-To: <20050401.123528.122254594.nemoto@toshiba-tops.co.jp> References: <20050401.123528.122254594.nemoto@toshiba-tops.co.jp> X-Fingerprint: 6ACA 1623 39BD 9A94 9B1A B746 CA77 FE94 2874 D52F X-Pgp-Public-Key: http://wwwkeys.pgp.net/pks/lookup?op=get&search=0x2874D52F Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2005-04/txt/msg00057.txt.bz2 >>>>> On Fri, 01 Apr 2005 12:35:28 +0900 (JST), Atsushi Nemoto said: anemo> With recent binutils (2.15.96 and 20050331 snapshot), mips-linux-as anemo> does not accept this instruction. anemo> lw $2, 0x80000000 anemo> $ mips-linux-as -32 -non_shared foo.s anemo> foo.s: Assembler messages: anemo> foo.s:1: Error: constant too large I modified tc-mips.c to omit this error on 32bit gpr target. Is this a correct fix? --- binutils-050331.org/gas/config/tc-mips.c 2005-03-22 06:59:34.000000000 +0900 +++ binutils-050331/gas/config/tc-mips.c 2005-04-04 17:48:06.223712588 +0900 @@ -5790,6 +5790,7 @@ macro (struct mips_cl_insn *ip) if (offset_expr.X_op == O_constant) { if (HAVE_32BIT_ADDRESSES + && HAVE_64BIT_GPRS && !IS_SEXT_32BIT_NUM (offset_expr.X_add_number)) as_bad (_("constant too large")); --- Atsushi Nemoto