1 2023-12-06 David Malcolm <dmalcolm@redhat.com>
3 * context.cc (plugin_print_error_function): Make diagnostic_info
6 2023-11-16 Tom Tromey <tom@tromey.com>
8 * libcc1plugin.cc (plugin_build_enum_type): Set
11 2023-10-22 Iain Sandoe <iain@sandoe.co.uk>
13 * configure: Regenerate.
15 2023-08-11 Joseph Myers <joseph@codesourcery.com>
17 * configure: Regenerate.
19 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
21 * configure: Regenerate.
23 2023-08-07 Alexander von Gluck IV <kallisti5@unixzen.com>
25 * configure: Regenerate.
27 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
29 * configure: Regenerate.
31 2023-08-07 Nick Alcock <nick.alcock@oracle.com>
33 * configure: Regenerate.
35 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
37 * configure: Regenerate.
39 2023-08-07 H.J. Lu <hjl.tools@gmail.com>
41 * configure: Regenerate.
43 2023-05-18 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
45 * libcc1plugin.cc (plugin_float_type): Ditto.
46 * libcp1plugin.cc (plugin_reactivate_decl): Ditto.
47 (plugin_get_float_type): Ditto.
49 2022-11-01 Nathan Sidwell <nathan@acm.org>
51 * libcp1plugin.cc (plugin_start_lambda_closure_class_type):
52 Initialize the per-scope, per-signature discriminator.
54 2022-11-01 Nathan Sidwell <nathan@acm.org>
56 * libcp1plugin.cc (plugin_start_closure): Adjust.
58 2022-10-12 Martin Liska <mliska@suse.cz>
60 * configure: Regenerate.
62 2022-10-11 Olivier Hainque <hainque@adacore.com>
63 Olivier Hainque <hainque@adacore.com>
65 * configure: Regenerate.
67 2022-06-27 Sergei Trofimovich <siarheit@google.com>
70 * libcc1plugin.cc: Include <memory> via "system.h".
71 * libcp1plugin.cc: Ditto.
73 2022-06-01 David Seifert <soap@gentoo.org>
76 * configure: Regenerate.
78 2021-12-16 Patrick Palka <ppalka@redhat.com>
83 * libcp1plugin.cc (plugin_build_unary_expr): Adjust call to
85 (plugin_build_binary_expr): Adjust call to build_x_binary_op.
87 2021-12-15 Iain Sandoe <iain@sandoe.co.uk>
89 * configure: Regenerate.
91 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
93 * Makefile.am: Switch mdynamic-no-pic to fPIC.
94 * Makefile.in: Regenerated.
96 2021-06-28 Martin Sebor <msebor@redhat.com>
98 * libcp1plugin.cc (record_decl_address): Replace a direct use
99 of TREE_NO_WARNING with suppress_warning.
101 2021-05-05 Tom Tromey <tom@tromey.com>
103 * compiler.cc (make_regexp): Take const std::string.
104 (cc1_plugin::compiler_triplet_regexp::find): Update.
106 2021-05-05 Tom Tromey <tom@tromey.com>
109 * compiler.hh (compiler_driver_filename): Take const char *.
110 (compiler_triplet_regexp): Likewise.
112 2021-05-05 Tom Tromey <tom@tromey.com>
114 * rpc.hh (argument_wrapper) <get>: Replace cast operator.
115 (argument_wrapper<T *>) <get>: Likewise.
116 (unmarshall): Add std::tuple overloads.
118 (class invoker): New.
119 * libcp1plugin.cc (plugin_init): Update.
120 * libcp1.cc (libcp1::add_callbacks): Update.
121 * libcc1plugin.cc (plugin_init): Update.
122 * libcc1.cc (libcc1::add_callbacks): Update.
123 * connection.cc (cc1_plugin::connection::do_wait): Update.
125 2021-05-05 Tom Tromey <tom@tromey.com>
127 * gdbctx.hh (do_compile): Use std::vector.
129 2021-05-05 Tom Tromey <tom@tromey.com>
131 * libcp1.cc (libcp1): Change parameters. Update.
132 (libcp1_set_verbose, libcp1_set_arguments)
133 (libcp1_set_triplet_regexp, libcp1_set_driver_filename)
134 (libcp1_set_source_file, libcp1_set_print_callback, fork_exec)
135 (libcp1_compile, libcp1_destroy, vtable): Remove.
136 (libcp1::add_callbacks): New method, extracted from
138 (gcc_c_fe_context): Update.
139 * libcc1.cc (libcc1): Change parameters. Update.
140 (libcc1_set_verbose, libcc1_set_arguments)
141 (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
142 (libcc1_set_source_file, libcc1_set_print_callback, fork_exec)
143 (libcc1_compile, libcc1_destroy, vtable): Remove.
144 (libcc1::add_callbacks): New method, extracted from
146 (gcc_c_fe_context): Update.
147 * gdbctx.hh (base_gdb_plugin): Change parameters.
148 (~base_gdb_plugin): New.
149 <add_callbacks>: New virtual method.
150 <plugin_name, fe_version, compiler_name, vtable>: New members.
151 (get_self, do_set_verbose, do_set_arguments)
152 (do_set_triplet_regexp, do_set_driver_filename)
153 (do_set_arguments_v0, do_set_source_file, do_set_print_callback)
154 (fork_exec, do_compile, do_compile_v0, do_destroy): New methods.
156 2021-05-05 Tom Tromey <tom@tromey.com>
158 * libcp1.cc (vtable): Use GCC_FE_VERSION_1.
160 2021-05-05 Tom Tromey <tom@tromey.com>
162 * libcp1.cc (struct libcp1): Derive from base_gdb_plugin. Remove
164 (class libcp1_connection): Remove.
166 (libcp1_set_verbose, libcp1_compile): Update.
167 (cp_call_binding_oracle, cp_call_symbol_address)
168 (cp_call_enter_scope, cp_call_leave_scope): Update.
169 * libcc1.cc (struct libcc1): Derive from base_gdb_plugin. Remove
171 (class libcc1_connection): Remove.
172 (c_call_binding_oracle, c_call_symbol_address): Update.
174 (libcc1_set_verbose, libcc1_compile): Update.
175 * gdbctx.hh: New file.
177 2021-05-05 Tom Tromey <tom@tromey.com>
179 * libcc1plugin.cc: Move code to context.cc.
180 * libcp1plugin.cc: Move code to context.cc.
181 * context.hh: New file.
182 * context.cc: New file.
183 * Makefile.in: Rebuild.
184 * Makefile.am (AM_CPPFLAGS): Add more gcc flags.
185 (CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): Update.
186 (libcc1plugin_la_SOURCES): Add context.hh, context.cc.
187 (libcp1plugin_la_SOURCES): Likewise.
189 2021-05-05 Tom Tromey <tom@tromey.com>
191 * libcp1plugin.cc: Use static assert.
193 2021-05-05 Tom Tromey <tom@tromey.com>
195 * libcp1plugin.cc (plugin_context::mark): Use foreach.
196 * libcc1plugin.cc (plugin_context::mark): Use foreach.
198 2021-05-05 Tom Tromey <tom@tromey.com>
200 * libcp1.cc (compiler, compiler_triplet_regexp)
201 (compiler_driver_filename): Remove.
202 (libcp1::libcp1): Update.
203 (make_regexp, libcp1::compiler::find)
204 (libcp1::compiler_triplet_regexp::find)
205 (libcp1::compiler_driver_filename::find): Remove.
206 (libcp1_set_verbose, libcp1_set_arguments)
207 (libcp1_set_triplet_regexp, libcp1_set_driver_filename): Update.
208 * libcc1.cc (compiler, compiler_triplet_regexp)
209 (compiler_driver_filename): Remove.
210 (libcc1::libcc1): Update.
211 (make_regexp, libcc1::compiler::find)
212 (libcc1::compiler_triplet_regexp::find)
213 (libcc1::compiler_driver_filename::find): Remove.
214 (libcc1_set_verbose, libcc1_set_arguments)
215 (libcc1_set_triplet_regexp, libcc1_set_driver_filename): Update.
216 * compiler.cc: New file.
217 * compiler.hh: New file.
218 * Makefile.in: Rebuild.
219 * Makefile.am (libcc1_la_SOURCES): Add compiler.hh, compiler.cc.
221 2021-05-05 Tom Tromey <tom@tromey.com>
223 * libcp1.cc (struct libcp1) <connection, compilerp>: Use
226 (libcp1_compile, libcp1_set_triplet_regexp)
227 (libcp1_set_driver_filename): Update.
228 * libcc1.cc (struct libcc1) <connection, compilerp>: Use
231 (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
232 (libcc1_compile): Update.
234 2021-05-05 Tom Tromey <tom@tromey.com>
236 * rpc.hh (deleter): Move template and some specializations to
238 (argument_wrapper<const T *>): Use cc1_plugin::unique_ptr.
239 * marshall.cc (cc1_plugin::unmarshall): Use
240 cc1_plugin::unique_ptr.
241 * marshall-cp.hh (deleter): New specializations.
242 (unmarshall): Use cc1_plugin::unique_ptr.
243 * deleter.hh: New file.
245 2021-05-05 Tom Tromey <tom@tromey.com>
247 * rpc.hh (struct deleter): New template class and
249 (argument_wrapper): Remove specializations. Add specialization
250 for any pointer type.
252 2021-05-05 Tom Tromey <tom@tromey.com>
254 * libcp1plugin.cc (plugin_build_function_type): Use std::vector.
255 * libcc1plugin.cc (plugin_build_function_type): Use std::vector.
257 2021-05-05 Tom Tromey <tom@tromey.com>
259 * libcp1.cc (rpc): Use variadic template. Remove overloads.
260 * libcc1.cc (rpc): Use variadic template. Remove overloads.
262 2021-05-05 Tom Tromey <tom@tromey.com>
264 * rpc.hh (call): Use variadic template. Remove overloads.
265 * marshall.hh (marshall): Add base overload. Use variadic
268 2021-05-05 Tom Tromey <tom@tromey.com>
270 * rpc.hh (argument_wrapper): Use delete for copy constructor.
271 * connection.hh (class connection): Use delete for copy
273 * callbacks.hh (class callbacks): Use delete for copy constructor.
275 2021-05-05 Tom Tromey <tom@tromey.com>
277 * connection.hh (~connection): Use default.
279 * connection.cc (cc1_plugin::connection::~connection)
280 (cc1_plugin::connection::print): Remove definitions.
282 2021-05-05 Tom Tromey <tom@tromey.com>
284 * libcp1.cc (class compiler_triplet_regexp)
285 (class compiler_driver_filename, class libcp1_connection): Use
287 * libcc1.cc (class compiler_triplet_regexp)
288 (class compiler_driver_filename, class libcc1_connection): Use
291 2021-05-05 Tom Tromey <tom@tromey.com>
293 * marshall.hh (cc1_plugin::unmarshall): Use type traits.
294 * marshall-cp.hh (cc1_plugin::unmarshall): Remove overloads.
295 * marshall-c.hh: Remove.
296 * libcc1plugin.cc: Update includes.
297 * libcc1.cc: Update includes.
299 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
302 * configure: Regenerated.
304 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
306 * configure: Re-generate.
308 2020-12-18 Jakub Jelinek <jakub@redhat.com>
311 * configure.ac: Set darwin_dynamic_lookup=no instead to empty
313 * configure: Regenerated.
315 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
318 * Makefile.am: Add dynamic_lookup to LD flags for Darwin.
319 * configure.ac: Test for Darwin host and set a flag.
320 * Makefile.in: Regenerate.
321 * configure: Regenerate.
323 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
325 * configure: Regenerate.
327 2020-11-11 Patrick Palka <ppalka@redhat.com>
330 * libcp1plugin.cc (plugin_build_unary_expr): Pass true to
331 cxx_sizeof_or_alignof_expr.
333 2020-11-10 Marek Polacek <polacek@redhat.com>
336 * libcp1plugin.cc (plugin_add_static_assert): Pass false to
337 finish_static_assert.
339 2020-11-06 Nathan Sidwell <nathan@acm.org>
341 * libcc1plugin.cc (address_rewriter): Rename
342 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
343 * libcp1plugin.cc (supplement_binding): Likewise.
345 2020-10-14 Nathan Sidwell <nathan@acm.org>
347 * libcp1plugin.cc (plugin_add_friend): Set DECL_UNIQUE_FRIEND_P.
349 2020-10-07 Nathan Sidwell <nathan@acm.org>
351 * libcp1plugin.cc (supplement_binding): Rename
354 2020-10-02 Nathan Sidwell <nathan@acm.org>
356 * libcp1plugin.cc (libcp1plugin.cc): Drop DECL_ANTICIPATED test.
358 2020-09-25 Nathan Sidwell <nathan@acm.org>
360 * libcp1plugin.cc (supplement_binding): Use DECL_BULTIN_P.
362 2020-09-24 Nathan Sidwell <nathan@acm.org>
364 * libcp1plugin.cc (supplement_binding): Drop default args to
366 (safe_pushtag): Drop scope parm. Drop default args to pushtag.
367 (safe_pushdecl_maybe_friend): Rename to ...
368 (safe_pushdecl): ... here. Drop is_friend parm. Drop default args
370 (plugin_build_decl): Adjust safe_pushdecl & safe_pushtag calls.
371 (plugin_build_constant): Adjust safe_pushdecl call.
373 2020-09-10 Nathan Sidwell <nathan@acm.org>
375 * libcp1plugin.cc (plugin_build_call_expr): Use DECL_LOCAL_DECL_P.
377 2020-08-14 Nathan Sidwell <nathan@acm.org>
379 * libcp1plugin.cc (plugin_build_dependent_expr): Rename
380 lookup_name_real call.
382 2020-08-14 Nathan Sidwell <nathan@acm.org>
384 * libcp1plugin.cc (plugin_build_dependent_exp): Adjust
385 lookup_name_real call.
387 2020-08-14 Nathan Sidwell <nathan@acm.org>
389 * libcp1plugin.cc (plugin_build_dependent_expr): Adjust
390 lookup_name_real & lookup_qualified_name calls.
392 2020-08-13 Nathan Sidwell <nathan@acm.org>
394 * libcp1plugin.cc (plugin_build_dependent_expr): Likewise.
396 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
399 * configure: Regenerated.
401 2020-06-30 Nathan Sidwell <nathan@acm.org>
403 * libcp1plugin.cc (plugin_build_decl): Adjust clone_function_decl
406 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
409 * configure: Regenerated.
411 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
413 * configure: Regenerated.
415 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
417 * Makefile.am (AM_CXXFLAGS): Add $(CET_HOST_FLAGS).
418 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
419 AC_SUBST(CET_HOST_FLAGS).
420 * Makefile.in: Regenerated.
421 * aclocal.m4: Likewise.
422 * configure: Likewise.
424 2020-02-12 Patrick Palka <ppalka@redhat.com>
428 * libcp1plugin.cc (plugin_get_expr_type): No need to explicitly set
429 AUTO_IS_DECLTYPE anymore.
431 2020-01-07 Paolo Carlini <paolo.carlini@oracle.com>
433 * libcp1plugin.cc (plugin_build_new_expr): Update build_new call.
435 2020-01-01 Jakub Jelinek <jakub@redhat.com>
437 Update copyright years.
439 2019-12-30 Paolo Carlini <paolo.carlini@oracle.com>
441 * libcp1plugin.cc (plugin_build_unary_expr): Update delete_sanity
444 2019-12-18 Paolo Carlini <paolo.carlini@oracle.com>
446 * libcp1plugin.cc (plugin_build_unary_expr): Update build_throw
447 and cxx_sizeof_or_alignof_expr calls.
448 (plugin_build_unary_type_expr): Likewise for
449 cxx_sizeof_or_alignof_type.
451 2019-12-09 Paolo Carlini <paolo.carlini@oracle.com>
453 * libcp1plugin.cc (plugin_build_cast_expr): Adjust build_cast
456 2019-12-05 Paolo Carlini <paolo.carlini@oracle.com>
458 * libcp1plugin.cc (plugin_build_expression_list_expr): Adjust
459 build_functional_cast call.
461 2019-11-25 Paolo Carlini <paolo.carlini@oracle.com>
463 * libcp1plugin.cc (plugin_pragma_push_user_expression): Update
464 cp_build_indirect_ref call.
466 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
468 * configure: Regenerate.
470 2019-05-21 Nathan Sidwell <nathan@acm.org>
472 * libcp1plugin.cc (plugin_add_using_decl): Use
473 finish_nonmember_using_decl.
475 2019-05-20 Nathan Sidwell <nathan@acm.org>
477 * libcp1plugin.cc (plugin_add_using_namespace): Call renamed
478 finish_using_directive.
480 2019-01-01 Jakub Jelinek <jakub@redhat.com>
482 Update copyright years.
484 2018-11-13 David Malcolm <dmalcolm@redhat.com>
486 * libcc1plugin.cc: Replace "source_location" with "location_t".
487 (plugin_context::get_source_location): Rename to...
488 (plugin_context::get_location_t): ...this.
489 * libcp1plugin.cc: Likewise.
491 2018-10-31 Joseph Myers <joseph@codesourcery.com>
494 * configure.ac: Remove AC_PREREQ.
495 * Makefile.in, aclocal.m4, configure: Regenerate.
497 2018-04-18 David Malcolm <dmalcolm@redhat.com>
500 * configure: Regenerate.
502 2018-01-03 Jakub Jelinek <jakub@redhat.com>
504 Update copyright years.
506 2017-11-14 Boris Kolpackov <boris@codesynthesis.com>
508 * configure: Regenerate.
510 2017-11-16 Sergio Durigan Junior <sergiodj@redhat.com>
511 Pedro Alves <palves@redhat.com>
513 * Makefile.am: Remove references to c-compiler-name.h and
515 * Makefile.in: Regenerate.
516 * compiler-name.hh: New file.
517 * libcc1.cc: Don't include c-compiler-name.h. Include
519 * libcp1.cc: Don't include cp-compiler-name.h. Include
522 2017-11-01 Nathan Sidwell <nathan@acm.org>
524 * libcp1plugin.cc (plugin_build_decl): Use
525 DECL_OVERLOADED_OPERATOR_CODE_RAW.
527 2017-10-31 Nathan Sidwell <nathan@acm.org>
529 * libcp1plugin.cc (plugin_build_decl): Use ovl_op_identifier.
530 Directly set operator code.
531 (plugin_build_dependent_expr): Use ovl_op_identifier.
533 2017-10-04 Nathan Sidwell <nathan@acm.org>
535 * libcp1plugin.cc (supplement_binding): Don't use
536 maybe_remove_implicit_alias.
538 2017-07-20 Nathan Sidwell <nathan@acm.org>
541 * libcp1plugin.cc (plugin_build_decl): Member fns are on TYPE_FIELDS.
543 2017-07-12 Nathan Sidwell <nathan@acm.org>
545 * libcp1plugin.cc (plugin_build_decl): Use
546 DECL_CXX_{CON,DE}STRUCTOR directly.
548 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
550 * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
552 2017-06-30 Nathan Sidwell <nathan@acm.org>
554 * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name.
555 (plugin_build_dependent_expr): Likewise.
557 2017-06-26 Nathan Sidwell <nathan@acm.org>
559 * libcp1plugin.cc (plugin_build_decl): Don't set
560 DECL_ASSIGNMENT_OPERATOR_P.
562 2017-06-16 Nathan Sidwell <nathan@acm.org>
564 * libcp1plugin.cc (plugin_build_decl): Adjust parm building.
566 2017-05-26 Nathan Sidwell <nathan@acm.org>
568 * libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
570 * libcp1plugin.cc (plugin_add_using_namespace): Call
571 finish_namespace_using_directive.
573 2017-05-25 Nathan Sidwell <nathan@acm.org>
575 * libcp1plugin.cc (plugin_make_namespace_inline): Check and set
576 DECL_NAMESPACE_INLINE_P.
578 2017-05-23 Nathan Sidwell <nathan@acm.org>
580 * libcp1plugin.cc (plugin_add_using_decl): Call
581 finish_namespace_using_decl. Use assert not unreachable.
583 2017-05-11 Nathan Sidwell <nathan@acm.org>
585 * libcp1plugin.cc (safe_pushdecl_maybe_friend): Call pushdecl.
587 2017-05-10 Nathan Sidwell <nathan@acm.org>
589 * libcp1plugin.cc (plugin_build_decl): Adjust add_method call.
591 2017-04-15 Alexandre Oliva <aoliva@redhat.com>
593 * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
595 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
597 Introduce C++ support.
598 * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
599 (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
601 (plugin_LTLIBRARIES): Add libcp1plugin.la.
602 (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
603 (cp-compiler-name.h): ... this. New.
604 (c-compiler-name.h): Rename all over from...
605 (compiler-name.h): ... this. Create it atomically.
606 (marshall_c_source, marshall_cxx_source): New macros.
607 (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
608 Add marshall_c_source expansion.
609 (libcc1plugin.lo_CPPFLAGS): New macro.
610 (libcp1plugin_la_LDFLAGS): Likewise.
611 (libcp1plugin_la_SOURCES): Likewise.
612 (libcp1plugin.lo_CPPFLAGS): Likewise.
613 (libcp1plugin_la_LIBADD): Likewise.
614 (libcp1plugin_la_DEPENDENCIES): Likewise.
615 (libcp1plugin_la_LINK): Likewise.
616 (libcc1_la_SOURCES): Added marshall_c_source and
617 marshall_cxx_source expansions.
618 * Makefile.in: Rebuild.
619 * compiler-name.h: Rename all over to...
620 * c-compiler-name.h: ... this. Define C_COMPILER_NAME instead
622 * plugin.cc: Rename all over to...
623 * libcc1plugin.cc: ... this. Include marshall-c.hh.
624 (address_rewriter): Drop cleaning up of VLA sizes.
625 (plugin_build_decl): Mark decls as external.
626 (plugin_tagbind): Propagate name to all variants.
627 (build_anonymous_node): New.
628 (plugin_build_record_type): Use it instead of make_node.
629 (plugin_build_union_type): Likewise.
630 (plugin_build_enum_type): Likewise.
631 (plugin_finish_record_or_union): Update all type variants.
632 (safe_lookup_builtin_type): New.
633 (plugin_int_check): Factor out of, and add checks to, ...
634 (plugin_int_type): ... this. Rename to...
635 (plugin_int_type_v0): ... this.
636 (plugin_int_type): New interface, new implementation.
637 (plugin_char_type): New.
638 (plugin_float_type_v0): Rename from...
639 (plugin_float_type): ... this. New interface, new implementation.
640 (plugin_init): Bump handshake version.
641 * libcc1.cc: Include marshall-c.hh. Drop gcc-interface.h.
642 (call_binding_oracle): Rename to...
643 (c_call_binding_oracle): ... this, into anonymous namespace.
644 (call_symbol_address): Rename to...
645 (c_call_symbol_address): ... this, likewise.
646 (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
647 (libcc1::compiler::find): Refer to C_COMPILER_NAME.
648 (fork_exec): Bump to GCC_C_FE_VERSION_1.
649 (libcc1_compile): Prefix callbacks with c_.
650 (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
651 * libcc1.sym: Export gcc_cp_fe_context.
652 * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
653 * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
654 * libcp1plugin.sym: New.
655 * marshall-c.hh: New. Move C-specific types from...
656 * marshall.cc: ... this.
657 (cc1_plugin::marshall_array_start): New.
658 (cc1_plugin::marshall_array_elmts): New.
659 (cc1_plugin::marshall for gcc_type_array): Use the above.
660 (cc1_plugin::unmarshall_array_start): New.
661 (cc1_plugin::unmarshall_array_elmts): New.
662 (cc1_plugin::unmarshall for gcc_type_array): Use the above.
663 * marshall.hh: Declare the new array building blocks.
664 Drop C-specific unmarshall declarations.
665 * marshall-cp.hh: New.
666 * names.cc (GCC_METHOD#): Add LANG:: to method names.
667 (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
668 * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
669 corresponding namespaces.
670 * rpc.hh: Don't include marshall.hh.
671 [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
672 gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
674 2017-01-30 Jan Kratochvil <jan.kratochvil@redhat.com>
676 * findcomp.cc: Include system.h.
677 (search_dir): Return absolute filename.
679 * libcc1.cc (libcc1): Add class compiler with field compilerp,
680 class compiler_triplet_regexp and class
681 compiler_driver_filename.
682 (libcc1::libcc1): Initialize compilerp.
683 (libcc1::~libcc1): Delete compilerp.
684 (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
685 (libcc1::compiler_driver_filename::find): New methods.
686 (libcc1_set_arguments): Remove parameter triplet_regexp.
687 (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
688 (libcc1_set_arguments_v0): New functions.
689 (vtable): Use libcc1_set_arguments_v0, add
690 libcc1_set_arguments, libcc1_set_triplet_regexp and
691 libcc1_set_driver_filename.
693 * libcc1.cc: Include intl.h.
694 (struct libcc1): Add field verbose.
695 (libcc1::libcc1): Initialize it.
696 (libcc1_set_verbose): New function.
697 (libcc1_set_arguments): Print messages for VERBOSE.
698 (libcc1_compile): Remove parameter verbose. Use VERBOSE from
700 (libcc1_compile_v0): New function.
701 (vtable): Use libcc1_compile_v0 and add libcc1_compile and
704 * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
705 (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
707 2017-01-17 Jakub Jelinek <jakub@redhat.com>
710 * configure.ac: Add GCC_BASE_VER. For --with-gcc-major-version-only
711 use just major number from BASE-VER.
712 * configure: Regenerated.
713 * Makefile.in: Regenerated.
715 2017-01-04 Jakub Jelinek <jakub@redhat.com>
717 Update copyright years.
719 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
720 Alan Hayward <alan.hayward@arm.com>
721 David Sherwood <david.sherwood@arm.com>
723 * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
725 2016-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
729 2016-04-18 Michael Matz <matz@suse.de>
731 * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
733 2016-04-11 Segher Boessenkool <segher@kernel.crashing.org>
736 * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
737 (compiler-name.h): Shorten recipe so that it fits the line.
738 * Makefile.in: Regenerate.
740 2016-03-14 Andreas Schwab <schwab@suse.de>
742 * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
743 * configure: Regenerate.
744 * Makefile.in: Regenerate.
746 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
748 * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
749 rather than typed_free_remove. Remove redudant typedefs.
751 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
753 * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
754 than typed_noop_remove. Remove redudant typedefs.
755 (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
756 (plugin_context::mark): Likewise.
758 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
760 * Makefile.in: Regenerated with automake-1.11.6.
761 * aclocal.m4: Likewise.
762 * configure: Likewise.
764 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
766 * plugin.cc: Adjust for hash_table changes.
768 2015-04-15 Andreas Schwab <schwab@suse.de>
771 * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
772 * Makefile.in: Regenerated.
774 2015-01-30 Joseph Myers <joseph@codesourcery.com>
776 * plugin.cc: All callers of fatal_error changed to pass
777 input_location as first argument.
779 2015-01-09 Michael Collison <michael.collison@linaro.org>
781 * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
782 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
783 due to flattening of tree.h.
785 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
788 * configure: Regenerated.
790 2014-11-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
792 * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
793 * configure: Regenerate.
794 * connection.cc: Include <string.h>.
795 * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
797 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
800 * configure: Regenerate.
802 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
806 * plugin.cc: Don't include <string>.
808 2014-10-29 Jakub Jelinek <jakub@redhat.com>
809 Phil Muldoon <pmuldoon@redhat.com>
811 * configure.ac: Remove -Werror addition to WARN_FLAGS. Add
812 ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
813 * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
814 (WERROR_FLAG): Remove.
815 (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
816 * configure: Regenerated.
817 * Makefile.in: Regenerated.
819 2014-10-29 Jakub Jelinek <jakub@redhat.com>
821 * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
822 (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
824 (libiberty): Set to -Wc, followed by the first existing noasan/,
825 pic/ or . libiberty.a.
826 (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
827 libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
828 * Makefile.in: Regenerated.
830 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
831 Jan Kratochvil <jan.kratochvil@redhat.com>
832 Tom Tromey <tromey@redhat.com>
834 * aclocal.m4: New file.
835 * callbacks.cc: New file.
836 * callbacks.hh: New file.
837 * cc1plugin-config.h.in: New file.
838 * configure: New file.
839 * configure.ac: New file.
840 * connection.cc: New file.
841 * connection.hh: New file.
842 * findcomp.cc: New file.
843 * findcomp.hh: New file.
844 * libcc1.cc: New file.
845 * libcc1plugin.sym: New file.
846 * libcc1.sym: New file.
847 * Makefile.am: New file.
848 * Makefile.in: New file.
849 * marshall.cc: New file.
850 * marshall.hh: New file.
851 * names.cc: New file.
852 * names.hh: New file.
853 * plugin.cc: New file.
855 * status.hh: New file.