From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29747 invoked by alias); 21 Aug 2007 19:40:12 -0000 Received: (qmail 29535 invoked by uid 22791); 21 Aug 2007 19:40:10 -0000 X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 21 Aug 2007 19:40:07 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l7LJe5Op003051 for ; Tue, 21 Aug 2007 15:40:05 -0400 Received: from pobox.toronto.redhat.com (pobox.toronto.redhat.com [172.16.14.4]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l7LJe5r2015433 for ; Tue, 21 Aug 2007 15:40:05 -0400 Received: from [172.16.14.227] (topaz.toronto.redhat.com [172.16.14.227]) by pobox.toronto.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l7LJe5YC030647 for ; Tue, 21 Aug 2007 15:40:05 -0400 Message-ID: <46CB3F94.3060109@redhat.com> Date: Tue, 21 Aug 2007 19:40:00 -0000 From: Dave Brolley User-Agent: Thunderbird 1.5.0.5 (X11/20060719) MIME-Version: 1.0 To: cgen@sources.redhat.com Subject: [patch][commit] Generation of C code for Large Integer Constants Content-Type: multipart/mixed; boundary="------------000706040903040508060906" X-IsSubscribed: yes Mailing-List: contact cgen-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cgen-owner@sourceware.org X-SW-Source: 2007-q3/txt/msg00005.txt.bz2 This is a multi-part message in MIME format. --------------000706040903040508060906 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 154 Hi, I've committed the attached patch which generate a call to MAKEDI when generating C code for integer constants which are larger than 32 bits. Dave --------------000706040903040508060906 Content-Type: text/plain; name="large-int.ChangeLog" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="large-int.ChangeLog" Content-length: 130 2007-08-21 Dave Brolley * rtl-c.scm (const): Generate call to MAKEDI for integers larger than 32 bits. --------------000706040903040508060906 Content-Type: text/plain; name="large-int.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="large-int.patch.txt" Content-length: 845 Index: cgen/rtl-c.scm =================================================================== RCS file: /cvs/src/src/cgen/rtl-c.scm,v retrieving revision 1.7 diff -c -p -r1.7 rtl-c.scm *** cgen/rtl-c.scm 2 Aug 2005 19:30:10 -0000 1.7 --- cgen/rtl-c.scm 21 Aug 2007 19:36:23 -0000 *************** *** 1446,1452 **** (let ((mode (mode:lookup mode))) (cx:make mode (cond ((or (mode:eq? 'DI mode) ! (mode:eq? 'UDI mode)) (string-append "MAKEDI (" (gen-integer (high-part c)) ", " (gen-integer (low-part c)) --- 1446,1454 ---- (let ((mode (mode:lookup mode))) (cx:make mode (cond ((or (mode:eq? 'DI mode) ! (mode:eq? 'UDI mode) ! (< #xffffffff c) ! (> #x-80000000 c)) (string-append "MAKEDI (" (gen-integer (high-part c)) ", " (gen-integer (low-part c)) --------------000706040903040508060906--