public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/8] Convert C compile to C++
@ 2018-05-03 18:42 Keith Seitz
  2018-05-03 18:41 ` [PATCH 2/8] Rename symbol_substitution_name Keith Seitz
                   ` (8 more replies)
  0 siblings, 9 replies; 21+ messages in thread
From: Keith Seitz @ 2018-05-03 18:42 UTC (permalink / raw)
  To: gdb-patches

This patch series begins the move to C++ for the compile feature,
specifically targeting C type conversion.  This work is the basis for ongoing
C++ compile work, which I hope to submit in the not-too-distant future.

The main drive of the patches is to convert compile_instance and
compile_c_instance into classes, but there are several pre-cursor patches
which attempt to reorganize the code a little bit.  Generic compile
functionality is put into compile-internal.h/compile.c, and all other
C-specific code is moved into compile-c-*.c/h files.

Keith Seitz (8):
  Return unique_xmalloc_ptr for generate_c_for_variable_locations
  Rename symbol_substitution_name
  Move C-related declarations to compile-c.h
  Add a C++ wrapper for GCC C plug-in
  Change compile_instance/compile_c_instance into classes
  Use std::unordered_map instead of htab_t.
  Move compile_instance to compile.c
  Use policies for code generation

 gdb/Makefile.in                 |   9 +-
 gdb/c-lang.h                    |   4 +-
 gdb/compile/compile-c-support.c | 419 +++++++++++++++++++++++++---------------
 gdb/compile/compile-c-symbols.c | 180 ++++-------------
 gdb/compile/compile-c-types.c   | 317 +++++++++++-------------------
 gdb/compile/compile-c.h         |  95 +++++++++
 gdb/compile/compile-internal.h  | 177 +++++++++--------
 gdb/compile/compile-loc2c.c     |   1 +
 gdb/compile/compile.c           | 198 ++++++++++++++-----
 gdb/compile/gcc-c-plugin.h      |  64 ++++++
 gdb/language.h                  |   6 +-
 11 files changed, 828 insertions(+), 642 deletions(-)
 create mode 100644 gdb/compile/compile-c.h
 create mode 100644 gdb/compile/gcc-c-plugin.h

-- 
2.13.6

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2018-08-10 18:18 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-03 18:42 [PATCH 0/8] Convert C compile to C++ Keith Seitz
2018-05-03 18:41 ` [PATCH 2/8] Rename symbol_substitution_name Keith Seitz
2018-05-03 18:42 ` [PATCH 3/8] Move C-related declarations to compile-c.h Keith Seitz
2018-06-06 14:34   ` Pedro Alves
2018-05-03 18:42 ` [PATCH 1/8] Return unique_xmalloc_ptr for generate_c_for_variable_locations Keith Seitz
2018-05-03 18:49 ` [PATCH 6/8] Use std::unordered_map instead of htab_t Keith Seitz
2018-06-06 14:35   ` Pedro Alves
2018-07-10 17:05     ` Keith Seitz
2018-07-11 11:21       ` Pedro Alves
2018-08-07 14:57         ` Keith Seitz
2018-08-08 12:29           ` Pedro Alves
2018-08-10 18:18             ` Keith Seitz
2018-05-03 18:49 ` [PATCH 4/8] Add a C++ wrapper for GCC C plug-in Keith Seitz
2018-06-06 14:34   ` Pedro Alves
2018-07-10 16:58     ` Keith Seitz
2018-05-03 18:50 ` [PATCH 8/8] Use policies for code generation Keith Seitz
2018-05-03 18:50 ` [PATCH 7/8] Move compile_instance to compile.c Keith Seitz
2018-05-03 18:51 ` [PATCH 5/8] Change compile_instance/compile_c_instance into classes Keith Seitz
2018-06-06 14:38 ` [PATCH 0/8] Convert C compile to C++ Pedro Alves
2018-07-10 17:07   ` Keith Seitz
2018-07-11 11:31     ` Pedro Alves

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).