d: Fix testcase failure of gdc.dg/Wbuiltin_declaration_mismatch2.d.
[official-gcc.git] / libcc1 / ChangeLog
blob95b523143170261335e4ad07d1162498c6d2cf67
1 2023-05-18  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
3         * libcc1plugin.cc (plugin_float_type): Ditto.
4         * libcp1plugin.cc (plugin_reactivate_decl): Ditto.
5         (plugin_get_float_type): Ditto.
7 2022-11-01  Nathan Sidwell  <nathan@acm.org>
9         * libcp1plugin.cc (plugin_start_lambda_closure_class_type):
10         Initialize the per-scope, per-signature discriminator.
12 2022-11-01  Nathan Sidwell  <nathan@acm.org>
14         * libcp1plugin.cc (plugin_start_closure): Adjust.
16 2022-10-12  Martin Liska  <mliska@suse.cz>
18         * configure: Regenerate.
20 2022-10-11  Olivier Hainque  <hainque@adacore.com>
21             Olivier Hainque  <hainque@adacore.com>
23         * configure: Regenerate.
25 2022-06-27  Sergei Trofimovich  <siarheit@google.com>
27         PR c++/106102
28         * libcc1plugin.cc: Include <memory> via "system.h".
29         * libcp1plugin.cc: Ditto.
31 2022-06-01  David Seifert  <soap@gentoo.org>
33         PR plugins/95648
34         * configure: Regenerate.
36 2021-12-16  Patrick Palka  <ppalka@redhat.com>
38         PR c++/51577
39         PR c++/83035
40         PR c++/100465
41         * libcp1plugin.cc (plugin_build_unary_expr): Adjust call to
42         build_x_unary_op.
43         (plugin_build_binary_expr): Adjust call to build_x_binary_op.
45 2021-12-15  Iain Sandoe  <iain@sandoe.co.uk>
47         * configure: Regenerate.
49 2021-08-17  Iain Sandoe  <iain@sandoe.co.uk>
51         * Makefile.am: Switch mdynamic-no-pic to fPIC.
52         * Makefile.in: Regenerated.
54 2021-06-28  Martin Sebor  <msebor@redhat.com>
56         * libcp1plugin.cc (record_decl_address): Replace a direct use
57         of TREE_NO_WARNING with suppress_warning.
59 2021-05-05  Tom Tromey  <tom@tromey.com>
61         * compiler.cc (make_regexp): Take const std::string.
62         (cc1_plugin::compiler_triplet_regexp::find): Update.
64 2021-05-05  Tom Tromey  <tom@tromey.com>
66         PR c/94669
67         * compiler.hh (compiler_driver_filename): Take const char *.
68         (compiler_triplet_regexp): Likewise.
70 2021-05-05  Tom Tromey  <tom@tromey.com>
72         * rpc.hh (argument_wrapper) <get>: Replace cast operator.
73         (argument_wrapper<T *>) <get>: Likewise.
74         (unmarshall): Add std::tuple overloads.
75         (callback): Remove.
76         (class invoker): New.
77         * libcp1plugin.cc (plugin_init): Update.
78         * libcp1.cc (libcp1::add_callbacks): Update.
79         * libcc1plugin.cc (plugin_init): Update.
80         * libcc1.cc (libcc1::add_callbacks): Update.
81         * connection.cc (cc1_plugin::connection::do_wait): Update.
83 2021-05-05  Tom Tromey  <tom@tromey.com>
85         * gdbctx.hh (do_compile): Use std::vector.
87 2021-05-05  Tom Tromey  <tom@tromey.com>
89         * libcp1.cc (libcp1): Change parameters.  Update.
90         (libcp1_set_verbose, libcp1_set_arguments)
91         (libcp1_set_triplet_regexp, libcp1_set_driver_filename)
92         (libcp1_set_source_file, libcp1_set_print_callback, fork_exec)
93         (libcp1_compile, libcp1_destroy, vtable): Remove.
94         (libcp1::add_callbacks): New method, extracted from
95         libcp1_compile.
96         (gcc_c_fe_context): Update.
97         * libcc1.cc (libcc1): Change parameters.  Update.
98         (libcc1_set_verbose, libcc1_set_arguments)
99         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
100         (libcc1_set_source_file, libcc1_set_print_callback, fork_exec)
101         (libcc1_compile, libcc1_destroy, vtable): Remove.
102         (libcc1::add_callbacks): New method, extracted from
103         libcc1_compile.
104         (gcc_c_fe_context): Update.
105         * gdbctx.hh (base_gdb_plugin): Change parameters.
106         (~base_gdb_plugin): New.
107         <add_callbacks>: New virtual method.
108         <plugin_name, fe_version, compiler_name, vtable>: New members.
109         (get_self, do_set_verbose, do_set_arguments)
110         (do_set_triplet_regexp, do_set_driver_filename)
111         (do_set_arguments_v0, do_set_source_file, do_set_print_callback)
112         (fork_exec, do_compile, do_compile_v0, do_destroy): New methods.
114 2021-05-05  Tom Tromey  <tom@tromey.com>
116         * libcp1.cc (vtable): Use GCC_FE_VERSION_1.
118 2021-05-05  Tom Tromey  <tom@tromey.com>
120         * libcp1.cc (struct libcp1): Derive from base_gdb_plugin.  Remove
121         shared code.
122         (class libcp1_connection): Remove.
123         (rpc): Remove.
124         (libcp1_set_verbose, libcp1_compile): Update.
125         (cp_call_binding_oracle, cp_call_symbol_address)
126         (cp_call_enter_scope, cp_call_leave_scope): Update.
127         * libcc1.cc (struct libcc1): Derive from base_gdb_plugin.  Remove
128         shared code.
129         (class libcc1_connection): Remove.
130         (c_call_binding_oracle, c_call_symbol_address): Update.
131         (rpc): Remove.
132         (libcc1_set_verbose, libcc1_compile): Update.
133         * gdbctx.hh: New file.
135 2021-05-05  Tom Tromey  <tom@tromey.com>
137         * libcc1plugin.cc: Move code to context.cc.
138         * libcp1plugin.cc: Move code to context.cc.
139         * context.hh: New file.
140         * context.cc: New file.
141         * Makefile.in: Rebuild.
142         * Makefile.am (AM_CPPFLAGS): Add more gcc flags.
143         (CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): Update.
144         (libcc1plugin_la_SOURCES): Add context.hh, context.cc.
145         (libcp1plugin_la_SOURCES): Likewise.
147 2021-05-05  Tom Tromey  <tom@tromey.com>
149         * libcp1plugin.cc: Use static assert.
151 2021-05-05  Tom Tromey  <tom@tromey.com>
153         * libcp1plugin.cc (plugin_context::mark): Use foreach.
154         * libcc1plugin.cc (plugin_context::mark): Use foreach.
156 2021-05-05  Tom Tromey  <tom@tromey.com>
158         * libcp1.cc (compiler, compiler_triplet_regexp)
159         (compiler_driver_filename): Remove.
160         (libcp1::libcp1): Update.
161         (make_regexp, libcp1::compiler::find)
162         (libcp1::compiler_triplet_regexp::find)
163         (libcp1::compiler_driver_filename::find): Remove.
164         (libcp1_set_verbose, libcp1_set_arguments)
165         (libcp1_set_triplet_regexp, libcp1_set_driver_filename): Update.
166         * libcc1.cc (compiler, compiler_triplet_regexp)
167         (compiler_driver_filename): Remove.
168         (libcc1::libcc1): Update.
169         (make_regexp, libcc1::compiler::find)
170         (libcc1::compiler_triplet_regexp::find)
171         (libcc1::compiler_driver_filename::find): Remove.
172         (libcc1_set_verbose, libcc1_set_arguments)
173         (libcc1_set_triplet_regexp, libcc1_set_driver_filename): Update.
174         * compiler.cc: New file.
175         * compiler.hh: New file.
176         * Makefile.in: Rebuild.
177         * Makefile.am (libcc1_la_SOURCES): Add compiler.hh, compiler.cc.
179 2021-05-05  Tom Tromey  <tom@tromey.com>
181         * libcp1.cc (struct libcp1) <connection, compilerp>: Use
182         unique_ptr.
183         (~libcp1): Remove.
184         (libcp1_compile, libcp1_set_triplet_regexp)
185         (libcp1_set_driver_filename): Update.
186         * libcc1.cc (struct libcc1) <connection, compilerp>: Use
187         unique_ptr.
188         (~libcc1): Remove.
189         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
190         (libcc1_compile): Update.
192 2021-05-05  Tom Tromey  <tom@tromey.com>
194         * rpc.hh (deleter): Move template and some specializations to
195         deleter.hh.
196         (argument_wrapper<const T *>): Use cc1_plugin::unique_ptr.
197         * marshall.cc (cc1_plugin::unmarshall): Use
198         cc1_plugin::unique_ptr.
199         * marshall-cp.hh (deleter): New specializations.
200         (unmarshall): Use cc1_plugin::unique_ptr.
201         * deleter.hh: New file.
203 2021-05-05  Tom Tromey  <tom@tromey.com>
205         * rpc.hh (struct deleter): New template class and
206         specializations.
207         (argument_wrapper): Remove specializations.  Add specialization
208         for any pointer type.
210 2021-05-05  Tom Tromey  <tom@tromey.com>
212         * libcp1plugin.cc (plugin_build_function_type): Use std::vector.
213         * libcc1plugin.cc (plugin_build_function_type): Use std::vector.
215 2021-05-05  Tom Tromey  <tom@tromey.com>
217         * libcp1.cc (rpc): Use variadic template.  Remove overloads.
218         * libcc1.cc (rpc): Use variadic template.  Remove overloads.
220 2021-05-05  Tom Tromey  <tom@tromey.com>
222         * rpc.hh (call): Use variadic template.  Remove overloads.
223         * marshall.hh (marshall): Add base overload.  Use variadic
224         template.
226 2021-05-05  Tom Tromey  <tom@tromey.com>
228         * rpc.hh (argument_wrapper): Use delete for copy constructor.
229         * connection.hh (class connection): Use delete for copy
230         constructor.
231         * callbacks.hh (class callbacks): Use delete for copy constructor.
233 2021-05-05  Tom Tromey  <tom@tromey.com>
235         * connection.hh (~connection): Use default.
236         (print): Inline.
237         * connection.cc (cc1_plugin::connection::~connection)
238         (cc1_plugin::connection::print): Remove definitions.
240 2021-05-05  Tom Tromey  <tom@tromey.com>
242         * libcp1.cc (class compiler_triplet_regexp)
243         (class compiler_driver_filename, class libcp1_connection): Use
244         "override".
245         * libcc1.cc (class compiler_triplet_regexp)
246         (class compiler_driver_filename, class libcc1_connection): Use
247         "override".
249 2021-05-05  Tom Tromey  <tom@tromey.com>
251         * marshall.hh (cc1_plugin::unmarshall): Use type traits.
252         * marshall-cp.hh (cc1_plugin::unmarshall): Remove overloads.
253         * marshall-c.hh: Remove.
254         * libcc1plugin.cc: Update includes.
255         * libcc1.cc: Update includes.
257 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
259         PR bootstrap/99703
260         * configure: Regenerated.
262 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
264         * configure: Re-generate.
266 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
268         PR bootstrap/98380
269         * configure.ac: Set darwin_dynamic_lookup=no instead to empty
270         string.
271         * configure: Regenerated.
273 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
275         PR target/97865
276         * Makefile.am: Add dynamic_lookup to LD flags for Darwin.
277         * configure.ac: Test for Darwin host and set a flag.
278         * Makefile.in: Regenerate.
279         * configure: Regenerate.
281 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
283         * configure: Regenerate.
285 2020-11-11  Patrick Palka  <ppalka@redhat.com>
287         PR c++/88115
288         * libcp1plugin.cc (plugin_build_unary_expr): Pass true to
289         cxx_sizeof_or_alignof_expr.
291 2020-11-10  Marek Polacek  <polacek@redhat.com>
293         PR c++/97518
294         * libcp1plugin.cc (plugin_add_static_assert): Pass false to
295         finish_static_assert.
297 2020-11-06  Nathan Sidwell  <nathan@acm.org>
299         * libcc1plugin.cc (address_rewriter): Rename
300         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
301         * libcp1plugin.cc (supplement_binding): Likewise.
303 2020-10-14  Nathan Sidwell  <nathan@acm.org>
305         * libcp1plugin.cc (plugin_add_friend): Set DECL_UNIQUE_FRIEND_P.
307 2020-10-07  Nathan Sidwell  <nathan@acm.org>
309         * libcp1plugin.cc (supplement_binding): Rename
310         DECL_BUILTIN_P.
312 2020-10-02  Nathan Sidwell  <nathan@acm.org>
314         * libcp1plugin.cc (libcp1plugin.cc): Drop DECL_ANTICIPATED test.
316 2020-09-25  Nathan Sidwell  <nathan@acm.org>
318         * libcp1plugin.cc (supplement_binding): Use DECL_BULTIN_P.
320 2020-09-24  Nathan Sidwell  <nathan@acm.org>
322         * libcp1plugin.cc (supplement_binding): Drop default args to
323         duplicate_decls.
324         (safe_pushtag): Drop scope parm.  Drop default args to pushtag.
325         (safe_pushdecl_maybe_friend): Rename to ...
326         (safe_pushdecl): ... here. Drop is_friend parm.  Drop default args
327         to pushdecl.
328         (plugin_build_decl): Adjust safe_pushdecl & safe_pushtag calls.
329         (plugin_build_constant): Adjust safe_pushdecl call.
331 2020-09-10  Nathan Sidwell  <nathan@acm.org>
333         * libcp1plugin.cc (plugin_build_call_expr): Use DECL_LOCAL_DECL_P.
335 2020-08-14  Nathan Sidwell  <nathan@acm.org>
337         * libcp1plugin.cc (plugin_build_dependent_expr): Rename
338         lookup_name_real call.
340 2020-08-14  Nathan Sidwell  <nathan@acm.org>
342         * libcp1plugin.cc (plugin_build_dependent_exp): Adjust
343         lookup_name_real call.
345 2020-08-14  Nathan Sidwell  <nathan@acm.org>
347         * libcp1plugin.cc (plugin_build_dependent_expr): Adjust
348         lookup_name_real & lookup_qualified_name calls.
350 2020-08-13  Nathan Sidwell  <nathan@acm.org>
352         * libcp1plugin.cc (plugin_build_dependent_expr): Likewise.
354 2020-07-30  H.J. Lu  <hjl.tools@gmail.com>
356         PR bootstrap/96202
357         * configure: Regenerated.
359 2020-06-30  Nathan Sidwell  <nathan@acm.org>
361         * libcp1plugin.cc (plugin_build_decl): Adjust clone_function_decl
362         call.
364 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
366         PR bootstrap/95413
367         * configure: Regenerated.
369 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
371         * configure: Regenerated.
373 2020-05-12  H.J. Lu  <hongjiu.lu@intel.com>
375         * Makefile.am (AM_CXXFLAGS): Add $(CET_HOST_FLAGS).
376         * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
377         AC_SUBST(CET_HOST_FLAGS).
378         * Makefile.in: Regenerated.
379         * aclocal.m4: Likewise.
380         * configure: Likewise.
382 2020-02-12  Patrick Palka  <ppalka@redhat.com>
384         PR c++/69448
385         PR c++/80471
386         * libcp1plugin.cc (plugin_get_expr_type): No need to explicitly set
387         AUTO_IS_DECLTYPE anymore.
389 2020-01-07  Paolo Carlini  <paolo.carlini@oracle.com>
391         * libcp1plugin.cc (plugin_build_new_expr): Update build_new call.
393 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
395         Update copyright years.
397 2019-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
399         * libcp1plugin.cc (plugin_build_unary_expr): Update delete_sanity
400         call.
402 2019-12-18  Paolo Carlini  <paolo.carlini@oracle.com>
404         * libcp1plugin.cc (plugin_build_unary_expr): Update build_throw
405         and cxx_sizeof_or_alignof_expr calls.
406         (plugin_build_unary_type_expr): Likewise for
407         cxx_sizeof_or_alignof_type.
409 2019-12-09  Paolo Carlini  <paolo.carlini@oracle.com>
411         * libcp1plugin.cc (plugin_build_cast_expr): Adjust build_cast
412         declaration.
414 2019-12-05  Paolo Carlini  <paolo.carlini@oracle.com>
416         * libcp1plugin.cc (plugin_build_expression_list_expr): Adjust
417         build_functional_cast call.
419 2019-11-25  Paolo Carlini  <paolo.carlini@oracle.com>
421         * libcp1plugin.cc (plugin_pragma_push_user_expression): Update
422         cp_build_indirect_ref call.
424 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
426         * configure: Regenerate.
428 2019-05-21  Nathan Sidwell  <nathan@acm.org>
430         * libcp1plugin.cc (plugin_add_using_decl): Use
431         finish_nonmember_using_decl.
433 2019-05-20  Nathan Sidwell  <nathan@acm.org>
435         * libcp1plugin.cc (plugin_add_using_namespace): Call renamed
436         finish_using_directive.
438 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
440         Update copyright years.
442 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
444         * libcc1plugin.cc: Replace "source_location" with "location_t".
445         (plugin_context::get_source_location): Rename to...
446         (plugin_context::get_location_t): ...this.
447         * libcp1plugin.cc: Likewise.
449 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
451         PR bootstrap/82856
452         * configure.ac: Remove AC_PREREQ.
453         * Makefile.in, aclocal.m4, configure: Regenerate.
455 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
457         PR jit/85384
458         * configure: Regenerate.
460 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
462         Update copyright years.
464 2017-11-14 Boris Kolpackov  <boris@codesynthesis.com>
466         * configure: Regenerate.
468 2017-11-16  Sergio Durigan Junior  <sergiodj@redhat.com>
469             Pedro Alves  <palves@redhat.com>
471         * Makefile.am: Remove references to c-compiler-name.h and
472         cp-compiler-name.h
473         * Makefile.in: Regenerate.
474         * compiler-name.hh: New file.
475         * libcc1.cc: Don't include c-compiler-name.h.  Include
476         compiler-name.hh.
477         * libcp1.cc: Don't include cp-compiler-name.h.  Include
478         compiler-name.hh.
480 2017-11-01  Nathan Sidwell  <nathan@acm.org>
482         * libcp1plugin.cc (plugin_build_decl): Use
483         DECL_OVERLOADED_OPERATOR_CODE_RAW.
485 2017-10-31  Nathan Sidwell  <nathan@acm.org>
487         * libcp1plugin.cc (plugin_build_decl): Use ovl_op_identifier.
488         Directly set operator code.
489         (plugin_build_dependent_expr): Use ovl_op_identifier.
491 2017-10-04  Nathan Sidwell  <nathan@acm.org>
493         * libcp1plugin.cc (supplement_binding): Don't use
494         maybe_remove_implicit_alias.
496 2017-07-20  Nathan Sidwell  <nathan@acm.org>
498         Remove TYPE_METHODS.
499         * libcp1plugin.cc (plugin_build_decl): Member fns are on TYPE_FIELDS.
501 2017-07-12  Nathan Sidwell  <nathan@acm.org>
503         * libcp1plugin.cc (plugin_build_decl): Use
504         DECL_CXX_{CON,DE}STRUCTOR directly.
506 2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>
508         * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
510 2017-06-30  Nathan Sidwell  <nathan@acm.org>
512         * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name.
513         (plugin_build_dependent_expr): Likewise.
515 2017-06-26  Nathan Sidwell  <nathan@acm.org>
517         * libcp1plugin.cc (plugin_build_decl): Don't set
518         DECL_ASSIGNMENT_OPERATOR_P.
520 2017-06-16  Nathan Sidwell  <nathan@acm.org>
522         * libcp1plugin.cc (plugin_build_decl): Adjust parm building.
524 2017-05-26  Nathan Sidwell  <nathan@acm.org>
526         * libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
528         * libcp1plugin.cc (plugin_add_using_namespace): Call
529         finish_namespace_using_directive.
531 2017-05-25  Nathan Sidwell  <nathan@acm.org>
533         * libcp1plugin.cc (plugin_make_namespace_inline): Check and set
534         DECL_NAMESPACE_INLINE_P.
536 2017-05-23  Nathan Sidwell  <nathan@acm.org>
538         * libcp1plugin.cc (plugin_add_using_decl): Call
539         finish_namespace_using_decl.  Use assert not unreachable.
541 2017-05-11  Nathan Sidwell  <nathan@acm.org>
543         * libcp1plugin.cc (safe_pushdecl_maybe_friend): Call pushdecl.
545 2017-05-10  Nathan Sidwell  <nathan@acm.org>
547         * libcp1plugin.cc (plugin_build_decl): Adjust add_method call.
549 2017-04-15  Alexandre Oliva <aoliva@redhat.com>
551         * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
553 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
555         Introduce C++ support.
556         * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
557         (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
558         new macros.
559         (plugin_LTLIBRARIES): Add libcp1plugin.la.
560         (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
561         (cp-compiler-name.h): ... this.  New.
562         (c-compiler-name.h): Rename all over from...
563         (compiler-name.h): ... this.  Create it atomically.
564         (marshall_c_source, marshall_cxx_source): New macros.
565         (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
566         Add marshall_c_source expansion.
567         (libcc1plugin.lo_CPPFLAGS): New macro.
568         (libcp1plugin_la_LDFLAGS): Likewise.
569         (libcp1plugin_la_SOURCES): Likewise.
570         (libcp1plugin.lo_CPPFLAGS): Likewise.
571         (libcp1plugin_la_LIBADD): Likewise.
572         (libcp1plugin_la_DEPENDENCIES): Likewise.
573         (libcp1plugin_la_LINK): Likewise.
574         (libcc1_la_SOURCES): Added marshall_c_source and
575         marshall_cxx_source expansions.
576         * Makefile.in: Rebuild.
577         * compiler-name.h: Rename all over to...
578         * c-compiler-name.h: ... this.  Define C_COMPILER_NAME instead
579         of COMPILER_NAME.
580         * plugin.cc: Rename all over to...
581         * libcc1plugin.cc: ... this.  Include marshall-c.hh.
582         (address_rewriter): Drop cleaning up of VLA sizes.
583         (plugin_build_decl): Mark decls as external.
584         (plugin_tagbind): Propagate name to all variants.
585         (build_anonymous_node): New.
586         (plugin_build_record_type): Use it instead of make_node.
587         (plugin_build_union_type): Likewise.
588         (plugin_build_enum_type): Likewise.
589         (plugin_finish_record_or_union): Update all type variants.
590         (safe_lookup_builtin_type): New.
591         (plugin_int_check): Factor out of, and add checks to, ...
592         (plugin_int_type): ... this.  Rename to...
593         (plugin_int_type_v0): ... this.
594         (plugin_int_type): New interface, new implementation.
595         (plugin_char_type): New.
596         (plugin_float_type_v0): Rename from...
597         (plugin_float_type): ... this.  New interface, new implementation.
598         (plugin_init): Bump handshake version.
599         * libcc1.cc: Include marshall-c.hh.  Drop gcc-interface.h.
600         (call_binding_oracle): Rename to...
601         (c_call_binding_oracle): ... this, into anonymous namespace.
602         (call_symbol_address): Rename to...
603         (c_call_symbol_address): ... this, likewise.
604         (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
605         (libcc1::compiler::find): Refer to C_COMPILER_NAME.
606         (fork_exec): Bump to GCC_C_FE_VERSION_1.
607         (libcc1_compile): Prefix callbacks with c_.
608         (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
609         * libcc1.sym: Export gcc_cp_fe_context.
610         * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
611         * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
612         * libcp1plugin.sym: New.
613         * marshall-c.hh: New.  Move C-specific types from...
614         * marshall.cc: ... this.
615         (cc1_plugin::marshall_array_start): New.
616         (cc1_plugin::marshall_array_elmts): New.
617         (cc1_plugin::marshall for gcc_type_array): Use the above.
618         (cc1_plugin::unmarshall_array_start): New.
619         (cc1_plugin::unmarshall_array_elmts): New.
620         (cc1_plugin::unmarshall for gcc_type_array): Use the above.
621         * marshall.hh: Declare the new array building blocks.
622         Drop C-specific unmarshall declarations.
623         * marshall-cp.hh: New.
624         * names.cc (GCC_METHOD#): Add LANG:: to method names.
625         (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
626         * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
627         corresponding namespaces.
628         * rpc.hh: Don't include marshall.hh.
629         [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
630         gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
632 2017-01-30  Jan Kratochvil <jan.kratochvil@redhat.com>
634         * findcomp.cc: Include system.h.
635         (search_dir): Return absolute filename.
637         * libcc1.cc (libcc1): Add class compiler with field compilerp,
638         class compiler_triplet_regexp and class
639         compiler_driver_filename.
640         (libcc1::libcc1): Initialize compilerp.
641         (libcc1::~libcc1): Delete compilerp.
642         (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
643         (libcc1::compiler_driver_filename::find): New methods.
644         (libcc1_set_arguments): Remove parameter triplet_regexp.
645         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
646         (libcc1_set_arguments_v0): New functions.
647         (vtable): Use libcc1_set_arguments_v0, add
648         libcc1_set_arguments, libcc1_set_triplet_regexp and
649         libcc1_set_driver_filename.
651         * libcc1.cc: Include intl.h.
652         (struct libcc1): Add field verbose.
653         (libcc1::libcc1): Initialize it.
654         (libcc1_set_verbose): New function.
655         (libcc1_set_arguments): Print messages for VERBOSE.
656         (libcc1_compile): Remove parameter verbose.  Use VERBOSE from
657         SELF.
658         (libcc1_compile_v0): New function.
659         (vtable): Use libcc1_compile_v0 and add libcc1_compile and
660         libcc1_set_verbose.
662         * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
663         (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
665 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
667         PR other/79046
668         * configure.ac: Add GCC_BASE_VER.  For --with-gcc-major-version-only
669         use just major number from BASE-VER.
670         * configure: Regenerated.
671         * Makefile.in: Regenerated.
673 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
675         Update copyright years.
677 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
678             Alan Hayward  <alan.hayward@arm.com>
679             David Sherwood  <david.sherwood@arm.com>
681         * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
683 2016-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
685         Update copyrights.
687 2016-04-18  Michael Matz  <matz@suse.de>
689         * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
691 2016-04-11  Segher Boessenkool  <segher@kernel.crashing.org>
693         PR bootstrap/70173
694         * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
695         (compiler-name.h): Shorten recipe so that it fits the line.
696         * Makefile.in: Regenerate.
698 2016-03-14  Andreas Schwab  <schwab@suse.de>
700         * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
701         * configure: Regenerate.
702         * Makefile.in: Regenerate.
704 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
706         * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
707         rather than typed_free_remove.  Remove redudant typedefs.
709 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
711         * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
712         than typed_noop_remove.  Remove redudant typedefs.
713         (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
714         (plugin_context::mark): Likewise.
716 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
718         * Makefile.in: Regenerated with automake-1.11.6.
719         * aclocal.m4: Likewise.
720         * configure: Likewise.
722 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
724         * plugin.cc: Adjust for hash_table changes.
726 2015-04-15  Andreas Schwab  <schwab@suse.de>
728         PR bootstrap/65763
729         * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
730         * Makefile.in: Regenerated.
732 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
734         * plugin.cc: All callers of fatal_error changed to pass
735         input_location as first argument.
737 2015-01-09  Michael Collison  <michael.collison@linaro.org>
739         * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
740         input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
741         due to flattening of tree.h.
743 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
745         PR bootstrap/63784
746         * configure: Regenerated.
748 2014-11-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
750         * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
751         * configure: Regenerate.
752         * connection.cc: Include <string.h>.
753         * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
755 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
757         PR target/63610
758         * configure: Regenerate.
760 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
762         PR bootstrap/63699
763         PR bootstrap/63750
764         * plugin.cc: Don't include <string>.
766 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
767             Phil Muldoon  <pmuldoon@redhat.com>
769         * configure.ac: Remove -Werror addition to WARN_FLAGS.  Add
770         ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
771         * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
772         (WERROR_FLAG): Remove.
773         (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
774         * configure: Regenerated.
775         * Makefile.in: Regenerated.
777 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
779         * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
780         (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
781         New variables.
782         (libiberty): Set to -Wc, followed by the first existing noasan/,
783         pic/ or . libiberty.a.
784         (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
785         libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
786         * Makefile.in: Regenerated.
788 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
789             Jan Kratochvil  <jan.kratochvil@redhat.com>
790             Tom Tromey  <tromey@redhat.com>
792         * aclocal.m4: New file.
793         * callbacks.cc: New file.
794         * callbacks.hh: New file.
795         * cc1plugin-config.h.in: New file.
796         * configure: New file.
797         * configure.ac: New file.
798         * connection.cc: New file.
799         * connection.hh: New file.
800         * findcomp.cc: New file.
801         * findcomp.hh: New file.
802         * libcc1.cc: New file.
803         * libcc1plugin.sym: New file.
804         * libcc1.sym: New file.
805         * Makefile.am: New file.
806         * Makefile.in: New file.
807         * marshall.cc: New file.
808         * marshall.hh: New file.
809         * names.cc: New file.
810         * names.hh: New file.
811         * plugin.cc: New file.
812         * rpc.hh: New file.
813         * status.hh: New file.