Daily bump.
[official-gcc.git] / libcc1 / ChangeLog
blob32e4a5c6e1abf1db8e071f5763fe5d12da62c5a5
1 2024-03-16  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
3         PR middle-end/111632
4         * libcc1plugin.cc: Fix include.
5         * libcp1plugin.cc: Fix include.
7 2024-02-29  Tom Tromey  <tom@tromey.com>
9         PR libcc1/113977
10         * libcc1plugin.cc (plugin_finish_record_or_union): New function.
11         (plugin_finish_record_or_union): Rewrite.
12         (plugin_init): Use GCC_C_FE_VERSION_2.
13         * libcc1.cc (c_vtable): Use GCC_C_FE_VERSION_2.
14         (gcc_c_fe_context): Check for GCC_C_FE_VERSION_2.
16 2024-02-29  Tom Tromey  <tom@tromey.com>
18         * libcp1.cc (libcp1::libcp1): Use FE version number from context.
19         * libcc1.cc (libcc1::libcc1): Use FE version number from context.
20         (c_vtable): Use GCC_C_FE_VERSION_1.
22 2024-02-29  Tom Tromey  <tom@tromey.com>
24         * libcc1plugin.cc (safe_lookup_builtin_type): Handle ERROR_MARK.
25         (plugin_int_type): Fall back to plugin_int_type_v0.
26         (plugin_float_type): Fall back to plugin_float_type_v0.
28 2024-02-09  Marek Polacek  <polacek@redhat.com>
30         PR c++/98388
31         * libcp1plugin.cc (plugin_build_unary_expr): Pass tf_error to
32         build_throw.
34 2024-01-09  waffl3x  <waffl3x@protonmail.com>
35             Jason Merrill  <jason@redhat.com>
37         PR c++/102609
38         * libcp1plugin.cc (plugin_pragma_push_user_expression): Don't use
39         DECL_NONSTATIC_MEMBER_FUNCTION_P.
41 2023-12-06  David Malcolm  <dmalcolm@redhat.com>
43         * context.cc (plugin_print_error_function): Make diagnostic_info
44         param const.
46 2023-11-16  Tom Tromey  <tom@tromey.com>
48         * libcc1plugin.cc (plugin_build_enum_type): Set
49         ENUM_UNDERLYING_TYPE.
51 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
53         * configure: Regenerate.
55 2023-08-11  Joseph Myers  <joseph@codesourcery.com>
57         * configure: Regenerate.
59 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
61         * configure: Regenerate.
63 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
65         * configure: Regenerate.
67 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
69         * configure: Regenerate.
71 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
73         * configure: Regenerate.
75 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
77         * configure: Regenerate.
79 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
81         * configure: Regenerate.
83 2023-05-18  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
85         * libcc1plugin.cc (plugin_float_type): Ditto.
86         * libcp1plugin.cc (plugin_reactivate_decl): Ditto.
87         (plugin_get_float_type): Ditto.
89 2022-11-01  Nathan Sidwell  <nathan@acm.org>
91         * libcp1plugin.cc (plugin_start_lambda_closure_class_type):
92         Initialize the per-scope, per-signature discriminator.
94 2022-11-01  Nathan Sidwell  <nathan@acm.org>
96         * libcp1plugin.cc (plugin_start_closure): Adjust.
98 2022-10-12  Martin Liska  <mliska@suse.cz>
100         * configure: Regenerate.
102 2022-10-11  Olivier Hainque  <hainque@adacore.com>
103             Olivier Hainque  <hainque@adacore.com>
105         * configure: Regenerate.
107 2022-06-27  Sergei Trofimovich  <siarheit@google.com>
109         PR c++/106102
110         * libcc1plugin.cc: Include <memory> via "system.h".
111         * libcp1plugin.cc: Ditto.
113 2022-06-01  David Seifert  <soap@gentoo.org>
115         PR plugins/95648
116         * configure: Regenerate.
118 2021-12-16  Patrick Palka  <ppalka@redhat.com>
120         PR c++/51577
121         PR c++/83035
122         PR c++/100465
123         * libcp1plugin.cc (plugin_build_unary_expr): Adjust call to
124         build_x_unary_op.
125         (plugin_build_binary_expr): Adjust call to build_x_binary_op.
127 2021-12-15  Iain Sandoe  <iain@sandoe.co.uk>
129         * configure: Regenerate.
131 2021-08-17  Iain Sandoe  <iain@sandoe.co.uk>
133         * Makefile.am: Switch mdynamic-no-pic to fPIC.
134         * Makefile.in: Regenerated.
136 2021-06-28  Martin Sebor  <msebor@redhat.com>
138         * libcp1plugin.cc (record_decl_address): Replace a direct use
139         of TREE_NO_WARNING with suppress_warning.
141 2021-05-05  Tom Tromey  <tom@tromey.com>
143         * compiler.cc (make_regexp): Take const std::string.
144         (cc1_plugin::compiler_triplet_regexp::find): Update.
146 2021-05-05  Tom Tromey  <tom@tromey.com>
148         PR c/94669
149         * compiler.hh (compiler_driver_filename): Take const char *.
150         (compiler_triplet_regexp): Likewise.
152 2021-05-05  Tom Tromey  <tom@tromey.com>
154         * rpc.hh (argument_wrapper) <get>: Replace cast operator.
155         (argument_wrapper<T *>) <get>: Likewise.
156         (unmarshall): Add std::tuple overloads.
157         (callback): Remove.
158         (class invoker): New.
159         * libcp1plugin.cc (plugin_init): Update.
160         * libcp1.cc (libcp1::add_callbacks): Update.
161         * libcc1plugin.cc (plugin_init): Update.
162         * libcc1.cc (libcc1::add_callbacks): Update.
163         * connection.cc (cc1_plugin::connection::do_wait): Update.
165 2021-05-05  Tom Tromey  <tom@tromey.com>
167         * gdbctx.hh (do_compile): Use std::vector.
169 2021-05-05  Tom Tromey  <tom@tromey.com>
171         * libcp1.cc (libcp1): Change parameters.  Update.
172         (libcp1_set_verbose, libcp1_set_arguments)
173         (libcp1_set_triplet_regexp, libcp1_set_driver_filename)
174         (libcp1_set_source_file, libcp1_set_print_callback, fork_exec)
175         (libcp1_compile, libcp1_destroy, vtable): Remove.
176         (libcp1::add_callbacks): New method, extracted from
177         libcp1_compile.
178         (gcc_c_fe_context): Update.
179         * libcc1.cc (libcc1): Change parameters.  Update.
180         (libcc1_set_verbose, libcc1_set_arguments)
181         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
182         (libcc1_set_source_file, libcc1_set_print_callback, fork_exec)
183         (libcc1_compile, libcc1_destroy, vtable): Remove.
184         (libcc1::add_callbacks): New method, extracted from
185         libcc1_compile.
186         (gcc_c_fe_context): Update.
187         * gdbctx.hh (base_gdb_plugin): Change parameters.
188         (~base_gdb_plugin): New.
189         <add_callbacks>: New virtual method.
190         <plugin_name, fe_version, compiler_name, vtable>: New members.
191         (get_self, do_set_verbose, do_set_arguments)
192         (do_set_triplet_regexp, do_set_driver_filename)
193         (do_set_arguments_v0, do_set_source_file, do_set_print_callback)
194         (fork_exec, do_compile, do_compile_v0, do_destroy): New methods.
196 2021-05-05  Tom Tromey  <tom@tromey.com>
198         * libcp1.cc (vtable): Use GCC_FE_VERSION_1.
200 2021-05-05  Tom Tromey  <tom@tromey.com>
202         * libcp1.cc (struct libcp1): Derive from base_gdb_plugin.  Remove
203         shared code.
204         (class libcp1_connection): Remove.
205         (rpc): Remove.
206         (libcp1_set_verbose, libcp1_compile): Update.
207         (cp_call_binding_oracle, cp_call_symbol_address)
208         (cp_call_enter_scope, cp_call_leave_scope): Update.
209         * libcc1.cc (struct libcc1): Derive from base_gdb_plugin.  Remove
210         shared code.
211         (class libcc1_connection): Remove.
212         (c_call_binding_oracle, c_call_symbol_address): Update.
213         (rpc): Remove.
214         (libcc1_set_verbose, libcc1_compile): Update.
215         * gdbctx.hh: New file.
217 2021-05-05  Tom Tromey  <tom@tromey.com>
219         * libcc1plugin.cc: Move code to context.cc.
220         * libcp1plugin.cc: Move code to context.cc.
221         * context.hh: New file.
222         * context.cc: New file.
223         * Makefile.in: Rebuild.
224         * Makefile.am (AM_CPPFLAGS): Add more gcc flags.
225         (CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): Update.
226         (libcc1plugin_la_SOURCES): Add context.hh, context.cc.
227         (libcp1plugin_la_SOURCES): Likewise.
229 2021-05-05  Tom Tromey  <tom@tromey.com>
231         * libcp1plugin.cc: Use static assert.
233 2021-05-05  Tom Tromey  <tom@tromey.com>
235         * libcp1plugin.cc (plugin_context::mark): Use foreach.
236         * libcc1plugin.cc (plugin_context::mark): Use foreach.
238 2021-05-05  Tom Tromey  <tom@tromey.com>
240         * libcp1.cc (compiler, compiler_triplet_regexp)
241         (compiler_driver_filename): Remove.
242         (libcp1::libcp1): Update.
243         (make_regexp, libcp1::compiler::find)
244         (libcp1::compiler_triplet_regexp::find)
245         (libcp1::compiler_driver_filename::find): Remove.
246         (libcp1_set_verbose, libcp1_set_arguments)
247         (libcp1_set_triplet_regexp, libcp1_set_driver_filename): Update.
248         * libcc1.cc (compiler, compiler_triplet_regexp)
249         (compiler_driver_filename): Remove.
250         (libcc1::libcc1): Update.
251         (make_regexp, libcc1::compiler::find)
252         (libcc1::compiler_triplet_regexp::find)
253         (libcc1::compiler_driver_filename::find): Remove.
254         (libcc1_set_verbose, libcc1_set_arguments)
255         (libcc1_set_triplet_regexp, libcc1_set_driver_filename): Update.
256         * compiler.cc: New file.
257         * compiler.hh: New file.
258         * Makefile.in: Rebuild.
259         * Makefile.am (libcc1_la_SOURCES): Add compiler.hh, compiler.cc.
261 2021-05-05  Tom Tromey  <tom@tromey.com>
263         * libcp1.cc (struct libcp1) <connection, compilerp>: Use
264         unique_ptr.
265         (~libcp1): Remove.
266         (libcp1_compile, libcp1_set_triplet_regexp)
267         (libcp1_set_driver_filename): Update.
268         * libcc1.cc (struct libcc1) <connection, compilerp>: Use
269         unique_ptr.
270         (~libcc1): Remove.
271         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
272         (libcc1_compile): Update.
274 2021-05-05  Tom Tromey  <tom@tromey.com>
276         * rpc.hh (deleter): Move template and some specializations to
277         deleter.hh.
278         (argument_wrapper<const T *>): Use cc1_plugin::unique_ptr.
279         * marshall.cc (cc1_plugin::unmarshall): Use
280         cc1_plugin::unique_ptr.
281         * marshall-cp.hh (deleter): New specializations.
282         (unmarshall): Use cc1_plugin::unique_ptr.
283         * deleter.hh: New file.
285 2021-05-05  Tom Tromey  <tom@tromey.com>
287         * rpc.hh (struct deleter): New template class and
288         specializations.
289         (argument_wrapper): Remove specializations.  Add specialization
290         for any pointer type.
292 2021-05-05  Tom Tromey  <tom@tromey.com>
294         * libcp1plugin.cc (plugin_build_function_type): Use std::vector.
295         * libcc1plugin.cc (plugin_build_function_type): Use std::vector.
297 2021-05-05  Tom Tromey  <tom@tromey.com>
299         * libcp1.cc (rpc): Use variadic template.  Remove overloads.
300         * libcc1.cc (rpc): Use variadic template.  Remove overloads.
302 2021-05-05  Tom Tromey  <tom@tromey.com>
304         * rpc.hh (call): Use variadic template.  Remove overloads.
305         * marshall.hh (marshall): Add base overload.  Use variadic
306         template.
308 2021-05-05  Tom Tromey  <tom@tromey.com>
310         * rpc.hh (argument_wrapper): Use delete for copy constructor.
311         * connection.hh (class connection): Use delete for copy
312         constructor.
313         * callbacks.hh (class callbacks): Use delete for copy constructor.
315 2021-05-05  Tom Tromey  <tom@tromey.com>
317         * connection.hh (~connection): Use default.
318         (print): Inline.
319         * connection.cc (cc1_plugin::connection::~connection)
320         (cc1_plugin::connection::print): Remove definitions.
322 2021-05-05  Tom Tromey  <tom@tromey.com>
324         * libcp1.cc (class compiler_triplet_regexp)
325         (class compiler_driver_filename, class libcp1_connection): Use
326         "override".
327         * libcc1.cc (class compiler_triplet_regexp)
328         (class compiler_driver_filename, class libcc1_connection): Use
329         "override".
331 2021-05-05  Tom Tromey  <tom@tromey.com>
333         * marshall.hh (cc1_plugin::unmarshall): Use type traits.
334         * marshall-cp.hh (cc1_plugin::unmarshall): Remove overloads.
335         * marshall-c.hh: Remove.
336         * libcc1plugin.cc: Update includes.
337         * libcc1.cc: Update includes.
339 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
341         PR bootstrap/99703
342         * configure: Regenerated.
344 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
346         * configure: Re-generate.
348 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
350         PR bootstrap/98380
351         * configure.ac: Set darwin_dynamic_lookup=no instead to empty
352         string.
353         * configure: Regenerated.
355 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
357         PR target/97865
358         * Makefile.am: Add dynamic_lookup to LD flags for Darwin.
359         * configure.ac: Test for Darwin host and set a flag.
360         * Makefile.in: Regenerate.
361         * configure: Regenerate.
363 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
365         * configure: Regenerate.
367 2020-11-11  Patrick Palka  <ppalka@redhat.com>
369         PR c++/88115
370         * libcp1plugin.cc (plugin_build_unary_expr): Pass true to
371         cxx_sizeof_or_alignof_expr.
373 2020-11-10  Marek Polacek  <polacek@redhat.com>
375         PR c++/97518
376         * libcp1plugin.cc (plugin_add_static_assert): Pass false to
377         finish_static_assert.
379 2020-11-06  Nathan Sidwell  <nathan@acm.org>
381         * libcc1plugin.cc (address_rewriter): Rename
382         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
383         * libcp1plugin.cc (supplement_binding): Likewise.
385 2020-10-14  Nathan Sidwell  <nathan@acm.org>
387         * libcp1plugin.cc (plugin_add_friend): Set DECL_UNIQUE_FRIEND_P.
389 2020-10-07  Nathan Sidwell  <nathan@acm.org>
391         * libcp1plugin.cc (supplement_binding): Rename
392         DECL_BUILTIN_P.
394 2020-10-02  Nathan Sidwell  <nathan@acm.org>
396         * libcp1plugin.cc (libcp1plugin.cc): Drop DECL_ANTICIPATED test.
398 2020-09-25  Nathan Sidwell  <nathan@acm.org>
400         * libcp1plugin.cc (supplement_binding): Use DECL_BULTIN_P.
402 2020-09-24  Nathan Sidwell  <nathan@acm.org>
404         * libcp1plugin.cc (supplement_binding): Drop default args to
405         duplicate_decls.
406         (safe_pushtag): Drop scope parm.  Drop default args to pushtag.
407         (safe_pushdecl_maybe_friend): Rename to ...
408         (safe_pushdecl): ... here. Drop is_friend parm.  Drop default args
409         to pushdecl.
410         (plugin_build_decl): Adjust safe_pushdecl & safe_pushtag calls.
411         (plugin_build_constant): Adjust safe_pushdecl call.
413 2020-09-10  Nathan Sidwell  <nathan@acm.org>
415         * libcp1plugin.cc (plugin_build_call_expr): Use DECL_LOCAL_DECL_P.
417 2020-08-14  Nathan Sidwell  <nathan@acm.org>
419         * libcp1plugin.cc (plugin_build_dependent_expr): Rename
420         lookup_name_real call.
422 2020-08-14  Nathan Sidwell  <nathan@acm.org>
424         * libcp1plugin.cc (plugin_build_dependent_exp): Adjust
425         lookup_name_real call.
427 2020-08-14  Nathan Sidwell  <nathan@acm.org>
429         * libcp1plugin.cc (plugin_build_dependent_expr): Adjust
430         lookup_name_real & lookup_qualified_name calls.
432 2020-08-13  Nathan Sidwell  <nathan@acm.org>
434         * libcp1plugin.cc (plugin_build_dependent_expr): Likewise.
436 2020-07-30  H.J. Lu  <hjl.tools@gmail.com>
438         PR bootstrap/96202
439         * configure: Regenerated.
441 2020-06-30  Nathan Sidwell  <nathan@acm.org>
443         * libcp1plugin.cc (plugin_build_decl): Adjust clone_function_decl
444         call.
446 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
448         PR bootstrap/95413
449         * configure: Regenerated.
451 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
453         * configure: Regenerated.
455 2020-05-12  H.J. Lu  <hongjiu.lu@intel.com>
457         * Makefile.am (AM_CXXFLAGS): Add $(CET_HOST_FLAGS).
458         * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
459         AC_SUBST(CET_HOST_FLAGS).
460         * Makefile.in: Regenerated.
461         * aclocal.m4: Likewise.
462         * configure: Likewise.
464 2020-02-12  Patrick Palka  <ppalka@redhat.com>
466         PR c++/69448
467         PR c++/80471
468         * libcp1plugin.cc (plugin_get_expr_type): No need to explicitly set
469         AUTO_IS_DECLTYPE anymore.
471 2020-01-07  Paolo Carlini  <paolo.carlini@oracle.com>
473         * libcp1plugin.cc (plugin_build_new_expr): Update build_new call.
475 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
477         Update copyright years.
479 2019-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
481         * libcp1plugin.cc (plugin_build_unary_expr): Update delete_sanity
482         call.
484 2019-12-18  Paolo Carlini  <paolo.carlini@oracle.com>
486         * libcp1plugin.cc (plugin_build_unary_expr): Update build_throw
487         and cxx_sizeof_or_alignof_expr calls.
488         (plugin_build_unary_type_expr): Likewise for
489         cxx_sizeof_or_alignof_type.
491 2019-12-09  Paolo Carlini  <paolo.carlini@oracle.com>
493         * libcp1plugin.cc (plugin_build_cast_expr): Adjust build_cast
494         declaration.
496 2019-12-05  Paolo Carlini  <paolo.carlini@oracle.com>
498         * libcp1plugin.cc (plugin_build_expression_list_expr): Adjust
499         build_functional_cast call.
501 2019-11-25  Paolo Carlini  <paolo.carlini@oracle.com>
503         * libcp1plugin.cc (plugin_pragma_push_user_expression): Update
504         cp_build_indirect_ref call.
506 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
508         * configure: Regenerate.
510 2019-05-21  Nathan Sidwell  <nathan@acm.org>
512         * libcp1plugin.cc (plugin_add_using_decl): Use
513         finish_nonmember_using_decl.
515 2019-05-20  Nathan Sidwell  <nathan@acm.org>
517         * libcp1plugin.cc (plugin_add_using_namespace): Call renamed
518         finish_using_directive.
520 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
522         Update copyright years.
524 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
526         * libcc1plugin.cc: Replace "source_location" with "location_t".
527         (plugin_context::get_source_location): Rename to...
528         (plugin_context::get_location_t): ...this.
529         * libcp1plugin.cc: Likewise.
531 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
533         PR bootstrap/82856
534         * configure.ac: Remove AC_PREREQ.
535         * Makefile.in, aclocal.m4, configure: Regenerate.
537 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
539         PR jit/85384
540         * configure: Regenerate.
542 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
544         Update copyright years.
546 2017-11-14 Boris Kolpackov  <boris@codesynthesis.com>
548         * configure: Regenerate.
550 2017-11-16  Sergio Durigan Junior  <sergiodj@redhat.com>
551             Pedro Alves  <palves@redhat.com>
553         * Makefile.am: Remove references to c-compiler-name.h and
554         cp-compiler-name.h
555         * Makefile.in: Regenerate.
556         * compiler-name.hh: New file.
557         * libcc1.cc: Don't include c-compiler-name.h.  Include
558         compiler-name.hh.
559         * libcp1.cc: Don't include cp-compiler-name.h.  Include
560         compiler-name.hh.
562 2017-11-01  Nathan Sidwell  <nathan@acm.org>
564         * libcp1plugin.cc (plugin_build_decl): Use
565         DECL_OVERLOADED_OPERATOR_CODE_RAW.
567 2017-10-31  Nathan Sidwell  <nathan@acm.org>
569         * libcp1plugin.cc (plugin_build_decl): Use ovl_op_identifier.
570         Directly set operator code.
571         (plugin_build_dependent_expr): Use ovl_op_identifier.
573 2017-10-04  Nathan Sidwell  <nathan@acm.org>
575         * libcp1plugin.cc (supplement_binding): Don't use
576         maybe_remove_implicit_alias.
578 2017-07-20  Nathan Sidwell  <nathan@acm.org>
580         Remove TYPE_METHODS.
581         * libcp1plugin.cc (plugin_build_decl): Member fns are on TYPE_FIELDS.
583 2017-07-12  Nathan Sidwell  <nathan@acm.org>
585         * libcp1plugin.cc (plugin_build_decl): Use
586         DECL_CXX_{CON,DE}STRUCTOR directly.
588 2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>
590         * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
592 2017-06-30  Nathan Sidwell  <nathan@acm.org>
594         * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name.
595         (plugin_build_dependent_expr): Likewise.
597 2017-06-26  Nathan Sidwell  <nathan@acm.org>
599         * libcp1plugin.cc (plugin_build_decl): Don't set
600         DECL_ASSIGNMENT_OPERATOR_P.
602 2017-06-16  Nathan Sidwell  <nathan@acm.org>
604         * libcp1plugin.cc (plugin_build_decl): Adjust parm building.
606 2017-05-26  Nathan Sidwell  <nathan@acm.org>
608         * libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
610         * libcp1plugin.cc (plugin_add_using_namespace): Call
611         finish_namespace_using_directive.
613 2017-05-25  Nathan Sidwell  <nathan@acm.org>
615         * libcp1plugin.cc (plugin_make_namespace_inline): Check and set
616         DECL_NAMESPACE_INLINE_P.
618 2017-05-23  Nathan Sidwell  <nathan@acm.org>
620         * libcp1plugin.cc (plugin_add_using_decl): Call
621         finish_namespace_using_decl.  Use assert not unreachable.
623 2017-05-11  Nathan Sidwell  <nathan@acm.org>
625         * libcp1plugin.cc (safe_pushdecl_maybe_friend): Call pushdecl.
627 2017-05-10  Nathan Sidwell  <nathan@acm.org>
629         * libcp1plugin.cc (plugin_build_decl): Adjust add_method call.
631 2017-04-15  Alexandre Oliva <aoliva@redhat.com>
633         * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
635 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
637         Introduce C++ support.
638         * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
639         (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
640         new macros.
641         (plugin_LTLIBRARIES): Add libcp1plugin.la.
642         (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
643         (cp-compiler-name.h): ... this.  New.
644         (c-compiler-name.h): Rename all over from...
645         (compiler-name.h): ... this.  Create it atomically.
646         (marshall_c_source, marshall_cxx_source): New macros.
647         (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
648         Add marshall_c_source expansion.
649         (libcc1plugin.lo_CPPFLAGS): New macro.
650         (libcp1plugin_la_LDFLAGS): Likewise.
651         (libcp1plugin_la_SOURCES): Likewise.
652         (libcp1plugin.lo_CPPFLAGS): Likewise.
653         (libcp1plugin_la_LIBADD): Likewise.
654         (libcp1plugin_la_DEPENDENCIES): Likewise.
655         (libcp1plugin_la_LINK): Likewise.
656         (libcc1_la_SOURCES): Added marshall_c_source and
657         marshall_cxx_source expansions.
658         * Makefile.in: Rebuild.
659         * compiler-name.h: Rename all over to...
660         * c-compiler-name.h: ... this.  Define C_COMPILER_NAME instead
661         of COMPILER_NAME.
662         * plugin.cc: Rename all over to...
663         * libcc1plugin.cc: ... this.  Include marshall-c.hh.
664         (address_rewriter): Drop cleaning up of VLA sizes.
665         (plugin_build_decl): Mark decls as external.
666         (plugin_tagbind): Propagate name to all variants.
667         (build_anonymous_node): New.
668         (plugin_build_record_type): Use it instead of make_node.
669         (plugin_build_union_type): Likewise.
670         (plugin_build_enum_type): Likewise.
671         (plugin_finish_record_or_union): Update all type variants.
672         (safe_lookup_builtin_type): New.
673         (plugin_int_check): Factor out of, and add checks to, ...
674         (plugin_int_type): ... this.  Rename to...
675         (plugin_int_type_v0): ... this.
676         (plugin_int_type): New interface, new implementation.
677         (plugin_char_type): New.
678         (plugin_float_type_v0): Rename from...
679         (plugin_float_type): ... this.  New interface, new implementation.
680         (plugin_init): Bump handshake version.
681         * libcc1.cc: Include marshall-c.hh.  Drop gcc-interface.h.
682         (call_binding_oracle): Rename to...
683         (c_call_binding_oracle): ... this, into anonymous namespace.
684         (call_symbol_address): Rename to...
685         (c_call_symbol_address): ... this, likewise.
686         (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
687         (libcc1::compiler::find): Refer to C_COMPILER_NAME.
688         (fork_exec): Bump to GCC_C_FE_VERSION_1.
689         (libcc1_compile): Prefix callbacks with c_.
690         (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
691         * libcc1.sym: Export gcc_cp_fe_context.
692         * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
693         * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
694         * libcp1plugin.sym: New.
695         * marshall-c.hh: New.  Move C-specific types from...
696         * marshall.cc: ... this.
697         (cc1_plugin::marshall_array_start): New.
698         (cc1_plugin::marshall_array_elmts): New.
699         (cc1_plugin::marshall for gcc_type_array): Use the above.
700         (cc1_plugin::unmarshall_array_start): New.
701         (cc1_plugin::unmarshall_array_elmts): New.
702         (cc1_plugin::unmarshall for gcc_type_array): Use the above.
703         * marshall.hh: Declare the new array building blocks.
704         Drop C-specific unmarshall declarations.
705         * marshall-cp.hh: New.
706         * names.cc (GCC_METHOD#): Add LANG:: to method names.
707         (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
708         * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
709         corresponding namespaces.
710         * rpc.hh: Don't include marshall.hh.
711         [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
712         gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
714 2017-01-30  Jan Kratochvil <jan.kratochvil@redhat.com>
716         * findcomp.cc: Include system.h.
717         (search_dir): Return absolute filename.
719         * libcc1.cc (libcc1): Add class compiler with field compilerp,
720         class compiler_triplet_regexp and class
721         compiler_driver_filename.
722         (libcc1::libcc1): Initialize compilerp.
723         (libcc1::~libcc1): Delete compilerp.
724         (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
725         (libcc1::compiler_driver_filename::find): New methods.
726         (libcc1_set_arguments): Remove parameter triplet_regexp.
727         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
728         (libcc1_set_arguments_v0): New functions.
729         (vtable): Use libcc1_set_arguments_v0, add
730         libcc1_set_arguments, libcc1_set_triplet_regexp and
731         libcc1_set_driver_filename.
733         * libcc1.cc: Include intl.h.
734         (struct libcc1): Add field verbose.
735         (libcc1::libcc1): Initialize it.
736         (libcc1_set_verbose): New function.
737         (libcc1_set_arguments): Print messages for VERBOSE.
738         (libcc1_compile): Remove parameter verbose.  Use VERBOSE from
739         SELF.
740         (libcc1_compile_v0): New function.
741         (vtable): Use libcc1_compile_v0 and add libcc1_compile and
742         libcc1_set_verbose.
744         * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
745         (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
747 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
749         PR other/79046
750         * configure.ac: Add GCC_BASE_VER.  For --with-gcc-major-version-only
751         use just major number from BASE-VER.
752         * configure: Regenerated.
753         * Makefile.in: Regenerated.
755 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
757         Update copyright years.
759 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
760             Alan Hayward  <alan.hayward@arm.com>
761             David Sherwood  <david.sherwood@arm.com>
763         * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
765 2016-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
767         Update copyrights.
769 2016-04-18  Michael Matz  <matz@suse.de>
771         * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
773 2016-04-11  Segher Boessenkool  <segher@kernel.crashing.org>
775         PR bootstrap/70173
776         * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
777         (compiler-name.h): Shorten recipe so that it fits the line.
778         * Makefile.in: Regenerate.
780 2016-03-14  Andreas Schwab  <schwab@suse.de>
782         * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
783         * configure: Regenerate.
784         * Makefile.in: Regenerate.
786 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
788         * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
789         rather than typed_free_remove.  Remove redudant typedefs.
791 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
793         * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
794         than typed_noop_remove.  Remove redudant typedefs.
795         (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
796         (plugin_context::mark): Likewise.
798 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
800         * Makefile.in: Regenerated with automake-1.11.6.
801         * aclocal.m4: Likewise.
802         * configure: Likewise.
804 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
806         * plugin.cc: Adjust for hash_table changes.
808 2015-04-15  Andreas Schwab  <schwab@suse.de>
810         PR bootstrap/65763
811         * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
812         * Makefile.in: Regenerated.
814 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
816         * plugin.cc: All callers of fatal_error changed to pass
817         input_location as first argument.
819 2015-01-09  Michael Collison  <michael.collison@linaro.org>
821         * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
822         input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
823         due to flattening of tree.h.
825 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
827         PR bootstrap/63784
828         * configure: Regenerated.
830 2014-11-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
832         * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
833         * configure: Regenerate.
834         * connection.cc: Include <string.h>.
835         * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
837 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
839         PR target/63610
840         * configure: Regenerate.
842 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
844         PR bootstrap/63699
845         PR bootstrap/63750
846         * plugin.cc: Don't include <string>.
848 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
849             Phil Muldoon  <pmuldoon@redhat.com>
851         * configure.ac: Remove -Werror addition to WARN_FLAGS.  Add
852         ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
853         * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
854         (WERROR_FLAG): Remove.
855         (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
856         * configure: Regenerated.
857         * Makefile.in: Regenerated.
859 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
861         * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
862         (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
863         New variables.
864         (libiberty): Set to -Wc, followed by the first existing noasan/,
865         pic/ or . libiberty.a.
866         (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
867         libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
868         * Makefile.in: Regenerated.
870 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
871             Jan Kratochvil  <jan.kratochvil@redhat.com>
872             Tom Tromey  <tromey@redhat.com>
874         * aclocal.m4: New file.
875         * callbacks.cc: New file.
876         * callbacks.hh: New file.
877         * cc1plugin-config.h.in: New file.
878         * configure: New file.
879         * configure.ac: New file.
880         * connection.cc: New file.
881         * connection.hh: New file.
882         * findcomp.cc: New file.
883         * findcomp.hh: New file.
884         * libcc1.cc: New file.
885         * libcc1plugin.sym: New file.
886         * libcc1.sym: New file.
887         * Makefile.am: New file.
888         * Makefile.in: New file.
889         * marshall.cc: New file.
890         * marshall.hh: New file.
891         * names.cc: New file.
892         * names.hh: New file.
893         * plugin.cc: New file.
894         * rpc.hh: New file.
895         * status.hh: New file.