0
I Use This!
Activity Not Available

News

Posted almost 10 years ago by Trevor Saunders
Hi, Here's a patch to wrap generated headers in extern "C" so C++ code can use them as well as C. While I was in the area I fixed the copy right years in the template so that running cgen for binutils-gdb.git produces the same thing as is checked ... [More] in. I checked the resulting generated code for binutils-gdb.git builds fine with this. Is it ok? can someone apply it for me please? Thanks! Trev Index: src/cgen/desc-cpu.scm =================================================================== RCS file: /cvs/src/src/cgen/desc-cpu.scm,v retrieving revision 1.33 diff -u -r1.33 desc-cpu.scm --- src/cgen/desc-cpu.scm13 Feb 2010 03:39:15 -00001.33 +++ src/cgen/desc-cpu.scm18 Jul 2016 06:10:50 -0000 < at >< at > -964,6 +964,10 < at >< at > #ifndef < at >ARCH< at >_CPU_H #define < at >ARCH< at >_CPU_H +#ifdef __cplusplus +extern \"C\" { +#endif + " /gen-hash-defines ; This is defined in arch.h. It's not defined here as there is yet to < at >< at > -1004,6 +1008,10 < at >< at > "")) " + #ifdef __cplusplus + } + #endif + #endif /* < at >ARCH< at >_CPU_H * [Less]
Posted almost 10 years ago by fche&lt; at &gt;sourceware.org
A new automated cgen source snapshot is available ftp://sourceware.org/pub/cgen/snapshots/cgen-20160701.tar.bz2 1632394 bytes, cgen-snapshot-20160701 tag See also ftp://sourceware.org/pub/cgen/snapshots/
Posted almost 10 years ago by Ut Corporation
See attached the contract. Thanks Ut Corporation
Posted about 10 years ago by Aurelien Buhrig
Hi, I have an issue when generating the sid semantic of derived-operands. When printing C code for sid semantic, cgen tries to generate a hardware index (in /gen-hw-index) from a derived ifield, which is not supported by /gen-hw-index. I'm not sure ... [More] if this is a valid case and if the subfields shall be parsed in /gen-hw-index to find the correct subfield (how?) or if it should be handled earlier... Any idea how to solve this issue ? Thanks, Aurélien Backtrace: In [..]/cgen/sid.scm: 860: 0 [error "/gen-hw-index: invalid index:" # " type: " ...] 844: 1 (case type ((scalar) "") ...) 841: 2 (let ((type #) (mode #) (value #)) (case type (# "") (# #) ...)) 1001: 3 [/gen-hw-index # #] 1001: 4* (if index (/gen-hw-index index estate) "") 996: 5 (let* (# # # ...) (logit 4 " cxmake-get self=" ...) ...) In unknown file: ?: 6 [# # # # ...] ... In [..]/cgen/rtl-c.scm: 450: 7 (cond (# #) (# #) (else #)) 446: 8 (begin (message "MODE=" mode ...) (if (symbol? src) (set [Less]
Posted about 10 years ago by Clayton Norman
Check your report attached. Clayton Norman
Posted about 10 years ago by fche&lt; at &gt;sourceware.org
A new automated cgen source snapshot is available ftp://sourceware.org/pub/cgen/snapshots/cgen-20160501.tar.bz2 1631949 bytes, cgen-snapshot-20160501 tag See also ftp://sourceware.org/pub/cgen/snapshots/
Posted about 10 years ago by Stafford Horne
The types like MACH and MODEL have changes to SIM_MACH and SIM_MODEL make updates to match these changes. This way people dont have to manually update the generated files in GDB. I am from openrisc and working on getting the openrisc sim and gdb ... [More] patches ready for submitting to upstream. This was required to get the sim build to work. 2016-05-01 Stafford Horne gmail.com> * cgen/sim-cpu.scm (cgen-semantics.c, cgen-sem-switch.c): Rename TRACE_RESULT to CGEN_TRACE_RESULT. * cgen/sim-model.scm (gen-cpu-imp-properties): Rename SIM_MACH_IMP_PROPERTIES to SIM_MACH_IMP_PROPERTIES. (gen-mach-model-table): Rename MODEL to SIM_MODEL. (gen-mach-defns): Rename MACH to SIM_MACH. * cgen/sim.scm (op-gen-set-trace, op-gen-set-trace-parallel): Rename TRACE_RESULT to CGEN_TRACE_RESULT. (gen-mach-decls, gen-mach-data): Rename MACH to SIM_MACH. cgen/sim-cpu.scm | 8 ++++---- cgen/sim-model.scm | 6 +++--- cgen/sim.scm | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/ [Less]
Posted about 10 years ago by Trevor Saunders
Hi, I wanted to enable -Wold-style-{declaration,definition} for all of binutils, and ran into cgen generating that style of definition, so here's a patch to fix that. Trev ChangeLog: 2016-04-14 Trevor Saunders tbsaunde.org> * ... [More] opc-itab.scm (asm_hash_insn_p): Stop using old style arguments. (dis_hash_insn_p): Likewise. (asm_hash_insn): Likewise. (dis_hash_insn): Likewise. * opc-opinst.scm (< at >arch< at >_cgen_init_opinst_table): Likewise. Index: opc-itab.scm =================================================================== RCS file: /cvs/src/src/cgen/opc-itab.scm,v retrieving revision 1.18 diff -u -p -r1.18 opc-itab.scm --- opc-itab.scm3 Nov 2009 16:24:02 -00001.18 +++ opc-itab.scm14 Apr 2016 14:32:21 -0000 < at >< at > -412,15 +412,13 < at >< at > static const CGEN_OPCODE < at >arch< at >_cgen_ins Targets are free to override CGEN_{ASM,DIS}_HASH_P in the .opc file. */ static int -asm_hash_insn_p (insn) - const CGEN_INSN *insn ATTRIBUTE_UNUSED; +asm_hash_insn_p (const CGEN_INSN *insn ATTRIBUTE_ [Less]
Posted about 10 years ago by fche&lt; at &gt;sourceware.org
A new automated cgen source snapshot is available ftp://sourceware.org/pub/cgen/snapshots/cgen-20160401.tar.bz2 1631827 bytes, cgen-snapshot-20160401 tag See also ftp://sourceware.org/pub/cgen/snapshots/
Posted over 10 years ago by Alan Modra
This is the second part in my quest to make --enable-cgen-maint useful in binutils. OK to apply? * utils.scm: Update emitted copyright dates. Index: utils.scm =================================================================== RCS file: ... [More] /cvs/src/src/cgen/utils.scm,v retrieving revision 1.38 diff -u -p -r1.38 utils.scm --- utils.scm2 Jan 2010 17:53:10 -00001.38 +++ utils.scm2 Mar 2016 04:19:20 -0000 < at >< at > -1310,7 +1310,7 < at >< at > (cons "\ THIS FILE IS MACHINE GENERATED WITH CGEN. -Copyright 1996-2010 Free Software Foundation, Inc. +Copyright (C) 1996-2016 Free Software Foundation, Inc. " "\ This file is free software; you can redistribute it and/or modify < at >< at > -1335,7 +1335,7 < at >< at > Copyright 1996-2010 Free Software Founda (cons "\ THIS FILE IS MACHINE GENERATED WITH CGEN. -Copyright (C) 2000-2010 Red Hat, Inc. +Copyright (C) 2000-2016 Red Hat, Inc. " "\ ")) [Less]