Fix memory barrier patterns for pre PA8800 processors
[official-gcc.git] / libcc1 / ChangeLog
blob6366a5dc03d8674a8ce2594b60248008a386614f
1 2023-08-11  Joseph Myers  <joseph@codesourcery.com>
3         * configure: Regenerate.
5 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
7         * configure: Regenerate.
9 2023-08-07  Alexander von Gluck IV  <kallisti5@unixzen.com>
11         * configure: Regenerate.
13 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
15         * configure: Regenerate.
17 2023-08-07  Nick Alcock  <nick.alcock@oracle.com>
19         * configure: Regenerate.
21 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
23         * configure: Regenerate.
25 2023-08-07  H.J. Lu  <hjl.tools@gmail.com>
27         * configure: Regenerate.
29 2023-05-18  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
31         * libcc1plugin.cc (plugin_float_type): Ditto.
32         * libcp1plugin.cc (plugin_reactivate_decl): Ditto.
33         (plugin_get_float_type): Ditto.
35 2022-11-01  Nathan Sidwell  <nathan@acm.org>
37         * libcp1plugin.cc (plugin_start_lambda_closure_class_type):
38         Initialize the per-scope, per-signature discriminator.
40 2022-11-01  Nathan Sidwell  <nathan@acm.org>
42         * libcp1plugin.cc (plugin_start_closure): Adjust.
44 2022-10-12  Martin Liska  <mliska@suse.cz>
46         * configure: Regenerate.
48 2022-10-11  Olivier Hainque  <hainque@adacore.com>
49             Olivier Hainque  <hainque@adacore.com>
51         * configure: Regenerate.
53 2022-06-27  Sergei Trofimovich  <siarheit@google.com>
55         PR c++/106102
56         * libcc1plugin.cc: Include <memory> via "system.h".
57         * libcp1plugin.cc: Ditto.
59 2022-06-01  David Seifert  <soap@gentoo.org>
61         PR plugins/95648
62         * configure: Regenerate.
64 2021-12-16  Patrick Palka  <ppalka@redhat.com>
66         PR c++/51577
67         PR c++/83035
68         PR c++/100465
69         * libcp1plugin.cc (plugin_build_unary_expr): Adjust call to
70         build_x_unary_op.
71         (plugin_build_binary_expr): Adjust call to build_x_binary_op.
73 2021-12-15  Iain Sandoe  <iain@sandoe.co.uk>
75         * configure: Regenerate.
77 2021-08-17  Iain Sandoe  <iain@sandoe.co.uk>
79         * Makefile.am: Switch mdynamic-no-pic to fPIC.
80         * Makefile.in: Regenerated.
82 2021-06-28  Martin Sebor  <msebor@redhat.com>
84         * libcp1plugin.cc (record_decl_address): Replace a direct use
85         of TREE_NO_WARNING with suppress_warning.
87 2021-05-05  Tom Tromey  <tom@tromey.com>
89         * compiler.cc (make_regexp): Take const std::string.
90         (cc1_plugin::compiler_triplet_regexp::find): Update.
92 2021-05-05  Tom Tromey  <tom@tromey.com>
94         PR c/94669
95         * compiler.hh (compiler_driver_filename): Take const char *.
96         (compiler_triplet_regexp): Likewise.
98 2021-05-05  Tom Tromey  <tom@tromey.com>
100         * rpc.hh (argument_wrapper) <get>: Replace cast operator.
101         (argument_wrapper<T *>) <get>: Likewise.
102         (unmarshall): Add std::tuple overloads.
103         (callback): Remove.
104         (class invoker): New.
105         * libcp1plugin.cc (plugin_init): Update.
106         * libcp1.cc (libcp1::add_callbacks): Update.
107         * libcc1plugin.cc (plugin_init): Update.
108         * libcc1.cc (libcc1::add_callbacks): Update.
109         * connection.cc (cc1_plugin::connection::do_wait): Update.
111 2021-05-05  Tom Tromey  <tom@tromey.com>
113         * gdbctx.hh (do_compile): Use std::vector.
115 2021-05-05  Tom Tromey  <tom@tromey.com>
117         * libcp1.cc (libcp1): Change parameters.  Update.
118         (libcp1_set_verbose, libcp1_set_arguments)
119         (libcp1_set_triplet_regexp, libcp1_set_driver_filename)
120         (libcp1_set_source_file, libcp1_set_print_callback, fork_exec)
121         (libcp1_compile, libcp1_destroy, vtable): Remove.
122         (libcp1::add_callbacks): New method, extracted from
123         libcp1_compile.
124         (gcc_c_fe_context): Update.
125         * libcc1.cc (libcc1): Change parameters.  Update.
126         (libcc1_set_verbose, libcc1_set_arguments)
127         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
128         (libcc1_set_source_file, libcc1_set_print_callback, fork_exec)
129         (libcc1_compile, libcc1_destroy, vtable): Remove.
130         (libcc1::add_callbacks): New method, extracted from
131         libcc1_compile.
132         (gcc_c_fe_context): Update.
133         * gdbctx.hh (base_gdb_plugin): Change parameters.
134         (~base_gdb_plugin): New.
135         <add_callbacks>: New virtual method.
136         <plugin_name, fe_version, compiler_name, vtable>: New members.
137         (get_self, do_set_verbose, do_set_arguments)
138         (do_set_triplet_regexp, do_set_driver_filename)
139         (do_set_arguments_v0, do_set_source_file, do_set_print_callback)
140         (fork_exec, do_compile, do_compile_v0, do_destroy): New methods.
142 2021-05-05  Tom Tromey  <tom@tromey.com>
144         * libcp1.cc (vtable): Use GCC_FE_VERSION_1.
146 2021-05-05  Tom Tromey  <tom@tromey.com>
148         * libcp1.cc (struct libcp1): Derive from base_gdb_plugin.  Remove
149         shared code.
150         (class libcp1_connection): Remove.
151         (rpc): Remove.
152         (libcp1_set_verbose, libcp1_compile): Update.
153         (cp_call_binding_oracle, cp_call_symbol_address)
154         (cp_call_enter_scope, cp_call_leave_scope): Update.
155         * libcc1.cc (struct libcc1): Derive from base_gdb_plugin.  Remove
156         shared code.
157         (class libcc1_connection): Remove.
158         (c_call_binding_oracle, c_call_symbol_address): Update.
159         (rpc): Remove.
160         (libcc1_set_verbose, libcc1_compile): Update.
161         * gdbctx.hh: New file.
163 2021-05-05  Tom Tromey  <tom@tromey.com>
165         * libcc1plugin.cc: Move code to context.cc.
166         * libcp1plugin.cc: Move code to context.cc.
167         * context.hh: New file.
168         * context.cc: New file.
169         * Makefile.in: Rebuild.
170         * Makefile.am (AM_CPPFLAGS): Add more gcc flags.
171         (CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): Update.
172         (libcc1plugin_la_SOURCES): Add context.hh, context.cc.
173         (libcp1plugin_la_SOURCES): Likewise.
175 2021-05-05  Tom Tromey  <tom@tromey.com>
177         * libcp1plugin.cc: Use static assert.
179 2021-05-05  Tom Tromey  <tom@tromey.com>
181         * libcp1plugin.cc (plugin_context::mark): Use foreach.
182         * libcc1plugin.cc (plugin_context::mark): Use foreach.
184 2021-05-05  Tom Tromey  <tom@tromey.com>
186         * libcp1.cc (compiler, compiler_triplet_regexp)
187         (compiler_driver_filename): Remove.
188         (libcp1::libcp1): Update.
189         (make_regexp, libcp1::compiler::find)
190         (libcp1::compiler_triplet_regexp::find)
191         (libcp1::compiler_driver_filename::find): Remove.
192         (libcp1_set_verbose, libcp1_set_arguments)
193         (libcp1_set_triplet_regexp, libcp1_set_driver_filename): Update.
194         * libcc1.cc (compiler, compiler_triplet_regexp)
195         (compiler_driver_filename): Remove.
196         (libcc1::libcc1): Update.
197         (make_regexp, libcc1::compiler::find)
198         (libcc1::compiler_triplet_regexp::find)
199         (libcc1::compiler_driver_filename::find): Remove.
200         (libcc1_set_verbose, libcc1_set_arguments)
201         (libcc1_set_triplet_regexp, libcc1_set_driver_filename): Update.
202         * compiler.cc: New file.
203         * compiler.hh: New file.
204         * Makefile.in: Rebuild.
205         * Makefile.am (libcc1_la_SOURCES): Add compiler.hh, compiler.cc.
207 2021-05-05  Tom Tromey  <tom@tromey.com>
209         * libcp1.cc (struct libcp1) <connection, compilerp>: Use
210         unique_ptr.
211         (~libcp1): Remove.
212         (libcp1_compile, libcp1_set_triplet_regexp)
213         (libcp1_set_driver_filename): Update.
214         * libcc1.cc (struct libcc1) <connection, compilerp>: Use
215         unique_ptr.
216         (~libcc1): Remove.
217         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
218         (libcc1_compile): Update.
220 2021-05-05  Tom Tromey  <tom@tromey.com>
222         * rpc.hh (deleter): Move template and some specializations to
223         deleter.hh.
224         (argument_wrapper<const T *>): Use cc1_plugin::unique_ptr.
225         * marshall.cc (cc1_plugin::unmarshall): Use
226         cc1_plugin::unique_ptr.
227         * marshall-cp.hh (deleter): New specializations.
228         (unmarshall): Use cc1_plugin::unique_ptr.
229         * deleter.hh: New file.
231 2021-05-05  Tom Tromey  <tom@tromey.com>
233         * rpc.hh (struct deleter): New template class and
234         specializations.
235         (argument_wrapper): Remove specializations.  Add specialization
236         for any pointer type.
238 2021-05-05  Tom Tromey  <tom@tromey.com>
240         * libcp1plugin.cc (plugin_build_function_type): Use std::vector.
241         * libcc1plugin.cc (plugin_build_function_type): Use std::vector.
243 2021-05-05  Tom Tromey  <tom@tromey.com>
245         * libcp1.cc (rpc): Use variadic template.  Remove overloads.
246         * libcc1.cc (rpc): Use variadic template.  Remove overloads.
248 2021-05-05  Tom Tromey  <tom@tromey.com>
250         * rpc.hh (call): Use variadic template.  Remove overloads.
251         * marshall.hh (marshall): Add base overload.  Use variadic
252         template.
254 2021-05-05  Tom Tromey  <tom@tromey.com>
256         * rpc.hh (argument_wrapper): Use delete for copy constructor.
257         * connection.hh (class connection): Use delete for copy
258         constructor.
259         * callbacks.hh (class callbacks): Use delete for copy constructor.
261 2021-05-05  Tom Tromey  <tom@tromey.com>
263         * connection.hh (~connection): Use default.
264         (print): Inline.
265         * connection.cc (cc1_plugin::connection::~connection)
266         (cc1_plugin::connection::print): Remove definitions.
268 2021-05-05  Tom Tromey  <tom@tromey.com>
270         * libcp1.cc (class compiler_triplet_regexp)
271         (class compiler_driver_filename, class libcp1_connection): Use
272         "override".
273         * libcc1.cc (class compiler_triplet_regexp)
274         (class compiler_driver_filename, class libcc1_connection): Use
275         "override".
277 2021-05-05  Tom Tromey  <tom@tromey.com>
279         * marshall.hh (cc1_plugin::unmarshall): Use type traits.
280         * marshall-cp.hh (cc1_plugin::unmarshall): Remove overloads.
281         * marshall-c.hh: Remove.
282         * libcc1plugin.cc: Update includes.
283         * libcc1.cc: Update includes.
285 2021-05-03  H.J. Lu  <hjl.tools@gmail.com>
287         PR bootstrap/99703
288         * configure: Regenerated.
290 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
292         * configure: Re-generate.
294 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
296         PR bootstrap/98380
297         * configure.ac: Set darwin_dynamic_lookup=no instead to empty
298         string.
299         * configure: Regenerated.
301 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
303         PR target/97865
304         * Makefile.am: Add dynamic_lookup to LD flags for Darwin.
305         * configure.ac: Test for Darwin host and set a flag.
306         * Makefile.in: Regenerate.
307         * configure: Regenerate.
309 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
311         * configure: Regenerate.
313 2020-11-11  Patrick Palka  <ppalka@redhat.com>
315         PR c++/88115
316         * libcp1plugin.cc (plugin_build_unary_expr): Pass true to
317         cxx_sizeof_or_alignof_expr.
319 2020-11-10  Marek Polacek  <polacek@redhat.com>
321         PR c++/97518
322         * libcp1plugin.cc (plugin_add_static_assert): Pass false to
323         finish_static_assert.
325 2020-11-06  Nathan Sidwell  <nathan@acm.org>
327         * libcc1plugin.cc (address_rewriter): Rename
328         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
329         * libcp1plugin.cc (supplement_binding): Likewise.
331 2020-10-14  Nathan Sidwell  <nathan@acm.org>
333         * libcp1plugin.cc (plugin_add_friend): Set DECL_UNIQUE_FRIEND_P.
335 2020-10-07  Nathan Sidwell  <nathan@acm.org>
337         * libcp1plugin.cc (supplement_binding): Rename
338         DECL_BUILTIN_P.
340 2020-10-02  Nathan Sidwell  <nathan@acm.org>
342         * libcp1plugin.cc (libcp1plugin.cc): Drop DECL_ANTICIPATED test.
344 2020-09-25  Nathan Sidwell  <nathan@acm.org>
346         * libcp1plugin.cc (supplement_binding): Use DECL_BULTIN_P.
348 2020-09-24  Nathan Sidwell  <nathan@acm.org>
350         * libcp1plugin.cc (supplement_binding): Drop default args to
351         duplicate_decls.
352         (safe_pushtag): Drop scope parm.  Drop default args to pushtag.
353         (safe_pushdecl_maybe_friend): Rename to ...
354         (safe_pushdecl): ... here. Drop is_friend parm.  Drop default args
355         to pushdecl.
356         (plugin_build_decl): Adjust safe_pushdecl & safe_pushtag calls.
357         (plugin_build_constant): Adjust safe_pushdecl call.
359 2020-09-10  Nathan Sidwell  <nathan@acm.org>
361         * libcp1plugin.cc (plugin_build_call_expr): Use DECL_LOCAL_DECL_P.
363 2020-08-14  Nathan Sidwell  <nathan@acm.org>
365         * libcp1plugin.cc (plugin_build_dependent_expr): Rename
366         lookup_name_real call.
368 2020-08-14  Nathan Sidwell  <nathan@acm.org>
370         * libcp1plugin.cc (plugin_build_dependent_exp): Adjust
371         lookup_name_real call.
373 2020-08-14  Nathan Sidwell  <nathan@acm.org>
375         * libcp1plugin.cc (plugin_build_dependent_expr): Adjust
376         lookup_name_real & lookup_qualified_name calls.
378 2020-08-13  Nathan Sidwell  <nathan@acm.org>
380         * libcp1plugin.cc (plugin_build_dependent_expr): Likewise.
382 2020-07-30  H.J. Lu  <hjl.tools@gmail.com>
384         PR bootstrap/96202
385         * configure: Regenerated.
387 2020-06-30  Nathan Sidwell  <nathan@acm.org>
389         * libcp1plugin.cc (plugin_build_decl): Adjust clone_function_decl
390         call.
392 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
394         PR bootstrap/95413
395         * configure: Regenerated.
397 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
399         * configure: Regenerated.
401 2020-05-12  H.J. Lu  <hongjiu.lu@intel.com>
403         * Makefile.am (AM_CXXFLAGS): Add $(CET_HOST_FLAGS).
404         * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
405         AC_SUBST(CET_HOST_FLAGS).
406         * Makefile.in: Regenerated.
407         * aclocal.m4: Likewise.
408         * configure: Likewise.
410 2020-02-12  Patrick Palka  <ppalka@redhat.com>
412         PR c++/69448
413         PR c++/80471
414         * libcp1plugin.cc (plugin_get_expr_type): No need to explicitly set
415         AUTO_IS_DECLTYPE anymore.
417 2020-01-07  Paolo Carlini  <paolo.carlini@oracle.com>
419         * libcp1plugin.cc (plugin_build_new_expr): Update build_new call.
421 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
423         Update copyright years.
425 2019-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
427         * libcp1plugin.cc (plugin_build_unary_expr): Update delete_sanity
428         call.
430 2019-12-18  Paolo Carlini  <paolo.carlini@oracle.com>
432         * libcp1plugin.cc (plugin_build_unary_expr): Update build_throw
433         and cxx_sizeof_or_alignof_expr calls.
434         (plugin_build_unary_type_expr): Likewise for
435         cxx_sizeof_or_alignof_type.
437 2019-12-09  Paolo Carlini  <paolo.carlini@oracle.com>
439         * libcp1plugin.cc (plugin_build_cast_expr): Adjust build_cast
440         declaration.
442 2019-12-05  Paolo Carlini  <paolo.carlini@oracle.com>
444         * libcp1plugin.cc (plugin_build_expression_list_expr): Adjust
445         build_functional_cast call.
447 2019-11-25  Paolo Carlini  <paolo.carlini@oracle.com>
449         * libcp1plugin.cc (plugin_pragma_push_user_expression): Update
450         cp_build_indirect_ref call.
452 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
454         * configure: Regenerate.
456 2019-05-21  Nathan Sidwell  <nathan@acm.org>
458         * libcp1plugin.cc (plugin_add_using_decl): Use
459         finish_nonmember_using_decl.
461 2019-05-20  Nathan Sidwell  <nathan@acm.org>
463         * libcp1plugin.cc (plugin_add_using_namespace): Call renamed
464         finish_using_directive.
466 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
468         Update copyright years.
470 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
472         * libcc1plugin.cc: Replace "source_location" with "location_t".
473         (plugin_context::get_source_location): Rename to...
474         (plugin_context::get_location_t): ...this.
475         * libcp1plugin.cc: Likewise.
477 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
479         PR bootstrap/82856
480         * configure.ac: Remove AC_PREREQ.
481         * Makefile.in, aclocal.m4, configure: Regenerate.
483 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
485         PR jit/85384
486         * configure: Regenerate.
488 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
490         Update copyright years.
492 2017-11-14 Boris Kolpackov  <boris@codesynthesis.com>
494         * configure: Regenerate.
496 2017-11-16  Sergio Durigan Junior  <sergiodj@redhat.com>
497             Pedro Alves  <palves@redhat.com>
499         * Makefile.am: Remove references to c-compiler-name.h and
500         cp-compiler-name.h
501         * Makefile.in: Regenerate.
502         * compiler-name.hh: New file.
503         * libcc1.cc: Don't include c-compiler-name.h.  Include
504         compiler-name.hh.
505         * libcp1.cc: Don't include cp-compiler-name.h.  Include
506         compiler-name.hh.
508 2017-11-01  Nathan Sidwell  <nathan@acm.org>
510         * libcp1plugin.cc (plugin_build_decl): Use
511         DECL_OVERLOADED_OPERATOR_CODE_RAW.
513 2017-10-31  Nathan Sidwell  <nathan@acm.org>
515         * libcp1plugin.cc (plugin_build_decl): Use ovl_op_identifier.
516         Directly set operator code.
517         (plugin_build_dependent_expr): Use ovl_op_identifier.
519 2017-10-04  Nathan Sidwell  <nathan@acm.org>
521         * libcp1plugin.cc (supplement_binding): Don't use
522         maybe_remove_implicit_alias.
524 2017-07-20  Nathan Sidwell  <nathan@acm.org>
526         Remove TYPE_METHODS.
527         * libcp1plugin.cc (plugin_build_decl): Member fns are on TYPE_FIELDS.
529 2017-07-12  Nathan Sidwell  <nathan@acm.org>
531         * libcp1plugin.cc (plugin_build_decl): Use
532         DECL_CXX_{CON,DE}STRUCTOR directly.
534 2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>
536         * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
538 2017-06-30  Nathan Sidwell  <nathan@acm.org>
540         * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name.
541         (plugin_build_dependent_expr): Likewise.
543 2017-06-26  Nathan Sidwell  <nathan@acm.org>
545         * libcp1plugin.cc (plugin_build_decl): Don't set
546         DECL_ASSIGNMENT_OPERATOR_P.
548 2017-06-16  Nathan Sidwell  <nathan@acm.org>
550         * libcp1plugin.cc (plugin_build_decl): Adjust parm building.
552 2017-05-26  Nathan Sidwell  <nathan@acm.org>
554         * libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
556         * libcp1plugin.cc (plugin_add_using_namespace): Call
557         finish_namespace_using_directive.
559 2017-05-25  Nathan Sidwell  <nathan@acm.org>
561         * libcp1plugin.cc (plugin_make_namespace_inline): Check and set
562         DECL_NAMESPACE_INLINE_P.
564 2017-05-23  Nathan Sidwell  <nathan@acm.org>
566         * libcp1plugin.cc (plugin_add_using_decl): Call
567         finish_namespace_using_decl.  Use assert not unreachable.
569 2017-05-11  Nathan Sidwell  <nathan@acm.org>
571         * libcp1plugin.cc (safe_pushdecl_maybe_friend): Call pushdecl.
573 2017-05-10  Nathan Sidwell  <nathan@acm.org>
575         * libcp1plugin.cc (plugin_build_decl): Adjust add_method call.
577 2017-04-15  Alexandre Oliva <aoliva@redhat.com>
579         * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
581 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
583         Introduce C++ support.
584         * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
585         (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
586         new macros.
587         (plugin_LTLIBRARIES): Add libcp1plugin.la.
588         (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
589         (cp-compiler-name.h): ... this.  New.
590         (c-compiler-name.h): Rename all over from...
591         (compiler-name.h): ... this.  Create it atomically.
592         (marshall_c_source, marshall_cxx_source): New macros.
593         (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
594         Add marshall_c_source expansion.
595         (libcc1plugin.lo_CPPFLAGS): New macro.
596         (libcp1plugin_la_LDFLAGS): Likewise.
597         (libcp1plugin_la_SOURCES): Likewise.
598         (libcp1plugin.lo_CPPFLAGS): Likewise.
599         (libcp1plugin_la_LIBADD): Likewise.
600         (libcp1plugin_la_DEPENDENCIES): Likewise.
601         (libcp1plugin_la_LINK): Likewise.
602         (libcc1_la_SOURCES): Added marshall_c_source and
603         marshall_cxx_source expansions.
604         * Makefile.in: Rebuild.
605         * compiler-name.h: Rename all over to...
606         * c-compiler-name.h: ... this.  Define C_COMPILER_NAME instead
607         of COMPILER_NAME.
608         * plugin.cc: Rename all over to...
609         * libcc1plugin.cc: ... this.  Include marshall-c.hh.
610         (address_rewriter): Drop cleaning up of VLA sizes.
611         (plugin_build_decl): Mark decls as external.
612         (plugin_tagbind): Propagate name to all variants.
613         (build_anonymous_node): New.
614         (plugin_build_record_type): Use it instead of make_node.
615         (plugin_build_union_type): Likewise.
616         (plugin_build_enum_type): Likewise.
617         (plugin_finish_record_or_union): Update all type variants.
618         (safe_lookup_builtin_type): New.
619         (plugin_int_check): Factor out of, and add checks to, ...
620         (plugin_int_type): ... this.  Rename to...
621         (plugin_int_type_v0): ... this.
622         (plugin_int_type): New interface, new implementation.
623         (plugin_char_type): New.
624         (plugin_float_type_v0): Rename from...
625         (plugin_float_type): ... this.  New interface, new implementation.
626         (plugin_init): Bump handshake version.
627         * libcc1.cc: Include marshall-c.hh.  Drop gcc-interface.h.
628         (call_binding_oracle): Rename to...
629         (c_call_binding_oracle): ... this, into anonymous namespace.
630         (call_symbol_address): Rename to...
631         (c_call_symbol_address): ... this, likewise.
632         (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
633         (libcc1::compiler::find): Refer to C_COMPILER_NAME.
634         (fork_exec): Bump to GCC_C_FE_VERSION_1.
635         (libcc1_compile): Prefix callbacks with c_.
636         (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
637         * libcc1.sym: Export gcc_cp_fe_context.
638         * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
639         * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
640         * libcp1plugin.sym: New.
641         * marshall-c.hh: New.  Move C-specific types from...
642         * marshall.cc: ... this.
643         (cc1_plugin::marshall_array_start): New.
644         (cc1_plugin::marshall_array_elmts): New.
645         (cc1_plugin::marshall for gcc_type_array): Use the above.
646         (cc1_plugin::unmarshall_array_start): New.
647         (cc1_plugin::unmarshall_array_elmts): New.
648         (cc1_plugin::unmarshall for gcc_type_array): Use the above.
649         * marshall.hh: Declare the new array building blocks.
650         Drop C-specific unmarshall declarations.
651         * marshall-cp.hh: New.
652         * names.cc (GCC_METHOD#): Add LANG:: to method names.
653         (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
654         * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
655         corresponding namespaces.
656         * rpc.hh: Don't include marshall.hh.
657         [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
658         gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
660 2017-01-30  Jan Kratochvil <jan.kratochvil@redhat.com>
662         * findcomp.cc: Include system.h.
663         (search_dir): Return absolute filename.
665         * libcc1.cc (libcc1): Add class compiler with field compilerp,
666         class compiler_triplet_regexp and class
667         compiler_driver_filename.
668         (libcc1::libcc1): Initialize compilerp.
669         (libcc1::~libcc1): Delete compilerp.
670         (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
671         (libcc1::compiler_driver_filename::find): New methods.
672         (libcc1_set_arguments): Remove parameter triplet_regexp.
673         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
674         (libcc1_set_arguments_v0): New functions.
675         (vtable): Use libcc1_set_arguments_v0, add
676         libcc1_set_arguments, libcc1_set_triplet_regexp and
677         libcc1_set_driver_filename.
679         * libcc1.cc: Include intl.h.
680         (struct libcc1): Add field verbose.
681         (libcc1::libcc1): Initialize it.
682         (libcc1_set_verbose): New function.
683         (libcc1_set_arguments): Print messages for VERBOSE.
684         (libcc1_compile): Remove parameter verbose.  Use VERBOSE from
685         SELF.
686         (libcc1_compile_v0): New function.
687         (vtable): Use libcc1_compile_v0 and add libcc1_compile and
688         libcc1_set_verbose.
690         * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
691         (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
693 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
695         PR other/79046
696         * configure.ac: Add GCC_BASE_VER.  For --with-gcc-major-version-only
697         use just major number from BASE-VER.
698         * configure: Regenerated.
699         * Makefile.in: Regenerated.
701 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
703         Update copyright years.
705 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
706             Alan Hayward  <alan.hayward@arm.com>
707             David Sherwood  <david.sherwood@arm.com>
709         * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
711 2016-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
713         Update copyrights.
715 2016-04-18  Michael Matz  <matz@suse.de>
717         * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
719 2016-04-11  Segher Boessenkool  <segher@kernel.crashing.org>
721         PR bootstrap/70173
722         * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
723         (compiler-name.h): Shorten recipe so that it fits the line.
724         * Makefile.in: Regenerate.
726 2016-03-14  Andreas Schwab  <schwab@suse.de>
728         * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
729         * configure: Regenerate.
730         * Makefile.in: Regenerate.
732 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
734         * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
735         rather than typed_free_remove.  Remove redudant typedefs.
737 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
739         * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
740         than typed_noop_remove.  Remove redudant typedefs.
741         (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
742         (plugin_context::mark): Likewise.
744 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
746         * Makefile.in: Regenerated with automake-1.11.6.
747         * aclocal.m4: Likewise.
748         * configure: Likewise.
750 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
752         * plugin.cc: Adjust for hash_table changes.
754 2015-04-15  Andreas Schwab  <schwab@suse.de>
756         PR bootstrap/65763
757         * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
758         * Makefile.in: Regenerated.
760 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
762         * plugin.cc: All callers of fatal_error changed to pass
763         input_location as first argument.
765 2015-01-09  Michael Collison  <michael.collison@linaro.org>
767         * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
768         input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
769         due to flattening of tree.h.
771 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
773         PR bootstrap/63784
774         * configure: Regenerated.
776 2014-11-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
778         * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
779         * configure: Regenerate.
780         * connection.cc: Include <string.h>.
781         * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
783 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
785         PR target/63610
786         * configure: Regenerate.
788 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
790         PR bootstrap/63699
791         PR bootstrap/63750
792         * plugin.cc: Don't include <string>.
794 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
795             Phil Muldoon  <pmuldoon@redhat.com>
797         * configure.ac: Remove -Werror addition to WARN_FLAGS.  Add
798         ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
799         * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
800         (WERROR_FLAG): Remove.
801         (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
802         * configure: Regenerated.
803         * Makefile.in: Regenerated.
805 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
807         * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
808         (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
809         New variables.
810         (libiberty): Set to -Wc, followed by the first existing noasan/,
811         pic/ or . libiberty.a.
812         (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
813         libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
814         * Makefile.in: Regenerated.
816 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
817             Jan Kratochvil  <jan.kratochvil@redhat.com>
818             Tom Tromey  <tromey@redhat.com>
820         * aclocal.m4: New file.
821         * callbacks.cc: New file.
822         * callbacks.hh: New file.
823         * cc1plugin-config.h.in: New file.
824         * configure: New file.
825         * configure.ac: New file.
826         * connection.cc: New file.
827         * connection.hh: New file.
828         * findcomp.cc: New file.
829         * findcomp.hh: New file.
830         * libcc1.cc: New file.
831         * libcc1plugin.sym: New file.
832         * libcc1.sym: New file.
833         * Makefile.am: New file.
834         * Makefile.in: New file.
835         * marshall.cc: New file.
836         * marshall.hh: New file.
837         * names.cc: New file.
838         * names.hh: New file.
839         * plugin.cc: New file.
840         * rpc.hh: New file.
841         * status.hh: New file.