From ab103e33b2aae243b231eba689e0b99418fa1663 Mon Sep 17 00:00:00 2001 From: pmuldoon Date: Mon, 27 Oct 2014 17:21:42 +0000 Subject: Let GDB reuse GCC's parser. 2014-10-27 Phil Muldoon Jan Kratochvil Tom Tromey * aclocal.m4: New file. * callbacks.cc: New file. * callbacks.hh: New file. * cc1plugin-config.h.in: New file. * configure: New file. * configure.ac: New file. * connection.cc: New file. * connection.hh: New file. * findcomp.cc: New file. * findcomp.hh: New file. * libcc1.cc: New file. * libcc1plugin.sym: New file. * libcc1.sym: New file. * Makefile.am: New file. * Makefile.in: New file. * marshall.cc: New file. * marshall.hh: New file. * names.cc: New file. * names.hh: New file. * plugin.cc: New file. * rpc.hh: New file. * status.hh: New file. 2014-10-27 Phil Muldoon Jan Kratochvil Tom Tromey * gcc-c-fe.def: New file. * gcc-c-interface.h: New file. * gcc-interface.h: New file. 2014-10-27 Phil Muldoon Tom Tromey * c-tree.h (enum c_oracle_request): New. (c_binding_oracle_function): New typedef. (c_binding_oracle, c_pushtag, c_bind): Declare. * c-decl.c (c_binding_oracle): New global. (I_SYMBOL_CHECKED): New macro. (i_symbol_binding): New function. (I_SYMBOL_BINDING, I_SYMBOL_DECL): Redefine. (I_TAG_CHECKED): New macro. (i_tag_binding): New function. (I_TAG_BINDING, I_TAG_DECL): Redefine. (I_LABEL_CHECKED): New macro. (i_label_binding): New function. (I_LABEL_BINDING, I_LABEL_DECL): Redefine. (c_print_identifier): Save and restore c_binding_oracle. (c_pushtag, c_bind): New functions. 2014-10-27 Phil Muldoon Tom Tromey * aclocal.m4, configure: Rebuild. * Makefile.in (aclocal_deps): Add gcc-plugin.m4. * configure.ac: Use GCC_ENABLE_PLUGINS. * stor-layout.c (finish_bitfield_layout): Now public. Change argument type to 'tree'. (finish_record_layout): Update. * stor-layout.h (finish_bitfield_layout): Declare. 2014-10-27 Tom Tromey * gcc-plugin.m4: New file. 2014-10-27 Phil Muldoon Tom Tromey * Makefile.def: Add libcc1 to host_modules. * configure.ac (host_tools): Add libcc1. * Makefile.in, configure: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216748 138bc75d-0d04-0410-961f-82ee72b054a4 --- libcc1/Makefile.am | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 libcc1/Makefile.am (limited to 'libcc1/Makefile.am') diff --git a/libcc1/Makefile.am b/libcc1/Makefile.am new file mode 100644 index 00000000000..b3040c54bc4 --- /dev/null +++ b/libcc1/Makefile.am @@ -0,0 +1,55 @@ +## Copyright (C) 2014 Free Software Foundation, Inc. + +## This file is part of GCC. + +## GCC is free software; you can redistribute it and/or modify it under +## the terms of the GNU General Public License as published by the Free +## Software Foundation; either version 3, or (at your option) any later +## version. + +## GCC is distributed in the hope that it will be useful, but WITHOUT ANY +## WARRANTY; without even the implied warranty of MERCHANTABILITY or +## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +## for more details. + +## You should have received a copy of the GNU General Public License +## along with GCC; see the file COPYING3. If not see +## . + +ACLOCAL_AMFLAGS = -I .. -I ../config +gcc_build_dir = ../$(host_subdir)/gcc +AM_CPPFLAGS = -I $(srcdir)/../include -I $(srcdir)/../libgcc \ + -I $(gcc_build_dir) -I$(srcdir)/../gcc \ + -I $(srcdir)/../gcc/c -I $(srcdir)/../gcc/c-family \ + -I $(srcdir)/../libcpp/include +WERROR_FLAG = -Werror +AM_CXXFLAGS = $(WARN_FLAGS) $(WERROR_FLAG) $(visibility) +libiberty = ../libiberty/pic/libiberty.a + + +plugindir = $(libdir)/gcc/$(target_noncanonical)/$(gcc_version)/plugin +cc1libdir = $(libdir)/$(libsuffix) + +if ENABLE_PLUGIN +plugin_LTLIBRARIES = libcc1plugin.la +cc1lib_LTLIBRARIES = libcc1.la +endif + +BUILT_SOURCES = compiler-name.h + +# Put this in a header so we don't run sed for each compilation. This +# is also simpler to debug as one can easily see the constant. +compiler-name.h: Makefile + echo "#define COMPILER_NAME \"`echo gcc | sed '$(transform)'`\"" > compiler-name.h + + +shared_source = callbacks.cc callbacks.hh connection.cc connection.hh \ + marshall.cc marshall.hh rpc.hh status.hh + +libcc1plugin_la_LDFLAGS = -module -export-symbols $(srcdir)/libcc1plugin.sym +libcc1plugin_la_SOURCES = plugin.cc $(shared_source) +libcc1plugin_la_LIBADD = $(libiberty) + +libcc1_la_LDFLAGS = -module -export-symbols $(srcdir)/libcc1.sym +libcc1_la_SOURCES = findcomp.cc libcc1.cc names.cc names.hh $(shared_source) +libcc1_la_LIBADD = $(libiberty) -- cgit v1.2.1