1 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
4 * Makefile.am: Add dynamic_lookup to LD flags for Darwin.
5 * configure.ac: Test for Darwin host and set a flag.
6 * Makefile.in: Regenerate.
7 * configure: Regenerate.
9 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
11 * configure: Regenerate.
13 2020-11-11 Patrick Palka <ppalka@redhat.com>
16 * libcp1plugin.cc (plugin_build_unary_expr): Pass true to
17 cxx_sizeof_or_alignof_expr.
19 2020-11-10 Marek Polacek <polacek@redhat.com>
22 * libcp1plugin.cc (plugin_add_static_assert): Pass false to
25 2020-11-06 Nathan Sidwell <nathan@acm.org>
27 * libcc1plugin.cc (address_rewriter): Rename
28 DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
29 * libcp1plugin.cc (supplement_binding): Likewise.
31 2020-10-14 Nathan Sidwell <nathan@acm.org>
33 * libcp1plugin.cc (plugin_add_friend): Set DECL_UNIQUE_FRIEND_P.
35 2020-10-07 Nathan Sidwell <nathan@acm.org>
37 * libcp1plugin.cc (supplement_binding): Rename
40 2020-10-02 Nathan Sidwell <nathan@acm.org>
42 * libcp1plugin.cc (libcp1plugin.cc): Drop DECL_ANTICIPATED test.
44 2020-09-25 Nathan Sidwell <nathan@acm.org>
46 * libcp1plugin.cc (supplement_binding): Use DECL_BULTIN_P.
48 2020-09-24 Nathan Sidwell <nathan@acm.org>
50 * libcp1plugin.cc (supplement_binding): Drop default args to
52 (safe_pushtag): Drop scope parm. Drop default args to pushtag.
53 (safe_pushdecl_maybe_friend): Rename to ...
54 (safe_pushdecl): ... here. Drop is_friend parm. Drop default args
56 (plugin_build_decl): Adjust safe_pushdecl & safe_pushtag calls.
57 (plugin_build_constant): Adjust safe_pushdecl call.
59 2020-09-10 Nathan Sidwell <nathan@acm.org>
61 * libcp1plugin.cc (plugin_build_call_expr): Use DECL_LOCAL_DECL_P.
63 2020-08-14 Nathan Sidwell <nathan@acm.org>
65 * libcp1plugin.cc (plugin_build_dependent_expr): Rename
66 lookup_name_real call.
68 2020-08-14 Nathan Sidwell <nathan@acm.org>
70 * libcp1plugin.cc (plugin_build_dependent_exp): Adjust
71 lookup_name_real call.
73 2020-08-14 Nathan Sidwell <nathan@acm.org>
75 * libcp1plugin.cc (plugin_build_dependent_expr): Adjust
76 lookup_name_real & lookup_qualified_name calls.
78 2020-08-13 Nathan Sidwell <nathan@acm.org>
80 * libcp1plugin.cc (plugin_build_dependent_expr): Likewise.
82 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
85 * configure: Regenerated.
87 2020-06-30 Nathan Sidwell <nathan@acm.org>
89 * libcp1plugin.cc (plugin_build_decl): Adjust clone_function_decl
92 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
95 * configure: Regenerated.
97 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
99 * configure: Regenerated.
101 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
103 * Makefile.am (AM_CXXFLAGS): Add $(CET_HOST_FLAGS).
104 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
105 AC_SUBST(CET_HOST_FLAGS).
106 * Makefile.in: Regenerated.
107 * aclocal.m4: Likewise.
108 * configure: Likewise.
110 2020-02-12 Patrick Palka <ppalka@redhat.com>
114 * libcp1plugin.cc (plugin_get_expr_type): No need to explicitly set
115 AUTO_IS_DECLTYPE anymore.
117 2020-01-07 Paolo Carlini <paolo.carlini@oracle.com>
119 * libcp1plugin.cc (plugin_build_new_expr): Update build_new call.
121 2020-01-01 Jakub Jelinek <jakub@redhat.com>
123 Update copyright years.
125 2019-12-30 Paolo Carlini <paolo.carlini@oracle.com>
127 * libcp1plugin.cc (plugin_build_unary_expr): Update delete_sanity
130 2019-12-18 Paolo Carlini <paolo.carlini@oracle.com>
132 * libcp1plugin.cc (plugin_build_unary_expr): Update build_throw
133 and cxx_sizeof_or_alignof_expr calls.
134 (plugin_build_unary_type_expr): Likewise for
135 cxx_sizeof_or_alignof_type.
137 2019-12-09 Paolo Carlini <paolo.carlini@oracle.com>
139 * libcp1plugin.cc (plugin_build_cast_expr): Adjust build_cast
142 2019-12-05 Paolo Carlini <paolo.carlini@oracle.com>
144 * libcp1plugin.cc (plugin_build_expression_list_expr): Adjust
145 build_functional_cast call.
147 2019-11-25 Paolo Carlini <paolo.carlini@oracle.com>
149 * libcp1plugin.cc (plugin_pragma_push_user_expression): Update
150 cp_build_indirect_ref call.
152 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
154 * configure: Regenerate.
156 2019-05-21 Nathan Sidwell <nathan@acm.org>
158 * libcp1plugin.cc (plugin_add_using_decl): Use
159 finish_nonmember_using_decl.
161 2019-05-20 Nathan Sidwell <nathan@acm.org>
163 * libcp1plugin.cc (plugin_add_using_namespace): Call renamed
164 finish_using_directive.
166 2019-01-01 Jakub Jelinek <jakub@redhat.com>
168 Update copyright years.
170 2018-11-13 David Malcolm <dmalcolm@redhat.com>
172 * libcc1plugin.cc: Replace "source_location" with "location_t".
173 (plugin_context::get_source_location): Rename to...
174 (plugin_context::get_location_t): ...this.
175 * libcp1plugin.cc: Likewise.
177 2018-10-31 Joseph Myers <joseph@codesourcery.com>
180 * configure.ac: Remove AC_PREREQ.
181 * Makefile.in, aclocal.m4, configure: Regenerate.
183 2018-04-18 David Malcolm <dmalcolm@redhat.com>
186 * configure: Regenerate.
188 2018-01-03 Jakub Jelinek <jakub@redhat.com>
190 Update copyright years.
192 2017-11-14 Boris Kolpackov <boris@codesynthesis.com>
194 * configure: Regenerate.
196 2017-11-16 Sergio Durigan Junior <sergiodj@redhat.com>
197 Pedro Alves <palves@redhat.com>
199 * Makefile.am: Remove references to c-compiler-name.h and
201 * Makefile.in: Regenerate.
202 * compiler-name.hh: New file.
203 * libcc1.cc: Don't include c-compiler-name.h. Include
205 * libcp1.cc: Don't include cp-compiler-name.h. Include
208 2017-11-01 Nathan Sidwell <nathan@acm.org>
210 * libcp1plugin.cc (plugin_build_decl): Use
211 DECL_OVERLOADED_OPERATOR_CODE_RAW.
213 2017-10-31 Nathan Sidwell <nathan@acm.org>
215 * libcp1plugin.cc (plugin_build_decl): Use ovl_op_identifier.
216 Directly set operator code.
217 (plugin_build_dependent_expr): Use ovl_op_identifier.
219 2017-10-04 Nathan Sidwell <nathan@acm.org>
221 * libcp1plugin.cc (supplement_binding): Don't use
222 maybe_remove_implicit_alias.
224 2017-07-20 Nathan Sidwell <nathan@acm.org>
227 * libcp1plugin.cc (plugin_build_decl): Member fns are on TYPE_FIELDS.
229 2017-07-12 Nathan Sidwell <nathan@acm.org>
231 * libcp1plugin.cc (plugin_build_decl): Use
232 DECL_CXX_{CON,DE}STRUCTOR directly.
234 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
236 * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
238 2017-06-30 Nathan Sidwell <nathan@acm.org>
240 * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name.
241 (plugin_build_dependent_expr): Likewise.
243 2017-06-26 Nathan Sidwell <nathan@acm.org>
245 * libcp1plugin.cc (plugin_build_decl): Don't set
246 DECL_ASSIGNMENT_OPERATOR_P.
248 2017-06-16 Nathan Sidwell <nathan@acm.org>
250 * libcp1plugin.cc (plugin_build_decl): Adjust parm building.
252 2017-05-26 Nathan Sidwell <nathan@acm.org>
254 * libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
256 * libcp1plugin.cc (plugin_add_using_namespace): Call
257 finish_namespace_using_directive.
259 2017-05-25 Nathan Sidwell <nathan@acm.org>
261 * libcp1plugin.cc (plugin_make_namespace_inline): Check and set
262 DECL_NAMESPACE_INLINE_P.
264 2017-05-23 Nathan Sidwell <nathan@acm.org>
266 * libcp1plugin.cc (plugin_add_using_decl): Call
267 finish_namespace_using_decl. Use assert not unreachable.
269 2017-05-11 Nathan Sidwell <nathan@acm.org>
271 * libcp1plugin.cc (safe_pushdecl_maybe_friend): Call pushdecl.
273 2017-05-10 Nathan Sidwell <nathan@acm.org>
275 * libcp1plugin.cc (plugin_build_decl): Adjust add_method call.
277 2017-04-15 Alexandre Oliva <aoliva@redhat.com>
279 * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
281 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
283 Introduce C++ support.
284 * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
285 (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
287 (plugin_LTLIBRARIES): Add libcp1plugin.la.
288 (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
289 (cp-compiler-name.h): ... this. New.
290 (c-compiler-name.h): Rename all over from...
291 (compiler-name.h): ... this. Create it atomically.
292 (marshall_c_source, marshall_cxx_source): New macros.
293 (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
294 Add marshall_c_source expansion.
295 (libcc1plugin.lo_CPPFLAGS): New macro.
296 (libcp1plugin_la_LDFLAGS): Likewise.
297 (libcp1plugin_la_SOURCES): Likewise.
298 (libcp1plugin.lo_CPPFLAGS): Likewise.
299 (libcp1plugin_la_LIBADD): Likewise.
300 (libcp1plugin_la_DEPENDENCIES): Likewise.
301 (libcp1plugin_la_LINK): Likewise.
302 (libcc1_la_SOURCES): Added marshall_c_source and
303 marshall_cxx_source expansions.
304 * Makefile.in: Rebuild.
305 * compiler-name.h: Rename all over to...
306 * c-compiler-name.h: ... this. Define C_COMPILER_NAME instead
308 * plugin.cc: Rename all over to...
309 * libcc1plugin.cc: ... this. Include marshall-c.hh.
310 (address_rewriter): Drop cleaning up of VLA sizes.
311 (plugin_build_decl): Mark decls as external.
312 (plugin_tagbind): Propagate name to all variants.
313 (build_anonymous_node): New.
314 (plugin_build_record_type): Use it instead of make_node.
315 (plugin_build_union_type): Likewise.
316 (plugin_build_enum_type): Likewise.
317 (plugin_finish_record_or_union): Update all type variants.
318 (safe_lookup_builtin_type): New.
319 (plugin_int_check): Factor out of, and add checks to, ...
320 (plugin_int_type): ... this. Rename to...
321 (plugin_int_type_v0): ... this.
322 (plugin_int_type): New interface, new implementation.
323 (plugin_char_type): New.
324 (plugin_float_type_v0): Rename from...
325 (plugin_float_type): ... this. New interface, new implementation.
326 (plugin_init): Bump handshake version.
327 * libcc1.cc: Include marshall-c.hh. Drop gcc-interface.h.
328 (call_binding_oracle): Rename to...
329 (c_call_binding_oracle): ... this, into anonymous namespace.
330 (call_symbol_address): Rename to...
331 (c_call_symbol_address): ... this, likewise.
332 (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
333 (libcc1::compiler::find): Refer to C_COMPILER_NAME.
334 (fork_exec): Bump to GCC_C_FE_VERSION_1.
335 (libcc1_compile): Prefix callbacks with c_.
336 (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
337 * libcc1.sym: Export gcc_cp_fe_context.
338 * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
339 * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
340 * libcp1plugin.sym: New.
341 * marshall-c.hh: New. Move C-specific types from...
342 * marshall.cc: ... this.
343 (cc1_plugin::marshall_array_start): New.
344 (cc1_plugin::marshall_array_elmts): New.
345 (cc1_plugin::marshall for gcc_type_array): Use the above.
346 (cc1_plugin::unmarshall_array_start): New.
347 (cc1_plugin::unmarshall_array_elmts): New.
348 (cc1_plugin::unmarshall for gcc_type_array): Use the above.
349 * marshall.hh: Declare the new array building blocks.
350 Drop C-specific unmarshall declarations.
351 * marshall-cp.hh: New.
352 * names.cc (GCC_METHOD#): Add LANG:: to method names.
353 (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
354 * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
355 corresponding namespaces.
356 * rpc.hh: Don't include marshall.hh.
357 [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
358 gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
360 2017-01-30 Jan Kratochvil <jan.kratochvil@redhat.com>
362 * findcomp.cc: Include system.h.
363 (search_dir): Return absolute filename.
365 * libcc1.cc (libcc1): Add class compiler with field compilerp,
366 class compiler_triplet_regexp and class
367 compiler_driver_filename.
368 (libcc1::libcc1): Initialize compilerp.
369 (libcc1::~libcc1): Delete compilerp.
370 (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
371 (libcc1::compiler_driver_filename::find): New methods.
372 (libcc1_set_arguments): Remove parameter triplet_regexp.
373 (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
374 (libcc1_set_arguments_v0): New functions.
375 (vtable): Use libcc1_set_arguments_v0, add
376 libcc1_set_arguments, libcc1_set_triplet_regexp and
377 libcc1_set_driver_filename.
379 * libcc1.cc: Include intl.h.
380 (struct libcc1): Add field verbose.
381 (libcc1::libcc1): Initialize it.
382 (libcc1_set_verbose): New function.
383 (libcc1_set_arguments): Print messages for VERBOSE.
384 (libcc1_compile): Remove parameter verbose. Use VERBOSE from
386 (libcc1_compile_v0): New function.
387 (vtable): Use libcc1_compile_v0 and add libcc1_compile and
390 * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
391 (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
393 2017-01-17 Jakub Jelinek <jakub@redhat.com>
396 * configure.ac: Add GCC_BASE_VER. For --with-gcc-major-version-only
397 use just major number from BASE-VER.
398 * configure: Regenerated.
399 * Makefile.in: Regenerated.
401 2017-01-04 Jakub Jelinek <jakub@redhat.com>
403 Update copyright years.
405 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
406 Alan Hayward <alan.hayward@arm.com>
407 David Sherwood <david.sherwood@arm.com>
409 * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
411 2016-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
415 2016-04-18 Michael Matz <matz@suse.de>
417 * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
419 2016-04-11 Segher Boessenkool <segher@kernel.crashing.org>
422 * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
423 (compiler-name.h): Shorten recipe so that it fits the line.
424 * Makefile.in: Regenerate.
426 2016-03-14 Andreas Schwab <schwab@suse.de>
428 * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
429 * configure: Regenerate.
430 * Makefile.in: Regenerate.
432 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
434 * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
435 rather than typed_free_remove. Remove redudant typedefs.
437 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
439 * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
440 than typed_noop_remove. Remove redudant typedefs.
441 (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
442 (plugin_context::mark): Likewise.
444 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
446 * Makefile.in: Regenerated with automake-1.11.6.
447 * aclocal.m4: Likewise.
448 * configure: Likewise.
450 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
452 * plugin.cc: Adjust for hash_table changes.
454 2015-04-15 Andreas Schwab <schwab@suse.de>
457 * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
458 * Makefile.in: Regenerated.
460 2015-01-30 Joseph Myers <joseph@codesourcery.com>
462 * plugin.cc: All callers of fatal_error changed to pass
463 input_location as first argument.
465 2015-01-09 Michael Collison <michael.collison@linaro.org>
467 * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
468 input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
469 due to flattening of tree.h.
471 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
474 * configure: Regenerated.
476 2014-11-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
478 * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
479 * configure: Regenerate.
480 * connection.cc: Include <string.h>.
481 * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
483 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
486 * configure: Regenerate.
488 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
492 * plugin.cc: Don't include <string>.
494 2014-10-29 Jakub Jelinek <jakub@redhat.com>
495 Phil Muldoon <pmuldoon@redhat.com>
497 * configure.ac: Remove -Werror addition to WARN_FLAGS. Add
498 ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
499 * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
500 (WERROR_FLAG): Remove.
501 (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
502 * configure: Regenerated.
503 * Makefile.in: Regenerated.
505 2014-10-29 Jakub Jelinek <jakub@redhat.com>
507 * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
508 (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
510 (libiberty): Set to -Wc, followed by the first existing noasan/,
511 pic/ or . libiberty.a.
512 (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
513 libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
514 * Makefile.in: Regenerated.
516 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
517 Jan Kratochvil <jan.kratochvil@redhat.com>
518 Tom Tromey <tromey@redhat.com>
520 * aclocal.m4: New file.
521 * callbacks.cc: New file.
522 * callbacks.hh: New file.
523 * cc1plugin-config.h.in: New file.
524 * configure: New file.
525 * configure.ac: New file.
526 * connection.cc: New file.
527 * connection.hh: New file.
528 * findcomp.cc: New file.
529 * findcomp.hh: New file.
530 * libcc1.cc: New file.
531 * libcc1plugin.sym: New file.
532 * libcc1.sym: New file.
533 * Makefile.am: New file.
534 * Makefile.in: New file.
535 * marshall.cc: New file.
536 * marshall.hh: New file.
537 * names.cc: New file.
538 * names.hh: New file.
539 * plugin.cc: New file.
541 * status.hh: New file.