* [patch][rfc] Assembler Initialization: CGEN_ASM_INIT_HOOK
@ 2007-01-12 22:11 Dave Brolley
2007-02-06 19:59 ` Dave Brolley
0 siblings, 1 reply; 2+ messages in thread
From: Dave Brolley @ 2007-01-12 22:11 UTC (permalink / raw)
To: cgen
[-- Attachment #1: Type: text/plain, Size: 385 bytes --]
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
[-- Attachment #2: cgen.asm-init-hook.ChangeLog --]
[-- Type: text/plain, Size: 180 bytes --]
2007-01-12 Dave Brolley <brolley@redhat.com>
* 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.
[-- Attachment #3: cgen.asm-init-hook.patch.txt --]
[-- Type: text/plain, Size: 591 bytes --]
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"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch][rfc] Assembler Initialization: CGEN_ASM_INIT_HOOK
2007-01-12 22:11 [patch][rfc] Assembler Initialization: CGEN_ASM_INIT_HOOK Dave Brolley
@ 2007-02-06 19:59 ` Dave Brolley
0 siblings, 0 replies; 2+ messages in thread
From: Dave Brolley @ 2007-02-06 19:59 UTC (permalink / raw)
To: Dave Brolley; +Cc: cgen
This patch has now been committed.
Dave Brolley wrote:
> 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.
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-02-06 19:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-12 22:11 [patch][rfc] Assembler Initialization: CGEN_ASM_INIT_HOOK Dave Brolley
2007-02-06 19:59 ` Dave Brolley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).