From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2225 invoked by alias); 17 Jan 2008 11:58:54 -0000 Received: (qmail 2132 invoked by uid 22791); 17 Jan 2008 11:58:54 -0000 X-Spam-Check-By: sourceware.org Received: from rock.gnat.com (HELO rock.gnat.com) (205.232.38.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 17 Jan 2008 11:58:35 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by filtered-rock.gnat.com (Postfix) with ESMTP id E82C82A9651; Thu, 17 Jan 2008 06:58:33 -0500 (EST) Received: from rock.gnat.com ([127.0.0.1]) by localhost (rock.gnat.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id FVM8Poeo4vOp; Thu, 17 Jan 2008 06:58:33 -0500 (EST) Received: from joel.gnat.com (localhost.localdomain [127.0.0.1]) by rock.gnat.com (Postfix) with ESMTP id 645612A964F; Thu, 17 Jan 2008 06:58:33 -0500 (EST) Received: by joel.gnat.com (Postfix, from userid 1000) id 18070E7ACB; Thu, 17 Jan 2008 03:57:41 -0800 (PST) Date: Thu, 17 Jan 2008 11:58:00 -0000 From: Joel Brobecker To: Pierre Muller Cc: gdb-patches@sourceware.org Subject: Re: [RFA] Handle BINOP_INTDIV in valarith.c Message-ID: <20080117115741.GC28020@adacore.com> References: <002d01c85849$ef420f80$cdc62e80$@u-strasbg.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <002d01c85849$ef420f80$cdc62e80$@u-strasbg.fr> User-Agent: Mutt/1.4.2.2i Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00437.txt.bz2 For the record, I asked myself about the reason for using both BINOP_DIV and BINOP_INTDIV if both have the same semantics. I looked at some Pascal web sites, and the only difference between the '/' operator and the 'div' operator is the fact that '/' returns a real whereas "div" only operates on integers an returns an integer. So the distinction is indeed necessary. > 2008-01-16 Pierre Muller > > * valarith.c (value_binop): Handle BINOP_INTDIV > for unsigned and signed integers. This patch is approved. -- Joel