1 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
4 * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
5 (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
7 (plugin_LTLIBRARIES): Add libcp1plugin.la.
8 (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
9 (cp-compiler-name.h): ... this. New.
10 (c-compiler-name.h): Rename all over from...
11 (compiler-name.h): ... this. Create it atomically.
12 (marshall_c_source, marshall_cxx_source): New macros.
13 (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
14 Add marshall_c_source expansion.
15 (libcc1plugin.lo_CPPFLAGS): New macro.
16 (libcp1plugin_la_LDFLAGS): Likewise.
17 (libcp1plugin_la_SOURCES): Likewise.
18 (libcp1plugin.lo_CPPFLAGS): Likewise.
19 (libcp1plugin_la_LIBADD): Likewise.
20 (libcp1plugin_la_DEPENDENCIES): Likewise.
21 (libcp1plugin_la_LINK): Likewise.
22 (libcc1_la_SOURCES): Added marshall_c_source and
23 marshall_cxx_source expansions.
24 * Makefile.in: Rebuild.
25 * compiler-name.h: Rename all over to...
26 * c-compiler-name.h: ... this. Define C_COMPILER_NAME instead
28 * plugin.cc: Rename all over to...
29 * libcc1plugin.cc: ... this. Include marshall-c.hh.
30 (address_rewriter): Drop cleaning up of VLA sizes.
31 (plugin_build_decl): Mark decls as external.
32 (plugin_tagbind): Propagate name to all variants.
33 (build_anonymous_node): New.
34 (plugin_build_record_type): Use it instead of make_node.
35 (plugin_build_union_type): Likewise.
36 (plugin_build_enum_type): Likewise.
37 (plugin_finish_record_or_union): Update all type variants.
38 (safe_lookup_builtin_type): New.
39 (plugin_int_check): Factor out of, and add checks to, ...
40 (plugin_int_type): ... this. Rename to...
41 (plugin_int_type_v0): ... this.
42 (plugin_int_type): New interface, new implementation.
43 (plugin_char_type): New.
44 (plugin_float_type_v0): Rename from...
45 (plugin_float_type): ... this. New interface, new implementation.
46 (plugin_init): Bump handshake version.
47 * libcc1.cc: Include marshall-c.hh. Drop gcc-interface.h.
48 (call_binding_oracle): Rename to...
49 (c_call_binding_oracle): ... this, into anonymous namespace.
50 (call_symbol_address): Rename to...
51 (c_call_symbol_address): ... this, likewise.
52 (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
53 (libcc1::compiler::find): Refer to C_COMPILER_NAME.
54 (fork_exec): Bump to GCC_C_FE_VERSION_1.
55 (libcc1_compile): Prefix callbacks with c_.
56 (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
57 * libcc1.sym: Export gcc_cp_fe_context.
58 * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
59 * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
60 * libcp1plugin.sym: New.
61 * marshall-c.hh: New. Move C-specific types from...
62 * marshall.cc: ... this.
63 (cc1_plugin::marshall_array_start): New.
64 (cc1_plugin::marshall_array_elmts): New.
65 (cc1_plugin::marshall for gcc_type_array): Use the above.
66 (cc1_plugin::unmarshall_array_start): New.
67 (cc1_plugin::unmarshall_array_elmts): New.
68 (cc1_plugin::unmarshall for gcc_type_array): Use the above.
69 * marshall.hh: Declare the new array building blocks.
70 Drop C-specific unmarshall declarations.
71 * marshall-cp.hh: New.
72 * names.cc (GCC_METHOD#): Add LANG:: to method names.
73 (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
74 * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
75 corresponding namespaces.
76 * rpc.hh: Don't include marshall.hh.
77 [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
78 gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
80 2017-01-30 Jan Kratochvil <jan.kratochvil@redhat.com>
82 * findcomp.cc: Include system.h.
83 (search_dir): Return absolute filename.
85 * libcc1.cc (libcc1): Add class compiler with field compilerp,
86 class compiler_triplet_regexp and class
87 compiler_driver_filename.
88 (libcc1::libcc1): Initialize compilerp.
89 (libcc1::~libcc1): Delete compilerp.
90 (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
91 (libcc1::compiler_driver_filename::find): New methods.
92 (libcc1_set_arguments): Remove parameter triplet_regexp.
93 (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
94 (libcc1_set_arguments_v0): New functions.
95 (vtable): Use libcc1_set_arguments_v0, add
96 libcc1_set_arguments, libcc1_set_triplet_regexp and
97 libcc1_set_driver_filename.
99 * libcc1.cc: Include intl.h.
100 (struct libcc1): Add field verbose.
101 (libcc1::libcc1): Initialize it.
102 (libcc1_set_verbose): New function.
103 (libcc1_set_arguments): Print messages for VERBOSE.
104 (libcc1_compile): Remove parameter verbose. Use VERBOSE from
106 (libcc1_compile_v0): New function.
107 (vtable): Use libcc1_compile_v0 and add libcc1_compile and
110 * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
111 (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
113 2017-01-17 Jakub Jelinek <jakub@redhat.com>
116 * configure.ac: Add GCC_BASE_VER. For --with-gcc-major-version-only
117 use just major number from BASE-VER.
118 * configure: Regenerated.
119 * Makefile.in: Regenerated.
121 2017-01-04 Jakub Jelinek <jakub@redhat.com>
123 Update copyright years.
125 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
126 Alan Hayward <alan.hayward@arm.com>
127 David Sherwood <david.sherwood@arm.com>
129 * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
131 2016-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
135 2016-04-18 Michael Matz <matz@suse.de>
137 * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
139 2016-04-11 Segher Boessenkool <segher@kernel.crashing.org>
142 * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
143 (compiler-name.h): Shorten recipe so that it fits the line.
144 * Makefile.in: Regenerate.
146 2016-03-14 Andreas Schwab <schwab@suse.de>
148 * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
149 * configure: Regenerate.
150 * Makefile.in: Regenerate.
152 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
154 * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
155 rather than typed_free_remove. Remove redudant typedefs.
157 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
159 * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
160 than typed_noop_remove. Remove redudant typedefs.
161 (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
162 (plugin_context::mark): Likewise.
164 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
166 * Makefile.in: Regenerated with automake-1.11.6.
167 * aclocal.m4: Likewise.
168 * configure: Likewise.
170 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
172 * plugin.cc: Adjust for hash_table changes.
174 2015-04-15 Andreas Schwab <schwab@suse.de>
177 * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
178 * Makefile.in: Regenerated.
180 2015-01-30 Joseph Myers <joseph@codesourcery.com>
182 * plugin.cc: All callers of fatal_error changed to pass
183 input_location as first argument.
185 2015-01-09 Michael Collison <michael.collison@linaro.org>
187 * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
188 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
189 due to flattening of tree.h.
191 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
194 * configure: Regenerated.
196 2014-11-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
198 * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
199 * configure: Regenerate.
200 * connection.cc: Include <string.h>.
201 * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
203 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
206 * configure: Regenerate.
208 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
212 * plugin.cc: Don't include <string>.
214 2014-10-29 Jakub Jelinek <jakub@redhat.com>
215 Phil Muldoon <pmuldoon@redhat.com>
217 * configure.ac: Remove -Werror addition to WARN_FLAGS. Add
218 ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
219 * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
220 (WERROR_FLAG): Remove.
221 (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
222 * configure: Regenerated.
223 * Makefile.in: Regenerated.
225 2014-10-29 Jakub Jelinek <jakub@redhat.com>
227 * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
228 (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
230 (libiberty): Set to -Wc, followed by the first existing noasan/,
231 pic/ or . libiberty.a.
232 (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
233 libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
234 * Makefile.in: Regenerated.
236 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
237 Jan Kratochvil <jan.kratochvil@redhat.com>
238 Tom Tromey <tromey@redhat.com>
240 * aclocal.m4: New file.
241 * callbacks.cc: New file.
242 * callbacks.hh: New file.
243 * cc1plugin-config.h.in: New file.
244 * configure: New file.
245 * configure.ac: New file.
246 * connection.cc: New file.
247 * connection.hh: New file.
248 * findcomp.cc: New file.
249 * findcomp.hh: New file.
250 * libcc1.cc: New file.
251 * libcc1plugin.sym: New file.
252 * libcc1.sym: New file.
253 * Makefile.am: New file.
254 * Makefile.in: New file.
255 * marshall.cc: New file.
256 * marshall.hh: New file.
257 * names.cc: New file.
258 * names.hh: New file.
259 * plugin.cc: New file.
261 * status.hh: New file.