From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20647 invoked by alias); 1 Mar 2005 22:20:06 -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 20602 invoked from network); 1 Mar 2005 22:20:01 -0000 Received: from unknown (HELO imta04sl.mx.bigpond.com) (144.140.93.141) by sourceware.org with SMTP; 1 Mar 2005 22:20:01 -0000 Received: from modra.org ([144.136.221.26]) by imta04sl.mx.bigpond.com with ESMTP id <20050301222000.NPVV52.imta04sl.mx.bigpond.com@modra.org> for ; Tue, 1 Mar 2005 22:20:00 +0000 Received: by bubble.modra.org (Postfix, from userid 500) id DCE291973E2; Wed, 2 Mar 2005 08:49:59 +1030 (CST) Date: Tue, 01 Mar 2005 22:20:00 -0000 From: Alan Modra To: binutils@sources.redhat.com Subject: fix a mmix assertion failure Message-ID: <20050301221959.GU5299@bubble.modra.org> Mail-Followup-To: binutils@sources.redhat.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2005-03/txt/msg00049.txt.bz2 * symbols.c (fb_label_name): Allow an augend of 2 for mmix. Index: gas/symbols.c =================================================================== RCS file: /cvs/src/src/gas/symbols.c,v retrieving revision 1.54 diff -u -p -r1.54 symbols.c --- gas/symbols.c 21 Jan 2005 05:54:38 -0000 1.54 +++ gas/symbols.c 1 Mar 2005 10:51:53 -0000 @@ -1,6 +1,6 @@ /* symbols.c -symbol table- Copyright 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001, 2002, 2003, 2004 + 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This file is part of GAS, the GNU Assembler. @@ -1561,7 +1561,13 @@ fb_label_name (long n, /* We just saw "n char symbol_name_temporary[20]; /* Build up a number, BACKWARDS. */ know (n >= 0); - know (augend == 0 || augend == 1); + know ( +#ifdef TC_MMIX + (unsigned long) augend <= 2 /* See mmix_fb_label. */ +#else + (unsigned long) augend <= 1 +#endif + ); p = symbol_name_build; #ifdef LOCAL_LABEL_PREFIX *p++ = LOCAL_LABEL_PREFIX; -- Alan Modra IBM OzLabs - Linux Technology Centre