1 2024-02-09 Marek Polacek <polacek@redhat.com>
4 * libcp1plugin.cc (plugin_build_unary_expr): Pass tf_error to
7 2024-01-09 waffl3x <waffl3x@protonmail.com>
8 Jason Merrill <jason@redhat.com>
11 * libcp1plugin.cc (plugin_pragma_push_user_expression): Don't use
12 DECL_NONSTATIC_MEMBER_FUNCTION_P.
14 2023-12-06 David Malcolm <dmalcolm@redhat.com>
16 * context.cc (plugin_print_error_function): Make diagnostic_info
19 2023-11-16 Tom Tromey <tom@tromey.com>
21 * libcc1plugin.cc (plugin_build_enum_type): Set
24 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
26 * configure: Regenerate.
28 2023-08-11 Joseph Myers <joseph@codesourcery.com>
30 * configure: Regenerate.
32 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
34 * configure: Regenerate.
36 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
38 * configure: Regenerate.
40 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
42 * configure: Regenerate.
44 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
46 * configure: Regenerate.
48 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
50 * configure: Regenerate.
52 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
54 * configure: Regenerate.
56 2023-05-18 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
58 * libcc1plugin.cc (plugin_float_type): Ditto.
59 * libcp1plugin.cc (plugin_reactivate_decl): Ditto.
60 (plugin_get_float_type): Ditto.
62 2022-11-01 Nathan Sidwell <nathan@acm.org>
64 * libcp1plugin.cc (plugin_start_lambda_closure_class_type):
65 Initialize the per-scope, per-signature discriminator.
67 2022-11-01 Nathan Sidwell <nathan@acm.org>
69 * libcp1plugin.cc (plugin_start_closure): Adjust.
71 2022-10-12 Martin Liska <mliska@suse.cz>
73 * configure: Regenerate.
75 2022-10-11 Olivier Hainque <hainque@adacore.com>
76 Olivier Hainque <hainque@adacore.com>
78 * configure: Regenerate.
80 2022-06-27 Sergei Trofimovich <siarheit@google.com>
83 * libcc1plugin.cc: Include <memory> via "system.h".
84 * libcp1plugin.cc: Ditto.
86 2022-06-01 David Seifert <soap@gentoo.org>
89 * configure: Regenerate.
91 2021-12-16 Patrick Palka <ppalka@redhat.com>
96 * libcp1plugin.cc (plugin_build_unary_expr): Adjust call to
98 (plugin_build_binary_expr): Adjust call to build_x_binary_op.
100 2021-12-15 Iain Sandoe <iain@sandoe.co.uk>
102 * configure: Regenerate.
104 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
106 * Makefile.am: Switch mdynamic-no-pic to fPIC.
107 * Makefile.in: Regenerated.
109 2021-06-28 Martin Sebor <msebor@redhat.com>
111 * libcp1plugin.cc (record_decl_address): Replace a direct use
112 of TREE_NO_WARNING with suppress_warning.
114 2021-05-05 Tom Tromey <tom@tromey.com>
116 * compiler.cc (make_regexp): Take const std::string.
117 (cc1_plugin::compiler_triplet_regexp::find): Update.
119 2021-05-05 Tom Tromey <tom@tromey.com>
122 * compiler.hh (compiler_driver_filename): Take const char *.
123 (compiler_triplet_regexp): Likewise.
125 2021-05-05 Tom Tromey <tom@tromey.com>
127 * rpc.hh (argument_wrapper) <get>: Replace cast operator.
128 (argument_wrapper<T *>) <get>: Likewise.
129 (unmarshall): Add std::tuple overloads.
131 (class invoker): New.
132 * libcp1plugin.cc (plugin_init): Update.
133 * libcp1.cc (libcp1::add_callbacks): Update.
134 * libcc1plugin.cc (plugin_init): Update.
135 * libcc1.cc (libcc1::add_callbacks): Update.
136 * connection.cc (cc1_plugin::connection::do_wait): Update.
138 2021-05-05 Tom Tromey <tom@tromey.com>
140 * gdbctx.hh (do_compile): Use std::vector.
142 2021-05-05 Tom Tromey <tom@tromey.com>
144 * libcp1.cc (libcp1): Change parameters. Update.
145 (libcp1_set_verbose, libcp1_set_arguments)
146 (libcp1_set_triplet_regexp, libcp1_set_driver_filename)
147 (libcp1_set_source_file, libcp1_set_print_callback, fork_exec)
148 (libcp1_compile, libcp1_destroy, vtable): Remove.
149 (libcp1::add_callbacks): New method, extracted from
151 (gcc_c_fe_context): Update.
152 * libcc1.cc (libcc1): Change parameters. Update.
153 (libcc1_set_verbose, libcc1_set_arguments)
154 (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
155 (libcc1_set_source_file, libcc1_set_print_callback, fork_exec)
156 (libcc1_compile, libcc1_destroy, vtable): Remove.
157 (libcc1::add_callbacks): New method, extracted from
159 (gcc_c_fe_context): Update.
160 * gdbctx.hh (base_gdb_plugin): Change parameters.
161 (~base_gdb_plugin): New.
162 <add_callbacks>: New virtual method.
163 <plugin_name, fe_version, compiler_name, vtable>: New members.
164 (get_self, do_set_verbose, do_set_arguments)
165 (do_set_triplet_regexp, do_set_driver_filename)
166 (do_set_arguments_v0, do_set_source_file, do_set_print_callback)
167 (fork_exec, do_compile, do_compile_v0, do_destroy): New methods.
169 2021-05-05 Tom Tromey <tom@tromey.com>
171 * libcp1.cc (vtable): Use GCC_FE_VERSION_1.
173 2021-05-05 Tom Tromey <tom@tromey.com>
175 * libcp1.cc (struct libcp1): Derive from base_gdb_plugin. Remove
177 (class libcp1_connection): Remove.
179 (libcp1_set_verbose, libcp1_compile): Update.
180 (cp_call_binding_oracle, cp_call_symbol_address)
181 (cp_call_enter_scope, cp_call_leave_scope): Update.
182 * libcc1.cc (struct libcc1): Derive from base_gdb_plugin. Remove
184 (class libcc1_connection): Remove.
185 (c_call_binding_oracle, c_call_symbol_address): Update.
187 (libcc1_set_verbose, libcc1_compile): Update.
188 * gdbctx.hh: New file.
190 2021-05-05 Tom Tromey <tom@tromey.com>
192 * libcc1plugin.cc: Move code to context.cc.
193 * libcp1plugin.cc: Move code to context.cc.
194 * context.hh: New file.
195 * context.cc: New file.
196 * Makefile.in: Rebuild.
197 * Makefile.am (AM_CPPFLAGS): Add more gcc flags.
198 (CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): Update.
199 (libcc1plugin_la_SOURCES): Add context.hh, context.cc.
200 (libcp1plugin_la_SOURCES): Likewise.
202 2021-05-05 Tom Tromey <tom@tromey.com>
204 * libcp1plugin.cc: Use static assert.
206 2021-05-05 Tom Tromey <tom@tromey.com>
208 * libcp1plugin.cc (plugin_context::mark): Use foreach.
209 * libcc1plugin.cc (plugin_context::mark): Use foreach.
211 2021-05-05 Tom Tromey <tom@tromey.com>
213 * libcp1.cc (compiler, compiler_triplet_regexp)
214 (compiler_driver_filename): Remove.
215 (libcp1::libcp1): Update.
216 (make_regexp, libcp1::compiler::find)
217 (libcp1::compiler_triplet_regexp::find)
218 (libcp1::compiler_driver_filename::find): Remove.
219 (libcp1_set_verbose, libcp1_set_arguments)
220 (libcp1_set_triplet_regexp, libcp1_set_driver_filename): Update.
221 * libcc1.cc (compiler, compiler_triplet_regexp)
222 (compiler_driver_filename): Remove.
223 (libcc1::libcc1): Update.
224 (make_regexp, libcc1::compiler::find)
225 (libcc1::compiler_triplet_regexp::find)
226 (libcc1::compiler_driver_filename::find): Remove.
227 (libcc1_set_verbose, libcc1_set_arguments)
228 (libcc1_set_triplet_regexp, libcc1_set_driver_filename): Update.
229 * compiler.cc: New file.
230 * compiler.hh: New file.
231 * Makefile.in: Rebuild.
232 * Makefile.am (libcc1_la_SOURCES): Add compiler.hh, compiler.cc.
234 2021-05-05 Tom Tromey <tom@tromey.com>
236 * libcp1.cc (struct libcp1) <connection, compilerp>: Use
239 (libcp1_compile, libcp1_set_triplet_regexp)
240 (libcp1_set_driver_filename): Update.
241 * libcc1.cc (struct libcc1) <connection, compilerp>: Use
244 (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
245 (libcc1_compile): Update.
247 2021-05-05 Tom Tromey <tom@tromey.com>
249 * rpc.hh (deleter): Move template and some specializations to
251 (argument_wrapper<const T *>): Use cc1_plugin::unique_ptr.
252 * marshall.cc (cc1_plugin::unmarshall): Use
253 cc1_plugin::unique_ptr.
254 * marshall-cp.hh (deleter): New specializations.
255 (unmarshall): Use cc1_plugin::unique_ptr.
256 * deleter.hh: New file.
258 2021-05-05 Tom Tromey <tom@tromey.com>
260 * rpc.hh (struct deleter): New template class and
262 (argument_wrapper): Remove specializations. Add specialization
263 for any pointer type.
265 2021-05-05 Tom Tromey <tom@tromey.com>
267 * libcp1plugin.cc (plugin_build_function_type): Use std::vector.
268 * libcc1plugin.cc (plugin_build_function_type): Use std::vector.
270 2021-05-05 Tom Tromey <tom@tromey.com>
272 * libcp1.cc (rpc): Use variadic template. Remove overloads.
273 * libcc1.cc (rpc): Use variadic template. Remove overloads.
275 2021-05-05 Tom Tromey <tom@tromey.com>
277 * rpc.hh (call): Use variadic template. Remove overloads.
278 * marshall.hh (marshall): Add base overload. Use variadic
281 2021-05-05 Tom Tromey <tom@tromey.com>
283 * rpc.hh (argument_wrapper): Use delete for copy constructor.
284 * connection.hh (class connection): Use delete for copy
286 * callbacks.hh (class callbacks): Use delete for copy constructor.
288 2021-05-05 Tom Tromey <tom@tromey.com>
290 * connection.hh (~connection): Use default.
292 * connection.cc (cc1_plugin::connection::~connection)
293 (cc1_plugin::connection::print): Remove definitions.
295 2021-05-05 Tom Tromey <tom@tromey.com>
297 * libcp1.cc (class compiler_triplet_regexp)
298 (class compiler_driver_filename, class libcp1_connection): Use
300 * libcc1.cc (class compiler_triplet_regexp)
301 (class compiler_driver_filename, class libcc1_connection): Use
304 2021-05-05 Tom Tromey <tom@tromey.com>
306 * marshall.hh (cc1_plugin::unmarshall): Use type traits.
307 * marshall-cp.hh (cc1_plugin::unmarshall): Remove overloads.
308 * marshall-c.hh: Remove.
309 * libcc1plugin.cc: Update includes.
310 * libcc1.cc: Update includes.
312 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
315 * configure: Regenerated.
317 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
319 * configure: Re-generate.
321 2020-12-18 Jakub Jelinek <jakub@redhat.com>
324 * configure.ac: Set darwin_dynamic_lookup=no instead to empty
326 * configure: Regenerated.
328 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
331 * Makefile.am: Add dynamic_lookup to LD flags for Darwin.
332 * configure.ac: Test for Darwin host and set a flag.
333 * Makefile.in: Regenerate.
334 * configure: Regenerate.
336 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
338 * configure: Regenerate.
340 2020-11-11 Patrick Palka <ppalka@redhat.com>
343 * libcp1plugin.cc (plugin_build_unary_expr): Pass true to
344 cxx_sizeof_or_alignof_expr.
346 2020-11-10 Marek Polacek <polacek@redhat.com>
349 * libcp1plugin.cc (plugin_add_static_assert): Pass false to
350 finish_static_assert.
352 2020-11-06 Nathan Sidwell <nathan@acm.org>
354 * libcc1plugin.cc (address_rewriter): Rename
355 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
356 * libcp1plugin.cc (supplement_binding): Likewise.
358 2020-10-14 Nathan Sidwell <nathan@acm.org>
360 * libcp1plugin.cc (plugin_add_friend): Set DECL_UNIQUE_FRIEND_P.
362 2020-10-07 Nathan Sidwell <nathan@acm.org>
364 * libcp1plugin.cc (supplement_binding): Rename
367 2020-10-02 Nathan Sidwell <nathan@acm.org>
369 * libcp1plugin.cc (libcp1plugin.cc): Drop DECL_ANTICIPATED test.
371 2020-09-25 Nathan Sidwell <nathan@acm.org>
373 * libcp1plugin.cc (supplement_binding): Use DECL_BULTIN_P.
375 2020-09-24 Nathan Sidwell <nathan@acm.org>
377 * libcp1plugin.cc (supplement_binding): Drop default args to
379 (safe_pushtag): Drop scope parm. Drop default args to pushtag.
380 (safe_pushdecl_maybe_friend): Rename to ...
381 (safe_pushdecl): ... here. Drop is_friend parm. Drop default args
383 (plugin_build_decl): Adjust safe_pushdecl & safe_pushtag calls.
384 (plugin_build_constant): Adjust safe_pushdecl call.
386 2020-09-10 Nathan Sidwell <nathan@acm.org>
388 * libcp1plugin.cc (plugin_build_call_expr): Use DECL_LOCAL_DECL_P.
390 2020-08-14 Nathan Sidwell <nathan@acm.org>
392 * libcp1plugin.cc (plugin_build_dependent_expr): Rename
393 lookup_name_real call.
395 2020-08-14 Nathan Sidwell <nathan@acm.org>
397 * libcp1plugin.cc (plugin_build_dependent_exp): Adjust
398 lookup_name_real call.
400 2020-08-14 Nathan Sidwell <nathan@acm.org>
402 * libcp1plugin.cc (plugin_build_dependent_expr): Adjust
403 lookup_name_real & lookup_qualified_name calls.
405 2020-08-13 Nathan Sidwell <nathan@acm.org>
407 * libcp1plugin.cc (plugin_build_dependent_expr): Likewise.
409 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
412 * configure: Regenerated.
414 2020-06-30 Nathan Sidwell <nathan@acm.org>
416 * libcp1plugin.cc (plugin_build_decl): Adjust clone_function_decl
419 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
422 * configure: Regenerated.
424 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
426 * configure: Regenerated.
428 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
430 * Makefile.am (AM_CXXFLAGS): Add $(CET_HOST_FLAGS).
431 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
432 AC_SUBST(CET_HOST_FLAGS).
433 * Makefile.in: Regenerated.
434 * aclocal.m4: Likewise.
435 * configure: Likewise.
437 2020-02-12 Patrick Palka <ppalka@redhat.com>
441 * libcp1plugin.cc (plugin_get_expr_type): No need to explicitly set
442 AUTO_IS_DECLTYPE anymore.
444 2020-01-07 Paolo Carlini <paolo.carlini@oracle.com>
446 * libcp1plugin.cc (plugin_build_new_expr): Update build_new call.
448 2020-01-01 Jakub Jelinek <jakub@redhat.com>
450 Update copyright years.
452 2019-12-30 Paolo Carlini <paolo.carlini@oracle.com>
454 * libcp1plugin.cc (plugin_build_unary_expr): Update delete_sanity
457 2019-12-18 Paolo Carlini <paolo.carlini@oracle.com>
459 * libcp1plugin.cc (plugin_build_unary_expr): Update build_throw
460 and cxx_sizeof_or_alignof_expr calls.
461 (plugin_build_unary_type_expr): Likewise for
462 cxx_sizeof_or_alignof_type.
464 2019-12-09 Paolo Carlini <paolo.carlini@oracle.com>
466 * libcp1plugin.cc (plugin_build_cast_expr): Adjust build_cast
469 2019-12-05 Paolo Carlini <paolo.carlini@oracle.com>
471 * libcp1plugin.cc (plugin_build_expression_list_expr): Adjust
472 build_functional_cast call.
474 2019-11-25 Paolo Carlini <paolo.carlini@oracle.com>
476 * libcp1plugin.cc (plugin_pragma_push_user_expression): Update
477 cp_build_indirect_ref call.
479 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
481 * configure: Regenerate.
483 2019-05-21 Nathan Sidwell <nathan@acm.org>
485 * libcp1plugin.cc (plugin_add_using_decl): Use
486 finish_nonmember_using_decl.
488 2019-05-20 Nathan Sidwell <nathan@acm.org>
490 * libcp1plugin.cc (plugin_add_using_namespace): Call renamed
491 finish_using_directive.
493 2019-01-01 Jakub Jelinek <jakub@redhat.com>
495 Update copyright years.
497 2018-11-13 David Malcolm <dmalcolm@redhat.com>
499 * libcc1plugin.cc: Replace "source_location" with "location_t".
500 (plugin_context::get_source_location): Rename to...
501 (plugin_context::get_location_t): ...this.
502 * libcp1plugin.cc: Likewise.
504 2018-10-31 Joseph Myers <joseph@codesourcery.com>
507 * configure.ac: Remove AC_PREREQ.
508 * Makefile.in, aclocal.m4, configure: Regenerate.
510 2018-04-18 David Malcolm <dmalcolm@redhat.com>
513 * configure: Regenerate.
515 2018-01-03 Jakub Jelinek <jakub@redhat.com>
517 Update copyright years.
519 2017-11-14 Boris Kolpackov <boris@codesynthesis.com>
521 * configure: Regenerate.
523 2017-11-16 Sergio Durigan Junior <sergiodj@redhat.com>
524 Pedro Alves <palves@redhat.com>
526 * Makefile.am: Remove references to c-compiler-name.h and
528 * Makefile.in: Regenerate.
529 * compiler-name.hh: New file.
530 * libcc1.cc: Don't include c-compiler-name.h. Include
532 * libcp1.cc: Don't include cp-compiler-name.h. Include
535 2017-11-01 Nathan Sidwell <nathan@acm.org>
537 * libcp1plugin.cc (plugin_build_decl): Use
538 DECL_OVERLOADED_OPERATOR_CODE_RAW.
540 2017-10-31 Nathan Sidwell <nathan@acm.org>
542 * libcp1plugin.cc (plugin_build_decl): Use ovl_op_identifier.
543 Directly set operator code.
544 (plugin_build_dependent_expr): Use ovl_op_identifier.
546 2017-10-04 Nathan Sidwell <nathan@acm.org>
548 * libcp1plugin.cc (supplement_binding): Don't use
549 maybe_remove_implicit_alias.
551 2017-07-20 Nathan Sidwell <nathan@acm.org>
554 * libcp1plugin.cc (plugin_build_decl): Member fns are on TYPE_FIELDS.
556 2017-07-12 Nathan Sidwell <nathan@acm.org>
558 * libcp1plugin.cc (plugin_build_decl): Use
559 DECL_CXX_{CON,DE}STRUCTOR directly.
561 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
563 * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
565 2017-06-30 Nathan Sidwell <nathan@acm.org>
567 * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name.
568 (plugin_build_dependent_expr): Likewise.
570 2017-06-26 Nathan Sidwell <nathan@acm.org>
572 * libcp1plugin.cc (plugin_build_decl): Don't set
573 DECL_ASSIGNMENT_OPERATOR_P.
575 2017-06-16 Nathan Sidwell <nathan@acm.org>
577 * libcp1plugin.cc (plugin_build_decl): Adjust parm building.
579 2017-05-26 Nathan Sidwell <nathan@acm.org>
581 * libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
583 * libcp1plugin.cc (plugin_add_using_namespace): Call
584 finish_namespace_using_directive.
586 2017-05-25 Nathan Sidwell <nathan@acm.org>
588 * libcp1plugin.cc (plugin_make_namespace_inline): Check and set
589 DECL_NAMESPACE_INLINE_P.
591 2017-05-23 Nathan Sidwell <nathan@acm.org>
593 * libcp1plugin.cc (plugin_add_using_decl): Call
594 finish_namespace_using_decl. Use assert not unreachable.
596 2017-05-11 Nathan Sidwell <nathan@acm.org>
598 * libcp1plugin.cc (safe_pushdecl_maybe_friend): Call pushdecl.
600 2017-05-10 Nathan Sidwell <nathan@acm.org>
602 * libcp1plugin.cc (plugin_build_decl): Adjust add_method call.
604 2017-04-15 Alexandre Oliva <aoliva@redhat.com>
606 * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
608 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
610 Introduce C++ support.
611 * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
612 (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
614 (plugin_LTLIBRARIES): Add libcp1plugin.la.
615 (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
616 (cp-compiler-name.h): ... this. New.
617 (c-compiler-name.h): Rename all over from...
618 (compiler-name.h): ... this. Create it atomically.
619 (marshall_c_source, marshall_cxx_source): New macros.
620 (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
621 Add marshall_c_source expansion.
622 (libcc1plugin.lo_CPPFLAGS): New macro.
623 (libcp1plugin_la_LDFLAGS): Likewise.
624 (libcp1plugin_la_SOURCES): Likewise.
625 (libcp1plugin.lo_CPPFLAGS): Likewise.
626 (libcp1plugin_la_LIBADD): Likewise.
627 (libcp1plugin_la_DEPENDENCIES): Likewise.
628 (libcp1plugin_la_LINK): Likewise.
629 (libcc1_la_SOURCES): Added marshall_c_source and
630 marshall_cxx_source expansions.
631 * Makefile.in: Rebuild.
632 * compiler-name.h: Rename all over to...
633 * c-compiler-name.h: ... this. Define C_COMPILER_NAME instead
635 * plugin.cc: Rename all over to...
636 * libcc1plugin.cc: ... this. Include marshall-c.hh.
637 (address_rewriter): Drop cleaning up of VLA sizes.
638 (plugin_build_decl): Mark decls as external.
639 (plugin_tagbind): Propagate name to all variants.
640 (build_anonymous_node): New.
641 (plugin_build_record_type): Use it instead of make_node.
642 (plugin_build_union_type): Likewise.
643 (plugin_build_enum_type): Likewise.
644 (plugin_finish_record_or_union): Update all type variants.
645 (safe_lookup_builtin_type): New.
646 (plugin_int_check): Factor out of, and add checks to, ...
647 (plugin_int_type): ... this. Rename to...
648 (plugin_int_type_v0): ... this.
649 (plugin_int_type): New interface, new implementation.
650 (plugin_char_type): New.
651 (plugin_float_type_v0): Rename from...
652 (plugin_float_type): ... this. New interface, new implementation.
653 (plugin_init): Bump handshake version.
654 * libcc1.cc: Include marshall-c.hh. Drop gcc-interface.h.
655 (call_binding_oracle): Rename to...
656 (c_call_binding_oracle): ... this, into anonymous namespace.
657 (call_symbol_address): Rename to...
658 (c_call_symbol_address): ... this, likewise.
659 (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
660 (libcc1::compiler::find): Refer to C_COMPILER_NAME.
661 (fork_exec): Bump to GCC_C_FE_VERSION_1.
662 (libcc1_compile): Prefix callbacks with c_.
663 (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
664 * libcc1.sym: Export gcc_cp_fe_context.
665 * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
666 * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
667 * libcp1plugin.sym: New.
668 * marshall-c.hh: New. Move C-specific types from...
669 * marshall.cc: ... this.
670 (cc1_plugin::marshall_array_start): New.
671 (cc1_plugin::marshall_array_elmts): New.
672 (cc1_plugin::marshall for gcc_type_array): Use the above.
673 (cc1_plugin::unmarshall_array_start): New.
674 (cc1_plugin::unmarshall_array_elmts): New.
675 (cc1_plugin::unmarshall for gcc_type_array): Use the above.
676 * marshall.hh: Declare the new array building blocks.
677 Drop C-specific unmarshall declarations.
678 * marshall-cp.hh: New.
679 * names.cc (GCC_METHOD#): Add LANG:: to method names.
680 (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
681 * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
682 corresponding namespaces.
683 * rpc.hh: Don't include marshall.hh.
684 [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
685 gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
687 2017-01-30 Jan Kratochvil <jan.kratochvil@redhat.com>
689 * findcomp.cc: Include system.h.
690 (search_dir): Return absolute filename.
692 * libcc1.cc (libcc1): Add class compiler with field compilerp,
693 class compiler_triplet_regexp and class
694 compiler_driver_filename.
695 (libcc1::libcc1): Initialize compilerp.
696 (libcc1::~libcc1): Delete compilerp.
697 (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
698 (libcc1::compiler_driver_filename::find): New methods.
699 (libcc1_set_arguments): Remove parameter triplet_regexp.
700 (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
701 (libcc1_set_arguments_v0): New functions.
702 (vtable): Use libcc1_set_arguments_v0, add
703 libcc1_set_arguments, libcc1_set_triplet_regexp and
704 libcc1_set_driver_filename.
706 * libcc1.cc: Include intl.h.
707 (struct libcc1): Add field verbose.
708 (libcc1::libcc1): Initialize it.
709 (libcc1_set_verbose): New function.
710 (libcc1_set_arguments): Print messages for VERBOSE.
711 (libcc1_compile): Remove parameter verbose. Use VERBOSE from
713 (libcc1_compile_v0): New function.
714 (vtable): Use libcc1_compile_v0 and add libcc1_compile and
717 * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
718 (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
720 2017-01-17 Jakub Jelinek <jakub@redhat.com>
723 * configure.ac: Add GCC_BASE_VER. For --with-gcc-major-version-only
724 use just major number from BASE-VER.
725 * configure: Regenerated.
726 * Makefile.in: Regenerated.
728 2017-01-04 Jakub Jelinek <jakub@redhat.com>
730 Update copyright years.
732 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
733 Alan Hayward <alan.hayward@arm.com>
734 David Sherwood <david.sherwood@arm.com>
736 * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
738 2016-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
742 2016-04-18 Michael Matz <matz@suse.de>
744 * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
746 2016-04-11 Segher Boessenkool <segher@kernel.crashing.org>
749 * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
750 (compiler-name.h): Shorten recipe so that it fits the line.
751 * Makefile.in: Regenerate.
753 2016-03-14 Andreas Schwab <schwab@suse.de>
755 * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
756 * configure: Regenerate.
757 * Makefile.in: Regenerate.
759 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
761 * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
762 rather than typed_free_remove. Remove redudant typedefs.
764 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
766 * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
767 than typed_noop_remove. Remove redudant typedefs.
768 (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
769 (plugin_context::mark): Likewise.
771 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
773 * Makefile.in: Regenerated with automake-1.11.6.
774 * aclocal.m4: Likewise.
775 * configure: Likewise.
777 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
779 * plugin.cc: Adjust for hash_table changes.
781 2015-04-15 Andreas Schwab <schwab@suse.de>
784 * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
785 * Makefile.in: Regenerated.
787 2015-01-30 Joseph Myers <joseph@codesourcery.com>
789 * plugin.cc: All callers of fatal_error changed to pass
790 input_location as first argument.
792 2015-01-09 Michael Collison <michael.collison@linaro.org>
794 * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
795 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
796 due to flattening of tree.h.
798 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
801 * configure: Regenerated.
803 2014-11-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
805 * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
806 * configure: Regenerate.
807 * connection.cc: Include <string.h>.
808 * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
810 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
813 * configure: Regenerate.
815 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
819 * plugin.cc: Don't include <string>.
821 2014-10-29 Jakub Jelinek <jakub@redhat.com>
822 Phil Muldoon <pmuldoon@redhat.com>
824 * configure.ac: Remove -Werror addition to WARN_FLAGS. Add
825 ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
826 * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
827 (WERROR_FLAG): Remove.
828 (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
829 * configure: Regenerated.
830 * Makefile.in: Regenerated.
832 2014-10-29 Jakub Jelinek <jakub@redhat.com>
834 * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
835 (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
837 (libiberty): Set to -Wc, followed by the first existing noasan/,
838 pic/ or . libiberty.a.
839 (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
840 libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
841 * Makefile.in: Regenerated.
843 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
844 Jan Kratochvil <jan.kratochvil@redhat.com>
845 Tom Tromey <tromey@redhat.com>
847 * aclocal.m4: New file.
848 * callbacks.cc: New file.
849 * callbacks.hh: New file.
850 * cc1plugin-config.h.in: New file.
851 * configure: New file.
852 * configure.ac: New file.
853 * connection.cc: New file.
854 * connection.hh: New file.
855 * findcomp.cc: New file.
856 * findcomp.hh: New file.
857 * libcc1.cc: New file.
858 * libcc1plugin.sym: New file.
859 * libcc1.sym: New file.
860 * Makefile.am: New file.
861 * Makefile.in: New file.
862 * marshall.cc: New file.
863 * marshall.hh: New file.
864 * names.cc: New file.
865 * names.hh: New file.
866 * plugin.cc: New file.
868 * status.hh: New file.