1 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
3 * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
5 2017-06-30 Nathan Sidwell <nathan@acm.org>
7 * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name.
8 (plugin_build_dependent_expr): Likewise.
10 2017-06-26 Nathan Sidwell <nathan@acm.org>
12 * libcp1plugin.cc (plugin_build_decl): Don't set
13 DECL_ASSIGNMENT_OPERATOR_P.
15 2017-06-16 Nathan Sidwell <nathan@acm.org>
17 * libcp1plugin.cc (plugin_build_decl): Adjust parm building.
19 2017-05-26 Nathan Sidwell <nathan@acm.org>
21 * libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
23 * libcp1plugin.cc (plugin_add_using_namespace): Call
24 finish_namespace_using_directive.
26 2017-05-25 Nathan Sidwell <nathan@acm.org>
28 * libcp1plugin.cc (plugin_make_namespace_inline): Check and set
29 DECL_NAMESPACE_INLINE_P.
31 2017-05-23 Nathan Sidwell <nathan@acm.org>
33 * libcp1plugin.cc (plugin_add_using_decl): Call
34 finish_namespace_using_decl. Use assert not unreachable.
36 2017-05-11 Nathan Sidwell <nathan@acm.org>
38 * libcp1plugin.cc (safe_pushdecl_maybe_friend): Call pushdecl.
40 2017-05-10 Nathan Sidwell <nathan@acm.org>
42 * libcp1plugin.cc (plugin_build_decl): Adjust add_method call.
44 2017-04-15 Alexandre Oliva <aoliva@redhat.com>
46 * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
48 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
50 Introduce C++ support.
51 * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
52 (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
54 (plugin_LTLIBRARIES): Add libcp1plugin.la.
55 (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
56 (cp-compiler-name.h): ... this. New.
57 (c-compiler-name.h): Rename all over from...
58 (compiler-name.h): ... this. Create it atomically.
59 (marshall_c_source, marshall_cxx_source): New macros.
60 (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
61 Add marshall_c_source expansion.
62 (libcc1plugin.lo_CPPFLAGS): New macro.
63 (libcp1plugin_la_LDFLAGS): Likewise.
64 (libcp1plugin_la_SOURCES): Likewise.
65 (libcp1plugin.lo_CPPFLAGS): Likewise.
66 (libcp1plugin_la_LIBADD): Likewise.
67 (libcp1plugin_la_DEPENDENCIES): Likewise.
68 (libcp1plugin_la_LINK): Likewise.
69 (libcc1_la_SOURCES): Added marshall_c_source and
70 marshall_cxx_source expansions.
71 * Makefile.in: Rebuild.
72 * compiler-name.h: Rename all over to...
73 * c-compiler-name.h: ... this. Define C_COMPILER_NAME instead
75 * plugin.cc: Rename all over to...
76 * libcc1plugin.cc: ... this. Include marshall-c.hh.
77 (address_rewriter): Drop cleaning up of VLA sizes.
78 (plugin_build_decl): Mark decls as external.
79 (plugin_tagbind): Propagate name to all variants.
80 (build_anonymous_node): New.
81 (plugin_build_record_type): Use it instead of make_node.
82 (plugin_build_union_type): Likewise.
83 (plugin_build_enum_type): Likewise.
84 (plugin_finish_record_or_union): Update all type variants.
85 (safe_lookup_builtin_type): New.
86 (plugin_int_check): Factor out of, and add checks to, ...
87 (plugin_int_type): ... this. Rename to...
88 (plugin_int_type_v0): ... this.
89 (plugin_int_type): New interface, new implementation.
90 (plugin_char_type): New.
91 (plugin_float_type_v0): Rename from...
92 (plugin_float_type): ... this. New interface, new implementation.
93 (plugin_init): Bump handshake version.
94 * libcc1.cc: Include marshall-c.hh. Drop gcc-interface.h.
95 (call_binding_oracle): Rename to...
96 (c_call_binding_oracle): ... this, into anonymous namespace.
97 (call_symbol_address): Rename to...
98 (c_call_symbol_address): ... this, likewise.
99 (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
100 (libcc1::compiler::find): Refer to C_COMPILER_NAME.
101 (fork_exec): Bump to GCC_C_FE_VERSION_1.
102 (libcc1_compile): Prefix callbacks with c_.
103 (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
104 * libcc1.sym: Export gcc_cp_fe_context.
105 * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
106 * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
107 * libcp1plugin.sym: New.
108 * marshall-c.hh: New. Move C-specific types from...
109 * marshall.cc: ... this.
110 (cc1_plugin::marshall_array_start): New.
111 (cc1_plugin::marshall_array_elmts): New.
112 (cc1_plugin::marshall for gcc_type_array): Use the above.
113 (cc1_plugin::unmarshall_array_start): New.
114 (cc1_plugin::unmarshall_array_elmts): New.
115 (cc1_plugin::unmarshall for gcc_type_array): Use the above.
116 * marshall.hh: Declare the new array building blocks.
117 Drop C-specific unmarshall declarations.
118 * marshall-cp.hh: New.
119 * names.cc (GCC_METHOD#): Add LANG:: to method names.
120 (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
121 * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
122 corresponding namespaces.
123 * rpc.hh: Don't include marshall.hh.
124 [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
125 gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
127 2017-01-30 Jan Kratochvil <jan.kratochvil@redhat.com>
129 * findcomp.cc: Include system.h.
130 (search_dir): Return absolute filename.
132 * libcc1.cc (libcc1): Add class compiler with field compilerp,
133 class compiler_triplet_regexp and class
134 compiler_driver_filename.
135 (libcc1::libcc1): Initialize compilerp.
136 (libcc1::~libcc1): Delete compilerp.
137 (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
138 (libcc1::compiler_driver_filename::find): New methods.
139 (libcc1_set_arguments): Remove parameter triplet_regexp.
140 (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
141 (libcc1_set_arguments_v0): New functions.
142 (vtable): Use libcc1_set_arguments_v0, add
143 libcc1_set_arguments, libcc1_set_triplet_regexp and
144 libcc1_set_driver_filename.
146 * libcc1.cc: Include intl.h.
147 (struct libcc1): Add field verbose.
148 (libcc1::libcc1): Initialize it.
149 (libcc1_set_verbose): New function.
150 (libcc1_set_arguments): Print messages for VERBOSE.
151 (libcc1_compile): Remove parameter verbose. Use VERBOSE from
153 (libcc1_compile_v0): New function.
154 (vtable): Use libcc1_compile_v0 and add libcc1_compile and
157 * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
158 (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
160 2017-01-17 Jakub Jelinek <jakub@redhat.com>
163 * configure.ac: Add GCC_BASE_VER. For --with-gcc-major-version-only
164 use just major number from BASE-VER.
165 * configure: Regenerated.
166 * Makefile.in: Regenerated.
168 2017-01-04 Jakub Jelinek <jakub@redhat.com>
170 Update copyright years.
172 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
173 Alan Hayward <alan.hayward@arm.com>
174 David Sherwood <david.sherwood@arm.com>
176 * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
178 2016-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
182 2016-04-18 Michael Matz <matz@suse.de>
184 * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
186 2016-04-11 Segher Boessenkool <segher@kernel.crashing.org>
189 * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
190 (compiler-name.h): Shorten recipe so that it fits the line.
191 * Makefile.in: Regenerate.
193 2016-03-14 Andreas Schwab <schwab@suse.de>
195 * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
196 * configure: Regenerate.
197 * Makefile.in: Regenerate.
199 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
201 * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
202 rather than typed_free_remove. Remove redudant typedefs.
204 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
206 * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
207 than typed_noop_remove. Remove redudant typedefs.
208 (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
209 (plugin_context::mark): Likewise.
211 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
213 * Makefile.in: Regenerated with automake-1.11.6.
214 * aclocal.m4: Likewise.
215 * configure: Likewise.
217 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
219 * plugin.cc: Adjust for hash_table changes.
221 2015-04-15 Andreas Schwab <schwab@suse.de>
224 * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
225 * Makefile.in: Regenerated.
227 2015-01-30 Joseph Myers <joseph@codesourcery.com>
229 * plugin.cc: All callers of fatal_error changed to pass
230 input_location as first argument.
232 2015-01-09 Michael Collison <michael.collison@linaro.org>
234 * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
235 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
236 due to flattening of tree.h.
238 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
241 * configure: Regenerated.
243 2014-11-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
245 * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
246 * configure: Regenerate.
247 * connection.cc: Include <string.h>.
248 * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
250 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
253 * configure: Regenerate.
255 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
259 * plugin.cc: Don't include <string>.
261 2014-10-29 Jakub Jelinek <jakub@redhat.com>
262 Phil Muldoon <pmuldoon@redhat.com>
264 * configure.ac: Remove -Werror addition to WARN_FLAGS. Add
265 ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
266 * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
267 (WERROR_FLAG): Remove.
268 (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
269 * configure: Regenerated.
270 * Makefile.in: Regenerated.
272 2014-10-29 Jakub Jelinek <jakub@redhat.com>
274 * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
275 (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
277 (libiberty): Set to -Wc, followed by the first existing noasan/,
278 pic/ or . libiberty.a.
279 (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
280 libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
281 * Makefile.in: Regenerated.
283 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
284 Jan Kratochvil <jan.kratochvil@redhat.com>
285 Tom Tromey <tromey@redhat.com>
287 * aclocal.m4: New file.
288 * callbacks.cc: New file.
289 * callbacks.hh: New file.
290 * cc1plugin-config.h.in: New file.
291 * configure: New file.
292 * configure.ac: New file.
293 * connection.cc: New file.
294 * connection.hh: New file.
295 * findcomp.cc: New file.
296 * findcomp.hh: New file.
297 * libcc1.cc: New file.
298 * libcc1plugin.sym: New file.
299 * libcc1.sym: New file.
300 * Makefile.am: New file.
301 * Makefile.in: New file.
302 * marshall.cc: New file.
303 * marshall.hh: New file.
304 * names.cc: New file.
305 * names.hh: New file.
306 * plugin.cc: New file.
308 * status.hh: New file.