Daily bump.
[official-gcc.git] / libcc1 / ChangeLog
blob8b13a062366c001d7a148883028bed37fa356f50
1 2024-02-29  Tom Tromey  <tom@tromey.com>
3         PR libcc1/113977
4         * libcc1plugin.cc (plugin_finish_record_or_union): New function.
5         (plugin_finish_record_or_union): Rewrite.
6         (plugin_init): Use GCC_C_FE_VERSION_2.
7         * libcc1.cc (c_vtable): Use GCC_C_FE_VERSION_2.
8         (gcc_c_fe_context): Check for GCC_C_FE_VERSION_2.
10 2024-02-29  Tom Tromey  <tom@tromey.com>
12         * libcp1.cc (libcp1::libcp1): Use FE version number from context.
13         * libcc1.cc (libcc1::libcc1): Use FE version number from context.
14         (c_vtable): Use GCC_C_FE_VERSION_1.
16 2024-02-29  Tom Tromey  <tom@tromey.com>
18         * libcc1plugin.cc (safe_lookup_builtin_type): Handle ERROR_MARK.
19         (plugin_int_type): Fall back to plugin_int_type_v0.
20         (plugin_float_type): Fall back to plugin_float_type_v0.
22 2024-02-09  Marek Polacek  <polacek@redhat.com>
24         PR c++/98388
25         * libcp1plugin.cc (plugin_build_unary_expr): Pass tf_error to
26         build_throw.
28 2024-01-09  waffl3x  <waffl3x@protonmail.com>
29             Jason Merrill  <jason@redhat.com>
31         PR c++/102609
32         * libcp1plugin.cc (plugin_pragma_push_user_expression): Don't use
33         DECL_NONSTATIC_MEMBER_FUNCTION_P.
35 2023-12-06  David Malcolm  <dmalcolm@redhat.com>
37         * context.cc (plugin_print_error_function): Make diagnostic_info
38         param const.
40 2023-11-16  Tom Tromey  <tom@tromey.com>
42         * libcc1plugin.cc (plugin_build_enum_type): Set
43         ENUM_UNDERLYING_TYPE.
45 2023-10-22  Iain Sandoe  <iain@sandoe.co.uk>
47         * configure: Regenerate.
49 2023-08-11  Joseph Myers  <joseph@codesourcery.com>
51         * configure: Regenerate.
53 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
55         * configure: Regenerate.
57 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
59         * configure: Regenerate.
61 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
63         * configure: Regenerate.
65 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
67         * configure: Regenerate.
69 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
71         * configure: Regenerate.
73 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
75         * configure: Regenerate.
77 2023-05-18  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
79         * libcc1plugin.cc (plugin_float_type): Ditto.
80         * libcp1plugin.cc (plugin_reactivate_decl): Ditto.
81         (plugin_get_float_type): Ditto.
83 2022-11-01  Nathan Sidwell  <nathan@acm.org>
85         * libcp1plugin.cc (plugin_start_lambda_closure_class_type):
86         Initialize the per-scope, per-signature discriminator.
88 2022-11-01  Nathan Sidwell  <nathan@acm.org>
90         * libcp1plugin.cc (plugin_start_closure): Adjust.
92 2022-10-12  Martin Liska  <mliska@suse.cz>
94         * configure: Regenerate.
96 2022-10-11  Olivier Hainque  <hainque@adacore.com>
97             Olivier Hainque  <hainque@adacore.com>
99         * configure: Regenerate.
101 2022-06-27  Sergei Trofimovich  <siarheit@google.com>
103         PR c++/106102
104         * libcc1plugin.cc: Include <memory> via "system.h".
105         * libcp1plugin.cc: Ditto.
107 2022-06-01  David Seifert  <soap@gentoo.org>
109         PR plugins/95648
110         * configure: Regenerate.
112 2021-12-16  Patrick Palka  <ppalka@redhat.com>
114         PR c++/51577
115         PR c++/83035
116         PR c++/100465
117         * libcp1plugin.cc (plugin_build_unary_expr): Adjust call to
118         build_x_unary_op.
119         (plugin_build_binary_expr): Adjust call to build_x_binary_op.
121 2021-12-15  Iain Sandoe  <iain@sandoe.co.uk>
123         * configure: Regenerate.
125 2021-08-17  Iain Sandoe  <iain@sandoe.co.uk>
127         * Makefile.am: Switch mdynamic-no-pic to fPIC.
128         * Makefile.in: Regenerated.
130 2021-06-28  Martin Sebor  <msebor@redhat.com>
132         * libcp1plugin.cc (record_decl_address): Replace a direct use
133         of TREE_NO_WARNING with suppress_warning.
135 2021-05-05  Tom Tromey  <tom@tromey.com>
137         * compiler.cc (make_regexp): Take const std::string.
138         (cc1_plugin::compiler_triplet_regexp::find): Update.
140 2021-05-05  Tom Tromey  <tom@tromey.com>
142         PR c/94669
143         * compiler.hh (compiler_driver_filename): Take const char *.
144         (compiler_triplet_regexp): Likewise.
146 2021-05-05  Tom Tromey  <tom@tromey.com>
148         * rpc.hh (argument_wrapper) <get>: Replace cast operator.
149         (argument_wrapper<T *>) <get>: Likewise.
150         (unmarshall): Add std::tuple overloads.
151         (callback): Remove.
152         (class invoker): New.
153         * libcp1plugin.cc (plugin_init): Update.
154         * libcp1.cc (libcp1::add_callbacks): Update.
155         * libcc1plugin.cc (plugin_init): Update.
156         * libcc1.cc (libcc1::add_callbacks): Update.
157         * connection.cc (cc1_plugin::connection::do_wait): Update.
159 2021-05-05  Tom Tromey  <tom@tromey.com>
161         * gdbctx.hh (do_compile): Use std::vector.
163 2021-05-05  Tom Tromey  <tom@tromey.com>
165         * libcp1.cc (libcp1): Change parameters.  Update.
166         (libcp1_set_verbose, libcp1_set_arguments)
167         (libcp1_set_triplet_regexp, libcp1_set_driver_filename)
168         (libcp1_set_source_file, libcp1_set_print_callback, fork_exec)
169         (libcp1_compile, libcp1_destroy, vtable): Remove.
170         (libcp1::add_callbacks): New method, extracted from
171         libcp1_compile.
172         (gcc_c_fe_context): Update.
173         * libcc1.cc (libcc1): Change parameters.  Update.
174         (libcc1_set_verbose, libcc1_set_arguments)
175         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
176         (libcc1_set_source_file, libcc1_set_print_callback, fork_exec)
177         (libcc1_compile, libcc1_destroy, vtable): Remove.
178         (libcc1::add_callbacks): New method, extracted from
179         libcc1_compile.
180         (gcc_c_fe_context): Update.
181         * gdbctx.hh (base_gdb_plugin): Change parameters.
182         (~base_gdb_plugin): New.
183         <add_callbacks>: New virtual method.
184         <plugin_name, fe_version, compiler_name, vtable>: New members.
185         (get_self, do_set_verbose, do_set_arguments)
186         (do_set_triplet_regexp, do_set_driver_filename)
187         (do_set_arguments_v0, do_set_source_file, do_set_print_callback)
188         (fork_exec, do_compile, do_compile_v0, do_destroy): New methods.
190 2021-05-05  Tom Tromey  <tom@tromey.com>
192         * libcp1.cc (vtable): Use GCC_FE_VERSION_1.
194 2021-05-05  Tom Tromey  <tom@tromey.com>
196         * libcp1.cc (struct libcp1): Derive from base_gdb_plugin.  Remove
197         shared code.
198         (class libcp1_connection): Remove.
199         (rpc): Remove.
200         (libcp1_set_verbose, libcp1_compile): Update.
201         (cp_call_binding_oracle, cp_call_symbol_address)
202         (cp_call_enter_scope, cp_call_leave_scope): Update.
203         * libcc1.cc (struct libcc1): Derive from base_gdb_plugin.  Remove
204         shared code.
205         (class libcc1_connection): Remove.
206         (c_call_binding_oracle, c_call_symbol_address): Update.
207         (rpc): Remove.
208         (libcc1_set_verbose, libcc1_compile): Update.
209         * gdbctx.hh: New file.
211 2021-05-05  Tom Tromey  <tom@tromey.com>
213         * libcc1plugin.cc: Move code to context.cc.
214         * libcp1plugin.cc: Move code to context.cc.
215         * context.hh: New file.
216         * context.cc: New file.
217         * Makefile.in: Rebuild.
218         * Makefile.am (AM_CPPFLAGS): Add more gcc flags.
219         (CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): Update.
220         (libcc1plugin_la_SOURCES): Add context.hh, context.cc.
221         (libcp1plugin_la_SOURCES): Likewise.
223 2021-05-05  Tom Tromey  <tom@tromey.com>
225         * libcp1plugin.cc: Use static assert.
227 2021-05-05  Tom Tromey  <tom@tromey.com>
229         * libcp1plugin.cc (plugin_context::mark): Use foreach.
230         * libcc1plugin.cc (plugin_context::mark): Use foreach.
232 2021-05-05  Tom Tromey  <tom@tromey.com>
234         * libcp1.cc (compiler, compiler_triplet_regexp)
235         (compiler_driver_filename): Remove.
236         (libcp1::libcp1): Update.
237         (make_regexp, libcp1::compiler::find)
238         (libcp1::compiler_triplet_regexp::find)
239         (libcp1::compiler_driver_filename::find): Remove.
240         (libcp1_set_verbose, libcp1_set_arguments)
241         (libcp1_set_triplet_regexp, libcp1_set_driver_filename): Update.
242         * libcc1.cc (compiler, compiler_triplet_regexp)
243         (compiler_driver_filename): Remove.
244         (libcc1::libcc1): Update.
245         (make_regexp, libcc1::compiler::find)
246         (libcc1::compiler_triplet_regexp::find)
247         (libcc1::compiler_driver_filename::find): Remove.
248         (libcc1_set_verbose, libcc1_set_arguments)
249         (libcc1_set_triplet_regexp, libcc1_set_driver_filename): Update.
250         * compiler.cc: New file.
251         * compiler.hh: New file.
252         * Makefile.in: Rebuild.
253         * Makefile.am (libcc1_la_SOURCES): Add compiler.hh, compiler.cc.
255 2021-05-05  Tom Tromey  <tom@tromey.com>
257         * libcp1.cc (struct libcp1) <connection, compilerp>: Use
258         unique_ptr.
259         (~libcp1): Remove.
260         (libcp1_compile, libcp1_set_triplet_regexp)
261         (libcp1_set_driver_filename): Update.
262         * libcc1.cc (struct libcc1) <connection, compilerp>: Use
263         unique_ptr.
264         (~libcc1): Remove.
265         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
266         (libcc1_compile): Update.
268 2021-05-05  Tom Tromey  <tom@tromey.com>
270         * rpc.hh (deleter): Move template and some specializations to
271         deleter.hh.
272         (argument_wrapper<const T *>): Use cc1_plugin::unique_ptr.
273         * marshall.cc (cc1_plugin::unmarshall): Use
274         cc1_plugin::unique_ptr.
275         * marshall-cp.hh (deleter): New specializations.
276         (unmarshall): Use cc1_plugin::unique_ptr.
277         * deleter.hh: New file.
279 2021-05-05  Tom Tromey  <tom@tromey.com>
281         * rpc.hh (struct deleter): New template class and
282         specializations.
283         (argument_wrapper): Remove specializations.  Add specialization
284         for any pointer type.
286 2021-05-05  Tom Tromey  <tom@tromey.com>
288         * libcp1plugin.cc (plugin_build_function_type): Use std::vector.
289         * libcc1plugin.cc (plugin_build_function_type): Use std::vector.
291 2021-05-05  Tom Tromey  <tom@tromey.com>
293         * libcp1.cc (rpc): Use variadic template.  Remove overloads.
294         * libcc1.cc (rpc): Use variadic template.  Remove overloads.
296 2021-05-05  Tom Tromey  <tom@tromey.com>
298         * rpc.hh (call): Use variadic template.  Remove overloads.
299         * marshall.hh (marshall): Add base overload.  Use variadic
300         template.
302 2021-05-05  Tom Tromey  <tom@tromey.com>
304         * rpc.hh (argument_wrapper): Use delete for copy constructor.
305         * connection.hh (class connection): Use delete for copy
306         constructor.
307         * callbacks.hh (class callbacks): Use delete for copy constructor.
309 2021-05-05  Tom Tromey  <tom@tromey.com>
311         * connection.hh (~connection): Use default.
312         (print): Inline.
313         * connection.cc (cc1_plugin::connection::~connection)
314         (cc1_plugin::connection::print): Remove definitions.
316 2021-05-05  Tom Tromey  <tom@tromey.com>
318         * libcp1.cc (class compiler_triplet_regexp)
319         (class compiler_driver_filename, class libcp1_connection): Use
320         "override".
321         * libcc1.cc (class compiler_triplet_regexp)
322         (class compiler_driver_filename, class libcc1_connection): Use
323         "override".
325 2021-05-05  Tom Tromey  <tom@tromey.com>
327         * marshall.hh (cc1_plugin::unmarshall): Use type traits.
328         * marshall-cp.hh (cc1_plugin::unmarshall): Remove overloads.
329         * marshall-c.hh: Remove.
330         * libcc1plugin.cc: Update includes.
331         * libcc1.cc: Update includes.
333 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
335         PR bootstrap/99703
336         * configure: Regenerated.
338 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
340         * configure: Re-generate.
342 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
344         PR bootstrap/98380
345         * configure.ac: Set darwin_dynamic_lookup=no instead to empty
346         string.
347         * configure: Regenerated.
349 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
351         PR target/97865
352         * Makefile.am: Add dynamic_lookup to LD flags for Darwin.
353         * configure.ac: Test for Darwin host and set a flag.
354         * Makefile.in: Regenerate.
355         * configure: Regenerate.
357 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
359         * configure: Regenerate.
361 2020-11-11  Patrick Palka  <ppalka@redhat.com>
363         PR c++/88115
364         * libcp1plugin.cc (plugin_build_unary_expr): Pass true to
365         cxx_sizeof_or_alignof_expr.
367 2020-11-10  Marek Polacek  <polacek@redhat.com>
369         PR c++/97518
370         * libcp1plugin.cc (plugin_add_static_assert): Pass false to
371         finish_static_assert.
373 2020-11-06  Nathan Sidwell  <nathan@acm.org>
375         * libcc1plugin.cc (address_rewriter): Rename
376         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
377         * libcp1plugin.cc (supplement_binding): Likewise.
379 2020-10-14  Nathan Sidwell  <nathan@acm.org>
381         * libcp1plugin.cc (plugin_add_friend): Set DECL_UNIQUE_FRIEND_P.
383 2020-10-07  Nathan Sidwell  <nathan@acm.org>
385         * libcp1plugin.cc (supplement_binding): Rename
386         DECL_BUILTIN_P.
388 2020-10-02  Nathan Sidwell  <nathan@acm.org>
390         * libcp1plugin.cc (libcp1plugin.cc): Drop DECL_ANTICIPATED test.
392 2020-09-25  Nathan Sidwell  <nathan@acm.org>
394         * libcp1plugin.cc (supplement_binding): Use DECL_BULTIN_P.
396 2020-09-24  Nathan Sidwell  <nathan@acm.org>
398         * libcp1plugin.cc (supplement_binding): Drop default args to
399         duplicate_decls.
400         (safe_pushtag): Drop scope parm.  Drop default args to pushtag.
401         (safe_pushdecl_maybe_friend): Rename to ...
402         (safe_pushdecl): ... here. Drop is_friend parm.  Drop default args
403         to pushdecl.
404         (plugin_build_decl): Adjust safe_pushdecl & safe_pushtag calls.
405         (plugin_build_constant): Adjust safe_pushdecl call.
407 2020-09-10  Nathan Sidwell  <nathan@acm.org>
409         * libcp1plugin.cc (plugin_build_call_expr): Use DECL_LOCAL_DECL_P.
411 2020-08-14  Nathan Sidwell  <nathan@acm.org>
413         * libcp1plugin.cc (plugin_build_dependent_expr): Rename
414         lookup_name_real call.
416 2020-08-14  Nathan Sidwell  <nathan@acm.org>
418         * libcp1plugin.cc (plugin_build_dependent_exp): Adjust
419         lookup_name_real call.
421 2020-08-14  Nathan Sidwell  <nathan@acm.org>
423         * libcp1plugin.cc (plugin_build_dependent_expr): Adjust
424         lookup_name_real & lookup_qualified_name calls.
426 2020-08-13  Nathan Sidwell  <nathan@acm.org>
428         * libcp1plugin.cc (plugin_build_dependent_expr): Likewise.
430 2020-07-30  H.J. Lu  <hjl.tools@gmail.com>
432         PR bootstrap/96202
433         * configure: Regenerated.
435 2020-06-30  Nathan Sidwell  <nathan@acm.org>
437         * libcp1plugin.cc (plugin_build_decl): Adjust clone_function_decl
438         call.
440 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
442         PR bootstrap/95413
443         * configure: Regenerated.
445 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
447         * configure: Regenerated.
449 2020-05-12  H.J. Lu  <hongjiu.lu@intel.com>
451         * Makefile.am (AM_CXXFLAGS): Add $(CET_HOST_FLAGS).
452         * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
453         AC_SUBST(CET_HOST_FLAGS).
454         * Makefile.in: Regenerated.
455         * aclocal.m4: Likewise.
456         * configure: Likewise.
458 2020-02-12  Patrick Palka  <ppalka@redhat.com>
460         PR c++/69448
461         PR c++/80471
462         * libcp1plugin.cc (plugin_get_expr_type): No need to explicitly set
463         AUTO_IS_DECLTYPE anymore.
465 2020-01-07  Paolo Carlini  <paolo.carlini@oracle.com>
467         * libcp1plugin.cc (plugin_build_new_expr): Update build_new call.
469 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
471         Update copyright years.
473 2019-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
475         * libcp1plugin.cc (plugin_build_unary_expr): Update delete_sanity
476         call.
478 2019-12-18  Paolo Carlini  <paolo.carlini@oracle.com>
480         * libcp1plugin.cc (plugin_build_unary_expr): Update build_throw
481         and cxx_sizeof_or_alignof_expr calls.
482         (plugin_build_unary_type_expr): Likewise for
483         cxx_sizeof_or_alignof_type.
485 2019-12-09  Paolo Carlini  <paolo.carlini@oracle.com>
487         * libcp1plugin.cc (plugin_build_cast_expr): Adjust build_cast
488         declaration.
490 2019-12-05  Paolo Carlini  <paolo.carlini@oracle.com>
492         * libcp1plugin.cc (plugin_build_expression_list_expr): Adjust
493         build_functional_cast call.
495 2019-11-25  Paolo Carlini  <paolo.carlini@oracle.com>
497         * libcp1plugin.cc (plugin_pragma_push_user_expression): Update
498         cp_build_indirect_ref call.
500 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
502         * configure: Regenerate.
504 2019-05-21  Nathan Sidwell  <nathan@acm.org>
506         * libcp1plugin.cc (plugin_add_using_decl): Use
507         finish_nonmember_using_decl.
509 2019-05-20  Nathan Sidwell  <nathan@acm.org>
511         * libcp1plugin.cc (plugin_add_using_namespace): Call renamed
512         finish_using_directive.
514 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
516         Update copyright years.
518 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
520         * libcc1plugin.cc: Replace "source_location" with "location_t".
521         (plugin_context::get_source_location): Rename to...
522         (plugin_context::get_location_t): ...this.
523         * libcp1plugin.cc: Likewise.
525 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
527         PR bootstrap/82856
528         * configure.ac: Remove AC_PREREQ.
529         * Makefile.in, aclocal.m4, configure: Regenerate.
531 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
533         PR jit/85384
534         * configure: Regenerate.
536 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
538         Update copyright years.
540 2017-11-14 Boris Kolpackov  <boris@codesynthesis.com>
542         * configure: Regenerate.
544 2017-11-16  Sergio Durigan Junior  <sergiodj@redhat.com>
545             Pedro Alves  <palves@redhat.com>
547         * Makefile.am: Remove references to c-compiler-name.h and
548         cp-compiler-name.h
549         * Makefile.in: Regenerate.
550         * compiler-name.hh: New file.
551         * libcc1.cc: Don't include c-compiler-name.h.  Include
552         compiler-name.hh.
553         * libcp1.cc: Don't include cp-compiler-name.h.  Include
554         compiler-name.hh.
556 2017-11-01  Nathan Sidwell  <nathan@acm.org>
558         * libcp1plugin.cc (plugin_build_decl): Use
559         DECL_OVERLOADED_OPERATOR_CODE_RAW.
561 2017-10-31  Nathan Sidwell  <nathan@acm.org>
563         * libcp1plugin.cc (plugin_build_decl): Use ovl_op_identifier.
564         Directly set operator code.
565         (plugin_build_dependent_expr): Use ovl_op_identifier.
567 2017-10-04  Nathan Sidwell  <nathan@acm.org>
569         * libcp1plugin.cc (supplement_binding): Don't use
570         maybe_remove_implicit_alias.
572 2017-07-20  Nathan Sidwell  <nathan@acm.org>
574         Remove TYPE_METHODS.
575         * libcp1plugin.cc (plugin_build_decl): Member fns are on TYPE_FIELDS.
577 2017-07-12  Nathan Sidwell  <nathan@acm.org>
579         * libcp1plugin.cc (plugin_build_decl): Use
580         DECL_CXX_{CON,DE}STRUCTOR directly.
582 2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>
584         * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
586 2017-06-30  Nathan Sidwell  <nathan@acm.org>
588         * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name.
589         (plugin_build_dependent_expr): Likewise.
591 2017-06-26  Nathan Sidwell  <nathan@acm.org>
593         * libcp1plugin.cc (plugin_build_decl): Don't set
594         DECL_ASSIGNMENT_OPERATOR_P.
596 2017-06-16  Nathan Sidwell  <nathan@acm.org>
598         * libcp1plugin.cc (plugin_build_decl): Adjust parm building.
600 2017-05-26  Nathan Sidwell  <nathan@acm.org>
602         * libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
604         * libcp1plugin.cc (plugin_add_using_namespace): Call
605         finish_namespace_using_directive.
607 2017-05-25  Nathan Sidwell  <nathan@acm.org>
609         * libcp1plugin.cc (plugin_make_namespace_inline): Check and set
610         DECL_NAMESPACE_INLINE_P.
612 2017-05-23  Nathan Sidwell  <nathan@acm.org>
614         * libcp1plugin.cc (plugin_add_using_decl): Call
615         finish_namespace_using_decl.  Use assert not unreachable.
617 2017-05-11  Nathan Sidwell  <nathan@acm.org>
619         * libcp1plugin.cc (safe_pushdecl_maybe_friend): Call pushdecl.
621 2017-05-10  Nathan Sidwell  <nathan@acm.org>
623         * libcp1plugin.cc (plugin_build_decl): Adjust add_method call.
625 2017-04-15  Alexandre Oliva <aoliva@redhat.com>
627         * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
629 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
631         Introduce C++ support.
632         * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
633         (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
634         new macros.
635         (plugin_LTLIBRARIES): Add libcp1plugin.la.
636         (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
637         (cp-compiler-name.h): ... this.  New.
638         (c-compiler-name.h): Rename all over from...
639         (compiler-name.h): ... this.  Create it atomically.
640         (marshall_c_source, marshall_cxx_source): New macros.
641         (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
642         Add marshall_c_source expansion.
643         (libcc1plugin.lo_CPPFLAGS): New macro.
644         (libcp1plugin_la_LDFLAGS): Likewise.
645         (libcp1plugin_la_SOURCES): Likewise.
646         (libcp1plugin.lo_CPPFLAGS): Likewise.
647         (libcp1plugin_la_LIBADD): Likewise.
648         (libcp1plugin_la_DEPENDENCIES): Likewise.
649         (libcp1plugin_la_LINK): Likewise.
650         (libcc1_la_SOURCES): Added marshall_c_source and
651         marshall_cxx_source expansions.
652         * Makefile.in: Rebuild.
653         * compiler-name.h: Rename all over to...
654         * c-compiler-name.h: ... this.  Define C_COMPILER_NAME instead
655         of COMPILER_NAME.
656         * plugin.cc: Rename all over to...
657         * libcc1plugin.cc: ... this.  Include marshall-c.hh.
658         (address_rewriter): Drop cleaning up of VLA sizes.
659         (plugin_build_decl): Mark decls as external.
660         (plugin_tagbind): Propagate name to all variants.
661         (build_anonymous_node): New.
662         (plugin_build_record_type): Use it instead of make_node.
663         (plugin_build_union_type): Likewise.
664         (plugin_build_enum_type): Likewise.
665         (plugin_finish_record_or_union): Update all type variants.
666         (safe_lookup_builtin_type): New.
667         (plugin_int_check): Factor out of, and add checks to, ...
668         (plugin_int_type): ... this.  Rename to...
669         (plugin_int_type_v0): ... this.
670         (plugin_int_type): New interface, new implementation.
671         (plugin_char_type): New.
672         (plugin_float_type_v0): Rename from...
673         (plugin_float_type): ... this.  New interface, new implementation.
674         (plugin_init): Bump handshake version.
675         * libcc1.cc: Include marshall-c.hh.  Drop gcc-interface.h.
676         (call_binding_oracle): Rename to...
677         (c_call_binding_oracle): ... this, into anonymous namespace.
678         (call_symbol_address): Rename to...
679         (c_call_symbol_address): ... this, likewise.
680         (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
681         (libcc1::compiler::find): Refer to C_COMPILER_NAME.
682         (fork_exec): Bump to GCC_C_FE_VERSION_1.
683         (libcc1_compile): Prefix callbacks with c_.
684         (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
685         * libcc1.sym: Export gcc_cp_fe_context.
686         * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
687         * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
688         * libcp1plugin.sym: New.
689         * marshall-c.hh: New.  Move C-specific types from...
690         * marshall.cc: ... this.
691         (cc1_plugin::marshall_array_start): New.
692         (cc1_plugin::marshall_array_elmts): New.
693         (cc1_plugin::marshall for gcc_type_array): Use the above.
694         (cc1_plugin::unmarshall_array_start): New.
695         (cc1_plugin::unmarshall_array_elmts): New.
696         (cc1_plugin::unmarshall for gcc_type_array): Use the above.
697         * marshall.hh: Declare the new array building blocks.
698         Drop C-specific unmarshall declarations.
699         * marshall-cp.hh: New.
700         * names.cc (GCC_METHOD#): Add LANG:: to method names.
701         (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
702         * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
703         corresponding namespaces.
704         * rpc.hh: Don't include marshall.hh.
705         [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
706         gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
708 2017-01-30  Jan Kratochvil <jan.kratochvil@redhat.com>
710         * findcomp.cc: Include system.h.
711         (search_dir): Return absolute filename.
713         * libcc1.cc (libcc1): Add class compiler with field compilerp,
714         class compiler_triplet_regexp and class
715         compiler_driver_filename.
716         (libcc1::libcc1): Initialize compilerp.
717         (libcc1::~libcc1): Delete compilerp.
718         (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
719         (libcc1::compiler_driver_filename::find): New methods.
720         (libcc1_set_arguments): Remove parameter triplet_regexp.
721         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
722         (libcc1_set_arguments_v0): New functions.
723         (vtable): Use libcc1_set_arguments_v0, add
724         libcc1_set_arguments, libcc1_set_triplet_regexp and
725         libcc1_set_driver_filename.
727         * libcc1.cc: Include intl.h.
728         (struct libcc1): Add field verbose.
729         (libcc1::libcc1): Initialize it.
730         (libcc1_set_verbose): New function.
731         (libcc1_set_arguments): Print messages for VERBOSE.
732         (libcc1_compile): Remove parameter verbose.  Use VERBOSE from
733         SELF.
734         (libcc1_compile_v0): New function.
735         (vtable): Use libcc1_compile_v0 and add libcc1_compile and
736         libcc1_set_verbose.
738         * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
739         (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
741 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
743         PR other/79046
744         * configure.ac: Add GCC_BASE_VER.  For --with-gcc-major-version-only
745         use just major number from BASE-VER.
746         * configure: Regenerated.
747         * Makefile.in: Regenerated.
749 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
751         Update copyright years.
753 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
754             Alan Hayward  <alan.hayward@arm.com>
755             David Sherwood  <david.sherwood@arm.com>
757         * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
759 2016-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
761         Update copyrights.
763 2016-04-18  Michael Matz  <matz@suse.de>
765         * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
767 2016-04-11  Segher Boessenkool  <segher@kernel.crashing.org>
769         PR bootstrap/70173
770         * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
771         (compiler-name.h): Shorten recipe so that it fits the line.
772         * Makefile.in: Regenerate.
774 2016-03-14  Andreas Schwab  <schwab@suse.de>
776         * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
777         * configure: Regenerate.
778         * Makefile.in: Regenerate.
780 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
782         * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
783         rather than typed_free_remove.  Remove redudant typedefs.
785 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
787         * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
788         than typed_noop_remove.  Remove redudant typedefs.
789         (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
790         (plugin_context::mark): Likewise.
792 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
794         * Makefile.in: Regenerated with automake-1.11.6.
795         * aclocal.m4: Likewise.
796         * configure: Likewise.
798 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
800         * plugin.cc: Adjust for hash_table changes.
802 2015-04-15  Andreas Schwab  <schwab@suse.de>
804         PR bootstrap/65763
805         * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
806         * Makefile.in: Regenerated.
808 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
810         * plugin.cc: All callers of fatal_error changed to pass
811         input_location as first argument.
813 2015-01-09  Michael Collison  <michael.collison@linaro.org>
815         * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
816         input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
817         due to flattening of tree.h.
819 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
821         PR bootstrap/63784
822         * configure: Regenerated.
824 2014-11-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
826         * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
827         * configure: Regenerate.
828         * connection.cc: Include <string.h>.
829         * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
831 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
833         PR target/63610
834         * configure: Regenerate.
836 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
838         PR bootstrap/63699
839         PR bootstrap/63750
840         * plugin.cc: Don't include <string>.
842 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
843             Phil Muldoon  <pmuldoon@redhat.com>
845         * configure.ac: Remove -Werror addition to WARN_FLAGS.  Add
846         ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
847         * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
848         (WERROR_FLAG): Remove.
849         (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
850         * configure: Regenerated.
851         * Makefile.in: Regenerated.
853 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
855         * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
856         (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
857         New variables.
858         (libiberty): Set to -Wc, followed by the first existing noasan/,
859         pic/ or . libiberty.a.
860         (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
861         libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
862         * Makefile.in: Regenerated.
864 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
865             Jan Kratochvil  <jan.kratochvil@redhat.com>
866             Tom Tromey  <tromey@redhat.com>
868         * aclocal.m4: New file.
869         * callbacks.cc: New file.
870         * callbacks.hh: New file.
871         * cc1plugin-config.h.in: New file.
872         * configure: New file.
873         * configure.ac: New file.
874         * connection.cc: New file.
875         * connection.hh: New file.
876         * findcomp.cc: New file.
877         * findcomp.hh: New file.
878         * libcc1.cc: New file.
879         * libcc1plugin.sym: New file.
880         * libcc1.sym: New file.
881         * Makefile.am: New file.
882         * Makefile.in: New file.
883         * marshall.cc: New file.
884         * marshall.hh: New file.
885         * names.cc: New file.
886         * names.hh: New file.
887         * plugin.cc: New file.
888         * rpc.hh: New file.
889         * status.hh: New file.