From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3039 invoked by alias); 21 Jan 2008 10:45:30 -0000 Received: (qmail 3026 invoked by uid 22791); 21 Jan 2008 10:45:29 -0000 X-Spam-Check-By: sourceware.org Received: from ics.u-strasbg.fr (HELO ics.u-strasbg.fr) (130.79.112.250) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 21 Jan 2008 10:45:10 +0000 Received: from ICSMULLER (laocoon.u-strasbg.fr [130.79.112.72]) by ics.u-strasbg.fr (Postfix) with ESMTP id CC6D418701A; Mon, 21 Jan 2008 11:51:20 +0100 (CET) From: "Pierre Muller" To: "'Eli Zaretskii'" Cc: References: <002d01c85849$ef420f80$cdc62e80$@u-strasbg.fr> In-Reply-To: Subject: RE: [RFA] Handle BINOP_INTDIV in valarith.c Date: Mon, 21 Jan 2008 10:45:00 -0000 Message-ID: <002401c85c1a$b1997b30$14cc7190$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us 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/msg00504.txt.bz2 > If this patch is approved, please document this operator in the > "Pascal" node of the user manual. Hi Eli, as I got the approval of Joel, I committed this patch last week. But I had an email connection problem last week that prevented me from replying to your email. Concerning the pascal 'div' operator subject of my patch, I must admit that there is no reason to add it to 'pascal' node, because there is basically nothing in that node yet, and the little that is present is obsolete anyway. I would need to rewrite completely, I will try to work on this. The BINOP_INTDIV seems to be used also in fortran language (f-lang.c:237) and modula-2 language (m2-exp.y:430 and m2-lang.c:290) But there seems to no test this feature, as I saw no testsuite change. I will add a pascal testsuite that does test this feature. I have another problem with the '/' operator: for pascal and contrary to C language '/' is always returning a float value, even if both left and right nodes are integers. I will send a separate patch for a new binop called BINOP_FLOATDIV that will force the result of 'a / b' to be a float in all cases. This is the right thing to do for pascal, but I don't know about the other languages: do fortran, Ada, Modula-2 or java allow 'a / b' for a or b of integer types? Pierre Muller Pascal language maintainer.