From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27626 invoked by alias); 12 Jan 2007 22:11:42 -0000 Received: (qmail 27618 invoked by uid 22791); 12 Jan 2007 22:11:41 -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; Fri, 12 Jan 2007 22:11:35 +0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l0CMBX9c001295 for ; Fri, 12 Jan 2007 17:11:33 -0500 Received: from potter.sfbay.redhat.com (potter.sfbay.redhat.com [172.16.27.15]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l0CMBW1v029335 for ; Fri, 12 Jan 2007 17:11:32 -0500 Received: from [10.11.14.170] (vpn-14-170.rdu.redhat.com [10.11.14.170]) by potter.sfbay.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id l0CMBU3J013663 for ; Fri, 12 Jan 2007 17:11:31 -0500 Message-ID: <45A80792.3050300@redhat.com> Date: Fri, 12 Jan 2007 22:11:00 -0000 From: Dave Brolley User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) MIME-Version: 1.0 To: cgen@sources.redhat.com Subject: [patch][rfc] Assembler Initialization: CGEN_ASM_INIT_HOOK Content-Type: multipart/mixed; boundary="------------040307070502020607030509" 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-q1/txt/msg00002.txt.bz2 This is a multi-part message in MIME format. --------------040307070502020607030509 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-length: 385 Hi, The attached patch includes the expansion of CGEN_ASM_INIT_HOOK into the generated code for @arch@_cgen_init_asm if it is defined. The provides an architecure specific hook for assembler initialization. This will be used by the soon-to-be-contributed port for the Toshiba MeP architecture, but is general enough to be considered on its own. Seeking approval to commit. Dave --------------040307070502020607030509 Content-Type: text/plain; name="cgen.asm-init-hook.ChangeLog" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cgen.asm-init-hook.ChangeLog" Content-length: 180 2007-01-12 Dave Brolley * opc-asmdis.scm (-gen-init-asm-fn): Include CGEN_ASM_INIT_HOOK in the generated code for @arch@_cgen_init_asm if it is defined. --------------040307070502020607030509 Content-Type: text/plain; name="cgen.asm-init-hook.patch.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cgen.asm-init-hook.patch.txt" Content-length: 591 Index: cgen/opc-asmdis.scm =================================================================== RCS file: /cvs/src/src/cgen/opc-asmdis.scm,v retrieving revision 1.5 diff -c -p -r1.5 opc-asmdis.scm *** cgen/opc-asmdis.scm 1 Jul 2005 11:16:30 -0000 1.5 --- cgen/opc-asmdis.scm 11 Jan 2007 19:09:39 -0000 *************** void *** 70,75 **** --- 70,78 ---- @arch@_cgen_init_ibld_table (cd); cd->parse_handlers = & @arch@_cgen_parse_handlers[0]; cd->parse_operand = @arch@_cgen_parse_operand; + #ifdef CGEN_ASM_INIT_HOOK + CGEN_ASM_INIT_HOOK + #endif " -asm-init-code "}\n\n" --------------040307070502020607030509--