1 2024-12-23 Simon Martin <simon@nasilyan.com>
3 * Makefile.am: Remove reference to deleted marshall-c.h.
4 * Makefile.in: Regenerate.
6 2024-12-20 Nathaniel Shead <nathanieloshead@gmail.com>
8 * libcp1plugin.cc (plugin_add_namespace_alias): Call
9 do_namespace_alias with input_location.
11 2024-09-20 David Malcolm <dmalcolm@redhat.com>
14 * context.cc: Include "diagnostic-format-text.h".
15 (plugin_print_error_function): Update first param from
16 diagnostic_context * to diagnostic_text_output_format &.
18 2024-03-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
21 * libcc1plugin.cc: Fix include.
22 * libcp1plugin.cc: Fix include.
24 2024-02-29 Tom Tromey <tom@tromey.com>
27 * libcc1plugin.cc (plugin_finish_record_or_union): New function.
28 (plugin_finish_record_or_union): Rewrite.
29 (plugin_init): Use GCC_C_FE_VERSION_2.
30 * libcc1.cc (c_vtable): Use GCC_C_FE_VERSION_2.
31 (gcc_c_fe_context): Check for GCC_C_FE_VERSION_2.
33 2024-02-29 Tom Tromey <tom@tromey.com>
35 * libcp1.cc (libcp1::libcp1): Use FE version number from context.
36 * libcc1.cc (libcc1::libcc1): Use FE version number from context.
37 (c_vtable): Use GCC_C_FE_VERSION_1.
39 2024-02-29 Tom Tromey <tom@tromey.com>
41 * libcc1plugin.cc (safe_lookup_builtin_type): Handle ERROR_MARK.
42 (plugin_int_type): Fall back to plugin_int_type_v0.
43 (plugin_float_type): Fall back to plugin_float_type_v0.
45 2024-02-09 Marek Polacek <polacek@redhat.com>
48 * libcp1plugin.cc (plugin_build_unary_expr): Pass tf_error to
51 2024-01-09 waffl3x <waffl3x@protonmail.com>
52 Jason Merrill <jason@redhat.com>
55 * libcp1plugin.cc (plugin_pragma_push_user_expression): Don't use
56 DECL_NONSTATIC_MEMBER_FUNCTION_P.
58 2023-12-06 David Malcolm <dmalcolm@redhat.com>
60 * context.cc (plugin_print_error_function): Make diagnostic_info
63 2023-11-16 Tom Tromey <tom@tromey.com>
65 * libcc1plugin.cc (plugin_build_enum_type): Set
68 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
70 * configure: Regenerate.
72 2023-08-11 Joseph Myers <joseph@codesourcery.com>
74 * configure: Regenerate.
76 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
78 * configure: Regenerate.
80 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
82 * configure: Regenerate.
84 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
86 * configure: Regenerate.
88 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
90 * configure: Regenerate.
92 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
94 * configure: Regenerate.
96 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
98 * configure: Regenerate.
100 2023-05-18 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
102 * libcc1plugin.cc (plugin_float_type): Ditto.
103 * libcp1plugin.cc (plugin_reactivate_decl): Ditto.
104 (plugin_get_float_type): Ditto.
106 2022-11-01 Nathan Sidwell <nathan@acm.org>
108 * libcp1plugin.cc (plugin_start_lambda_closure_class_type):
109 Initialize the per-scope, per-signature discriminator.
111 2022-11-01 Nathan Sidwell <nathan@acm.org>
113 * libcp1plugin.cc (plugin_start_closure): Adjust.
115 2022-10-12 Martin Liska <mliska@suse.cz>
117 * configure: Regenerate.
119 2022-10-11 Olivier Hainque <hainque@adacore.com>
120 Olivier Hainque <hainque@adacore.com>
122 * configure: Regenerate.
124 2022-06-27 Sergei Trofimovich <siarheit@google.com>
127 * libcc1plugin.cc: Include <memory> via "system.h".
128 * libcp1plugin.cc: Ditto.
130 2022-06-01 David Seifert <soap@gentoo.org>
133 * configure: Regenerate.
135 2021-12-16 Patrick Palka <ppalka@redhat.com>
140 * libcp1plugin.cc (plugin_build_unary_expr): Adjust call to
142 (plugin_build_binary_expr): Adjust call to build_x_binary_op.
144 2021-12-15 Iain Sandoe <iain@sandoe.co.uk>
146 * configure: Regenerate.
148 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
150 * Makefile.am: Switch mdynamic-no-pic to fPIC.
151 * Makefile.in: Regenerated.
153 2021-06-28 Martin Sebor <msebor@redhat.com>
155 * libcp1plugin.cc (record_decl_address): Replace a direct use
156 of TREE_NO_WARNING with suppress_warning.
158 2021-05-05 Tom Tromey <tom@tromey.com>
160 * compiler.cc (make_regexp): Take const std::string.
161 (cc1_plugin::compiler_triplet_regexp::find): Update.
163 2021-05-05 Tom Tromey <tom@tromey.com>
166 * compiler.hh (compiler_driver_filename): Take const char *.
167 (compiler_triplet_regexp): Likewise.
169 2021-05-05 Tom Tromey <tom@tromey.com>
171 * rpc.hh (argument_wrapper) <get>: Replace cast operator.
172 (argument_wrapper<T *>) <get>: Likewise.
173 (unmarshall): Add std::tuple overloads.
175 (class invoker): New.
176 * libcp1plugin.cc (plugin_init): Update.
177 * libcp1.cc (libcp1::add_callbacks): Update.
178 * libcc1plugin.cc (plugin_init): Update.
179 * libcc1.cc (libcc1::add_callbacks): Update.
180 * connection.cc (cc1_plugin::connection::do_wait): Update.
182 2021-05-05 Tom Tromey <tom@tromey.com>
184 * gdbctx.hh (do_compile): Use std::vector.
186 2021-05-05 Tom Tromey <tom@tromey.com>
188 * libcp1.cc (libcp1): Change parameters. Update.
189 (libcp1_set_verbose, libcp1_set_arguments)
190 (libcp1_set_triplet_regexp, libcp1_set_driver_filename)
191 (libcp1_set_source_file, libcp1_set_print_callback, fork_exec)
192 (libcp1_compile, libcp1_destroy, vtable): Remove.
193 (libcp1::add_callbacks): New method, extracted from
195 (gcc_c_fe_context): Update.
196 * libcc1.cc (libcc1): Change parameters. Update.
197 (libcc1_set_verbose, libcc1_set_arguments)
198 (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
199 (libcc1_set_source_file, libcc1_set_print_callback, fork_exec)
200 (libcc1_compile, libcc1_destroy, vtable): Remove.
201 (libcc1::add_callbacks): New method, extracted from
203 (gcc_c_fe_context): Update.
204 * gdbctx.hh (base_gdb_plugin): Change parameters.
205 (~base_gdb_plugin): New.
206 <add_callbacks>: New virtual method.
207 <plugin_name, fe_version, compiler_name, vtable>: New members.
208 (get_self, do_set_verbose, do_set_arguments)
209 (do_set_triplet_regexp, do_set_driver_filename)
210 (do_set_arguments_v0, do_set_source_file, do_set_print_callback)
211 (fork_exec, do_compile, do_compile_v0, do_destroy): New methods.
213 2021-05-05 Tom Tromey <tom@tromey.com>
215 * libcp1.cc (vtable): Use GCC_FE_VERSION_1.
217 2021-05-05 Tom Tromey <tom@tromey.com>
219 * libcp1.cc (struct libcp1): Derive from base_gdb_plugin. Remove
221 (class libcp1_connection): Remove.
223 (libcp1_set_verbose, libcp1_compile): Update.
224 (cp_call_binding_oracle, cp_call_symbol_address)
225 (cp_call_enter_scope, cp_call_leave_scope): Update.
226 * libcc1.cc (struct libcc1): Derive from base_gdb_plugin. Remove
228 (class libcc1_connection): Remove.
229 (c_call_binding_oracle, c_call_symbol_address): Update.
231 (libcc1_set_verbose, libcc1_compile): Update.
232 * gdbctx.hh: New file.
234 2021-05-05 Tom Tromey <tom@tromey.com>
236 * libcc1plugin.cc: Move code to context.cc.
237 * libcp1plugin.cc: Move code to context.cc.
238 * context.hh: New file.
239 * context.cc: New file.
240 * Makefile.in: Rebuild.
241 * Makefile.am (AM_CPPFLAGS): Add more gcc flags.
242 (CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): Update.
243 (libcc1plugin_la_SOURCES): Add context.hh, context.cc.
244 (libcp1plugin_la_SOURCES): Likewise.
246 2021-05-05 Tom Tromey <tom@tromey.com>
248 * libcp1plugin.cc: Use static assert.
250 2021-05-05 Tom Tromey <tom@tromey.com>
252 * libcp1plugin.cc (plugin_context::mark): Use foreach.
253 * libcc1plugin.cc (plugin_context::mark): Use foreach.
255 2021-05-05 Tom Tromey <tom@tromey.com>
257 * libcp1.cc (compiler, compiler_triplet_regexp)
258 (compiler_driver_filename): Remove.
259 (libcp1::libcp1): Update.
260 (make_regexp, libcp1::compiler::find)
261 (libcp1::compiler_triplet_regexp::find)
262 (libcp1::compiler_driver_filename::find): Remove.
263 (libcp1_set_verbose, libcp1_set_arguments)
264 (libcp1_set_triplet_regexp, libcp1_set_driver_filename): Update.
265 * libcc1.cc (compiler, compiler_triplet_regexp)
266 (compiler_driver_filename): Remove.
267 (libcc1::libcc1): Update.
268 (make_regexp, libcc1::compiler::find)
269 (libcc1::compiler_triplet_regexp::find)
270 (libcc1::compiler_driver_filename::find): Remove.
271 (libcc1_set_verbose, libcc1_set_arguments)
272 (libcc1_set_triplet_regexp, libcc1_set_driver_filename): Update.
273 * compiler.cc: New file.
274 * compiler.hh: New file.
275 * Makefile.in: Rebuild.
276 * Makefile.am (libcc1_la_SOURCES): Add compiler.hh, compiler.cc.
278 2021-05-05 Tom Tromey <tom@tromey.com>
280 * libcp1.cc (struct libcp1) <connection, compilerp>: Use
283 (libcp1_compile, libcp1_set_triplet_regexp)
284 (libcp1_set_driver_filename): Update.
285 * libcc1.cc (struct libcc1) <connection, compilerp>: Use
288 (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
289 (libcc1_compile): Update.
291 2021-05-05 Tom Tromey <tom@tromey.com>
293 * rpc.hh (deleter): Move template and some specializations to
295 (argument_wrapper<const T *>): Use cc1_plugin::unique_ptr.
296 * marshall.cc (cc1_plugin::unmarshall): Use
297 cc1_plugin::unique_ptr.
298 * marshall-cp.hh (deleter): New specializations.
299 (unmarshall): Use cc1_plugin::unique_ptr.
300 * deleter.hh: New file.
302 2021-05-05 Tom Tromey <tom@tromey.com>
304 * rpc.hh (struct deleter): New template class and
306 (argument_wrapper): Remove specializations. Add specialization
307 for any pointer type.
309 2021-05-05 Tom Tromey <tom@tromey.com>
311 * libcp1plugin.cc (plugin_build_function_type): Use std::vector.
312 * libcc1plugin.cc (plugin_build_function_type): Use std::vector.
314 2021-05-05 Tom Tromey <tom@tromey.com>
316 * libcp1.cc (rpc): Use variadic template. Remove overloads.
317 * libcc1.cc (rpc): Use variadic template. Remove overloads.
319 2021-05-05 Tom Tromey <tom@tromey.com>
321 * rpc.hh (call): Use variadic template. Remove overloads.
322 * marshall.hh (marshall): Add base overload. Use variadic
325 2021-05-05 Tom Tromey <tom@tromey.com>
327 * rpc.hh (argument_wrapper): Use delete for copy constructor.
328 * connection.hh (class connection): Use delete for copy
330 * callbacks.hh (class callbacks): Use delete for copy constructor.
332 2021-05-05 Tom Tromey <tom@tromey.com>
334 * connection.hh (~connection): Use default.
336 * connection.cc (cc1_plugin::connection::~connection)
337 (cc1_plugin::connection::print): Remove definitions.
339 2021-05-05 Tom Tromey <tom@tromey.com>
341 * libcp1.cc (class compiler_triplet_regexp)
342 (class compiler_driver_filename, class libcp1_connection): Use
344 * libcc1.cc (class compiler_triplet_regexp)
345 (class compiler_driver_filename, class libcc1_connection): Use
348 2021-05-05 Tom Tromey <tom@tromey.com>
350 * marshall.hh (cc1_plugin::unmarshall): Use type traits.
351 * marshall-cp.hh (cc1_plugin::unmarshall): Remove overloads.
352 * marshall-c.hh: Remove.
353 * libcc1plugin.cc: Update includes.
354 * libcc1.cc: Update includes.
356 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
359 * configure: Regenerated.
361 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
363 * configure: Re-generate.
365 2020-12-18 Jakub Jelinek <jakub@redhat.com>
368 * configure.ac: Set darwin_dynamic_lookup=no instead to empty
370 * configure: Regenerated.
372 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
375 * Makefile.am: Add dynamic_lookup to LD flags for Darwin.
376 * configure.ac: Test for Darwin host and set a flag.
377 * Makefile.in: Regenerate.
378 * configure: Regenerate.
380 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
382 * configure: Regenerate.
384 2020-11-11 Patrick Palka <ppalka@redhat.com>
387 * libcp1plugin.cc (plugin_build_unary_expr): Pass true to
388 cxx_sizeof_or_alignof_expr.
390 2020-11-10 Marek Polacek <polacek@redhat.com>
393 * libcp1plugin.cc (plugin_add_static_assert): Pass false to
394 finish_static_assert.
396 2020-11-06 Nathan Sidwell <nathan@acm.org>
398 * libcc1plugin.cc (address_rewriter): Rename
399 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
400 * libcp1plugin.cc (supplement_binding): Likewise.
402 2020-10-14 Nathan Sidwell <nathan@acm.org>
404 * libcp1plugin.cc (plugin_add_friend): Set DECL_UNIQUE_FRIEND_P.
406 2020-10-07 Nathan Sidwell <nathan@acm.org>
408 * libcp1plugin.cc (supplement_binding): Rename
411 2020-10-02 Nathan Sidwell <nathan@acm.org>
413 * libcp1plugin.cc (libcp1plugin.cc): Drop DECL_ANTICIPATED test.
415 2020-09-25 Nathan Sidwell <nathan@acm.org>
417 * libcp1plugin.cc (supplement_binding): Use DECL_BULTIN_P.
419 2020-09-24 Nathan Sidwell <nathan@acm.org>
421 * libcp1plugin.cc (supplement_binding): Drop default args to
423 (safe_pushtag): Drop scope parm. Drop default args to pushtag.
424 (safe_pushdecl_maybe_friend): Rename to ...
425 (safe_pushdecl): ... here. Drop is_friend parm. Drop default args
427 (plugin_build_decl): Adjust safe_pushdecl & safe_pushtag calls.
428 (plugin_build_constant): Adjust safe_pushdecl call.
430 2020-09-10 Nathan Sidwell <nathan@acm.org>
432 * libcp1plugin.cc (plugin_build_call_expr): Use DECL_LOCAL_DECL_P.
434 2020-08-14 Nathan Sidwell <nathan@acm.org>
436 * libcp1plugin.cc (plugin_build_dependent_expr): Rename
437 lookup_name_real call.
439 2020-08-14 Nathan Sidwell <nathan@acm.org>
441 * libcp1plugin.cc (plugin_build_dependent_exp): Adjust
442 lookup_name_real call.
444 2020-08-14 Nathan Sidwell <nathan@acm.org>
446 * libcp1plugin.cc (plugin_build_dependent_expr): Adjust
447 lookup_name_real & lookup_qualified_name calls.
449 2020-08-13 Nathan Sidwell <nathan@acm.org>
451 * libcp1plugin.cc (plugin_build_dependent_expr): Likewise.
453 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
456 * configure: Regenerated.
458 2020-06-30 Nathan Sidwell <nathan@acm.org>
460 * libcp1plugin.cc (plugin_build_decl): Adjust clone_function_decl
463 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
466 * configure: Regenerated.
468 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
470 * configure: Regenerated.
472 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
474 * Makefile.am (AM_CXXFLAGS): Add $(CET_HOST_FLAGS).
475 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
476 AC_SUBST(CET_HOST_FLAGS).
477 * Makefile.in: Regenerated.
478 * aclocal.m4: Likewise.
479 * configure: Likewise.
481 2020-02-12 Patrick Palka <ppalka@redhat.com>
485 * libcp1plugin.cc (plugin_get_expr_type): No need to explicitly set
486 AUTO_IS_DECLTYPE anymore.
488 2020-01-07 Paolo Carlini <paolo.carlini@oracle.com>
490 * libcp1plugin.cc (plugin_build_new_expr): Update build_new call.
492 2020-01-01 Jakub Jelinek <jakub@redhat.com>
494 Update copyright years.
496 2019-12-30 Paolo Carlini <paolo.carlini@oracle.com>
498 * libcp1plugin.cc (plugin_build_unary_expr): Update delete_sanity
501 2019-12-18 Paolo Carlini <paolo.carlini@oracle.com>
503 * libcp1plugin.cc (plugin_build_unary_expr): Update build_throw
504 and cxx_sizeof_or_alignof_expr calls.
505 (plugin_build_unary_type_expr): Likewise for
506 cxx_sizeof_or_alignof_type.
508 2019-12-09 Paolo Carlini <paolo.carlini@oracle.com>
510 * libcp1plugin.cc (plugin_build_cast_expr): Adjust build_cast
513 2019-12-05 Paolo Carlini <paolo.carlini@oracle.com>
515 * libcp1plugin.cc (plugin_build_expression_list_expr): Adjust
516 build_functional_cast call.
518 2019-11-25 Paolo Carlini <paolo.carlini@oracle.com>
520 * libcp1plugin.cc (plugin_pragma_push_user_expression): Update
521 cp_build_indirect_ref call.
523 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
525 * configure: Regenerate.
527 2019-05-21 Nathan Sidwell <nathan@acm.org>
529 * libcp1plugin.cc (plugin_add_using_decl): Use
530 finish_nonmember_using_decl.
532 2019-05-20 Nathan Sidwell <nathan@acm.org>
534 * libcp1plugin.cc (plugin_add_using_namespace): Call renamed
535 finish_using_directive.
537 2019-01-01 Jakub Jelinek <jakub@redhat.com>
539 Update copyright years.
541 2018-11-13 David Malcolm <dmalcolm@redhat.com>
543 * libcc1plugin.cc: Replace "source_location" with "location_t".
544 (plugin_context::get_source_location): Rename to...
545 (plugin_context::get_location_t): ...this.
546 * libcp1plugin.cc: Likewise.
548 2018-10-31 Joseph Myers <joseph@codesourcery.com>
551 * configure.ac: Remove AC_PREREQ.
552 * Makefile.in, aclocal.m4, configure: Regenerate.
554 2018-04-18 David Malcolm <dmalcolm@redhat.com>
557 * configure: Regenerate.
559 2018-01-03 Jakub Jelinek <jakub@redhat.com>
561 Update copyright years.
563 2017-11-14 Boris Kolpackov <boris@codesynthesis.com>
565 * configure: Regenerate.
567 2017-11-16 Sergio Durigan Junior <sergiodj@redhat.com>
568 Pedro Alves <palves@redhat.com>
570 * Makefile.am: Remove references to c-compiler-name.h and
572 * Makefile.in: Regenerate.
573 * compiler-name.hh: New file.
574 * libcc1.cc: Don't include c-compiler-name.h. Include
576 * libcp1.cc: Don't include cp-compiler-name.h. Include
579 2017-11-01 Nathan Sidwell <nathan@acm.org>
581 * libcp1plugin.cc (plugin_build_decl): Use
582 DECL_OVERLOADED_OPERATOR_CODE_RAW.
584 2017-10-31 Nathan Sidwell <nathan@acm.org>
586 * libcp1plugin.cc (plugin_build_decl): Use ovl_op_identifier.
587 Directly set operator code.
588 (plugin_build_dependent_expr): Use ovl_op_identifier.
590 2017-10-04 Nathan Sidwell <nathan@acm.org>
592 * libcp1plugin.cc (supplement_binding): Don't use
593 maybe_remove_implicit_alias.
595 2017-07-20 Nathan Sidwell <nathan@acm.org>
598 * libcp1plugin.cc (plugin_build_decl): Member fns are on TYPE_FIELDS.
600 2017-07-12 Nathan Sidwell <nathan@acm.org>
602 * libcp1plugin.cc (plugin_build_decl): Use
603 DECL_CXX_{CON,DE}STRUCTOR directly.
605 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
607 * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
609 2017-06-30 Nathan Sidwell <nathan@acm.org>
611 * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name.
612 (plugin_build_dependent_expr): Likewise.
614 2017-06-26 Nathan Sidwell <nathan@acm.org>
616 * libcp1plugin.cc (plugin_build_decl): Don't set
617 DECL_ASSIGNMENT_OPERATOR_P.
619 2017-06-16 Nathan Sidwell <nathan@acm.org>
621 * libcp1plugin.cc (plugin_build_decl): Adjust parm building.
623 2017-05-26 Nathan Sidwell <nathan@acm.org>
625 * libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
627 * libcp1plugin.cc (plugin_add_using_namespace): Call
628 finish_namespace_using_directive.
630 2017-05-25 Nathan Sidwell <nathan@acm.org>
632 * libcp1plugin.cc (plugin_make_namespace_inline): Check and set
633 DECL_NAMESPACE_INLINE_P.
635 2017-05-23 Nathan Sidwell <nathan@acm.org>
637 * libcp1plugin.cc (plugin_add_using_decl): Call
638 finish_namespace_using_decl. Use assert not unreachable.
640 2017-05-11 Nathan Sidwell <nathan@acm.org>
642 * libcp1plugin.cc (safe_pushdecl_maybe_friend): Call pushdecl.
644 2017-05-10 Nathan Sidwell <nathan@acm.org>
646 * libcp1plugin.cc (plugin_build_decl): Adjust add_method call.
648 2017-04-15 Alexandre Oliva <aoliva@redhat.com>
650 * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
652 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
654 Introduce C++ support.
655 * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
656 (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
658 (plugin_LTLIBRARIES): Add libcp1plugin.la.
659 (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
660 (cp-compiler-name.h): ... this. New.
661 (c-compiler-name.h): Rename all over from...
662 (compiler-name.h): ... this. Create it atomically.
663 (marshall_c_source, marshall_cxx_source): New macros.
664 (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
665 Add marshall_c_source expansion.
666 (libcc1plugin.lo_CPPFLAGS): New macro.
667 (libcp1plugin_la_LDFLAGS): Likewise.
668 (libcp1plugin_la_SOURCES): Likewise.
669 (libcp1plugin.lo_CPPFLAGS): Likewise.
670 (libcp1plugin_la_LIBADD): Likewise.
671 (libcp1plugin_la_DEPENDENCIES): Likewise.
672 (libcp1plugin_la_LINK): Likewise.
673 (libcc1_la_SOURCES): Added marshall_c_source and
674 marshall_cxx_source expansions.
675 * Makefile.in: Rebuild.
676 * compiler-name.h: Rename all over to...
677 * c-compiler-name.h: ... this. Define C_COMPILER_NAME instead
679 * plugin.cc: Rename all over to...
680 * libcc1plugin.cc: ... this. Include marshall-c.hh.
681 (address_rewriter): Drop cleaning up of VLA sizes.
682 (plugin_build_decl): Mark decls as external.
683 (plugin_tagbind): Propagate name to all variants.
684 (build_anonymous_node): New.
685 (plugin_build_record_type): Use it instead of make_node.
686 (plugin_build_union_type): Likewise.
687 (plugin_build_enum_type): Likewise.
688 (plugin_finish_record_or_union): Update all type variants.
689 (safe_lookup_builtin_type): New.
690 (plugin_int_check): Factor out of, and add checks to, ...
691 (plugin_int_type): ... this. Rename to...
692 (plugin_int_type_v0): ... this.
693 (plugin_int_type): New interface, new implementation.
694 (plugin_char_type): New.
695 (plugin_float_type_v0): Rename from...
696 (plugin_float_type): ... this. New interface, new implementation.
697 (plugin_init): Bump handshake version.
698 * libcc1.cc: Include marshall-c.hh. Drop gcc-interface.h.
699 (call_binding_oracle): Rename to...
700 (c_call_binding_oracle): ... this, into anonymous namespace.
701 (call_symbol_address): Rename to...
702 (c_call_symbol_address): ... this, likewise.
703 (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
704 (libcc1::compiler::find): Refer to C_COMPILER_NAME.
705 (fork_exec): Bump to GCC_C_FE_VERSION_1.
706 (libcc1_compile): Prefix callbacks with c_.
707 (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
708 * libcc1.sym: Export gcc_cp_fe_context.
709 * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
710 * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
711 * libcp1plugin.sym: New.
712 * marshall-c.hh: New. Move C-specific types from...
713 * marshall.cc: ... this.
714 (cc1_plugin::marshall_array_start): New.
715 (cc1_plugin::marshall_array_elmts): New.
716 (cc1_plugin::marshall for gcc_type_array): Use the above.
717 (cc1_plugin::unmarshall_array_start): New.
718 (cc1_plugin::unmarshall_array_elmts): New.
719 (cc1_plugin::unmarshall for gcc_type_array): Use the above.
720 * marshall.hh: Declare the new array building blocks.
721 Drop C-specific unmarshall declarations.
722 * marshall-cp.hh: New.
723 * names.cc (GCC_METHOD#): Add LANG:: to method names.
724 (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
725 * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
726 corresponding namespaces.
727 * rpc.hh: Don't include marshall.hh.
728 [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
729 gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
731 2017-01-30 Jan Kratochvil <jan.kratochvil@redhat.com>
733 * findcomp.cc: Include system.h.
734 (search_dir): Return absolute filename.
736 * libcc1.cc (libcc1): Add class compiler with field compilerp,
737 class compiler_triplet_regexp and class
738 compiler_driver_filename.
739 (libcc1::libcc1): Initialize compilerp.
740 (libcc1::~libcc1): Delete compilerp.
741 (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
742 (libcc1::compiler_driver_filename::find): New methods.
743 (libcc1_set_arguments): Remove parameter triplet_regexp.
744 (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
745 (libcc1_set_arguments_v0): New functions.
746 (vtable): Use libcc1_set_arguments_v0, add
747 libcc1_set_arguments, libcc1_set_triplet_regexp and
748 libcc1_set_driver_filename.
750 * libcc1.cc: Include intl.h.
751 (struct libcc1): Add field verbose.
752 (libcc1::libcc1): Initialize it.
753 (libcc1_set_verbose): New function.
754 (libcc1_set_arguments): Print messages for VERBOSE.
755 (libcc1_compile): Remove parameter verbose. Use VERBOSE from
757 (libcc1_compile_v0): New function.
758 (vtable): Use libcc1_compile_v0 and add libcc1_compile and
761 * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
762 (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
764 2017-01-17 Jakub Jelinek <jakub@redhat.com>
767 * configure.ac: Add GCC_BASE_VER. For --with-gcc-major-version-only
768 use just major number from BASE-VER.
769 * configure: Regenerated.
770 * Makefile.in: Regenerated.
772 2017-01-04 Jakub Jelinek <jakub@redhat.com>
774 Update copyright years.
776 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
777 Alan Hayward <alan.hayward@arm.com>
778 David Sherwood <david.sherwood@arm.com>
780 * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
782 2016-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
786 2016-04-18 Michael Matz <matz@suse.de>
788 * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
790 2016-04-11 Segher Boessenkool <segher@kernel.crashing.org>
793 * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
794 (compiler-name.h): Shorten recipe so that it fits the line.
795 * Makefile.in: Regenerate.
797 2016-03-14 Andreas Schwab <schwab@suse.de>
799 * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
800 * configure: Regenerate.
801 * Makefile.in: Regenerate.
803 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
805 * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
806 rather than typed_free_remove. Remove redudant typedefs.
808 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
810 * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
811 than typed_noop_remove. Remove redudant typedefs.
812 (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
813 (plugin_context::mark): Likewise.
815 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
817 * Makefile.in: Regenerated with automake-1.11.6.
818 * aclocal.m4: Likewise.
819 * configure: Likewise.
821 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
823 * plugin.cc: Adjust for hash_table changes.
825 2015-04-15 Andreas Schwab <schwab@suse.de>
828 * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
829 * Makefile.in: Regenerated.
831 2015-01-30 Joseph Myers <joseph@codesourcery.com>
833 * plugin.cc: All callers of fatal_error changed to pass
834 input_location as first argument.
836 2015-01-09 Michael Collison <michael.collison@linaro.org>
838 * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
839 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
840 due to flattening of tree.h.
842 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
845 * configure: Regenerated.
847 2014-11-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
849 * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
850 * configure: Regenerate.
851 * connection.cc: Include <string.h>.
852 * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
854 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
857 * configure: Regenerate.
859 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
863 * plugin.cc: Don't include <string>.
865 2014-10-29 Jakub Jelinek <jakub@redhat.com>
866 Phil Muldoon <pmuldoon@redhat.com>
868 * configure.ac: Remove -Werror addition to WARN_FLAGS. Add
869 ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
870 * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
871 (WERROR_FLAG): Remove.
872 (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
873 * configure: Regenerated.
874 * Makefile.in: Regenerated.
876 2014-10-29 Jakub Jelinek <jakub@redhat.com>
878 * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
879 (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
881 (libiberty): Set to -Wc, followed by the first existing noasan/,
882 pic/ or . libiberty.a.
883 (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
884 libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
885 * Makefile.in: Regenerated.
887 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
888 Jan Kratochvil <jan.kratochvil@redhat.com>
889 Tom Tromey <tromey@redhat.com>
891 * aclocal.m4: New file.
892 * callbacks.cc: New file.
893 * callbacks.hh: New file.
894 * cc1plugin-config.h.in: New file.
895 * configure: New file.
896 * configure.ac: New file.
897 * connection.cc: New file.
898 * connection.hh: New file.
899 * findcomp.cc: New file.
900 * findcomp.hh: New file.
901 * libcc1.cc: New file.
902 * libcc1plugin.sym: New file.
903 * libcc1.sym: New file.
904 * Makefile.am: New file.
905 * Makefile.in: New file.
906 * marshall.cc: New file.
907 * marshall.hh: New file.
908 * names.cc: New file.
909 * names.hh: New file.
910 * plugin.cc: New file.
912 * status.hh: New file.