aix: default to DWARF 4.
[official-gcc.git] / libcc1 / ChangeLog
blob8151f12447b94a5e2f9117d5421c1fbe8eda846c
1 2021-01-05  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3         * configure: Re-generate.
5 2020-12-18  Jakub Jelinek  <jakub@redhat.com>
7         PR bootstrap/98380
8         * configure.ac: Set darwin_dynamic_lookup=no instead to empty
9         string.
10         * configure: Regenerated.
12 2020-12-05  Iain Sandoe  <iain@sandoe.co.uk>
14         PR target/97865
15         * Makefile.am: Add dynamic_lookup to LD flags for Darwin.
16         * configure.ac: Test for Darwin host and set a flag.
17         * Makefile.in: Regenerate.
18         * configure: Regenerate.
20 2020-11-29  John David Anglin  <danglin@gcc.gnu.org>
22         * configure: Regenerate.
24 2020-11-11  Patrick Palka  <ppalka@redhat.com>
26         PR c++/88115
27         * libcp1plugin.cc (plugin_build_unary_expr): Pass true to
28         cxx_sizeof_or_alignof_expr.
30 2020-11-10  Marek Polacek  <polacek@redhat.com>
32         PR c++/97518
33         * libcp1plugin.cc (plugin_add_static_assert): Pass false to
34         finish_static_assert.
36 2020-11-06  Nathan Sidwell  <nathan@acm.org>
38         * libcc1plugin.cc (address_rewriter): Rename
39         DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
40         * libcp1plugin.cc (supplement_binding): Likewise.
42 2020-10-14  Nathan Sidwell  <nathan@acm.org>
44         * libcp1plugin.cc (plugin_add_friend): Set DECL_UNIQUE_FRIEND_P.
46 2020-10-07  Nathan Sidwell  <nathan@acm.org>
48         * libcp1plugin.cc (supplement_binding): Rename
49         DECL_BUILTIN_P.
51 2020-10-02  Nathan Sidwell  <nathan@acm.org>
53         * libcp1plugin.cc (libcp1plugin.cc): Drop DECL_ANTICIPATED test.
55 2020-09-25  Nathan Sidwell  <nathan@acm.org>
57         * libcp1plugin.cc (supplement_binding): Use DECL_BULTIN_P.
59 2020-09-24  Nathan Sidwell  <nathan@acm.org>
61         * libcp1plugin.cc (supplement_binding): Drop default args to
62         duplicate_decls.
63         (safe_pushtag): Drop scope parm.  Drop default args to pushtag.
64         (safe_pushdecl_maybe_friend): Rename to ...
65         (safe_pushdecl): ... here. Drop is_friend parm.  Drop default args
66         to pushdecl.
67         (plugin_build_decl): Adjust safe_pushdecl & safe_pushtag calls.
68         (plugin_build_constant): Adjust safe_pushdecl call.
70 2020-09-10  Nathan Sidwell  <nathan@acm.org>
72         * libcp1plugin.cc (plugin_build_call_expr): Use DECL_LOCAL_DECL_P.
74 2020-08-14  Nathan Sidwell  <nathan@acm.org>
76         * libcp1plugin.cc (plugin_build_dependent_expr): Rename
77         lookup_name_real call.
79 2020-08-14  Nathan Sidwell  <nathan@acm.org>
81         * libcp1plugin.cc (plugin_build_dependent_exp): Adjust
82         lookup_name_real call.
84 2020-08-14  Nathan Sidwell  <nathan@acm.org>
86         * libcp1plugin.cc (plugin_build_dependent_expr): Adjust
87         lookup_name_real & lookup_qualified_name calls.
89 2020-08-13  Nathan Sidwell  <nathan@acm.org>
91         * libcp1plugin.cc (plugin_build_dependent_expr): Likewise.
93 2020-07-30  H.J. Lu  <hjl.tools@gmail.com>
95         PR bootstrap/96202
96         * configure: Regenerated.
98 2020-06-30  Nathan Sidwell  <nathan@acm.org>
100         * libcp1plugin.cc (plugin_build_decl): Adjust clone_function_decl
101         call.
103 2020-05-29  H.J. Lu  <hjl.tools@gmail.com>
105         PR bootstrap/95413
106         * configure: Regenerated.
108 2020-05-14  H.J. Lu  <hongjiu.lu@intel.com>
110         * configure: Regenerated.
112 2020-05-12  H.J. Lu  <hongjiu.lu@intel.com>
114         * Makefile.am (AM_CXXFLAGS): Add $(CET_HOST_FLAGS).
115         * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
116         AC_SUBST(CET_HOST_FLAGS).
117         * Makefile.in: Regenerated.
118         * aclocal.m4: Likewise.
119         * configure: Likewise.
121 2020-02-12  Patrick Palka  <ppalka@redhat.com>
123         PR c++/69448
124         PR c++/80471
125         * libcp1plugin.cc (plugin_get_expr_type): No need to explicitly set
126         AUTO_IS_DECLTYPE anymore.
128 2020-01-07  Paolo Carlini  <paolo.carlini@oracle.com>
130         * libcp1plugin.cc (plugin_build_new_expr): Update build_new call.
132 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
134         Update copyright years.
136 2019-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
138         * libcp1plugin.cc (plugin_build_unary_expr): Update delete_sanity
139         call.
141 2019-12-18  Paolo Carlini  <paolo.carlini@oracle.com>
143         * libcp1plugin.cc (plugin_build_unary_expr): Update build_throw
144         and cxx_sizeof_or_alignof_expr calls.
145         (plugin_build_unary_type_expr): Likewise for
146         cxx_sizeof_or_alignof_type.
148 2019-12-09  Paolo Carlini  <paolo.carlini@oracle.com>
150         * libcp1plugin.cc (plugin_build_cast_expr): Adjust build_cast
151         declaration.
153 2019-12-05  Paolo Carlini  <paolo.carlini@oracle.com>
155         * libcp1plugin.cc (plugin_build_expression_list_expr): Adjust
156         build_functional_cast call.
158 2019-11-25  Paolo Carlini  <paolo.carlini@oracle.com>
160         * libcp1plugin.cc (plugin_pragma_push_user_expression): Update
161         cp_build_indirect_ref call.
163 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
165         * configure: Regenerate.
167 2019-05-21  Nathan Sidwell  <nathan@acm.org>
169         * libcp1plugin.cc (plugin_add_using_decl): Use
170         finish_nonmember_using_decl.
172 2019-05-20  Nathan Sidwell  <nathan@acm.org>
174         * libcp1plugin.cc (plugin_add_using_namespace): Call renamed
175         finish_using_directive.
177 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
179         Update copyright years.
181 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
183         * libcc1plugin.cc: Replace "source_location" with "location_t".
184         (plugin_context::get_source_location): Rename to...
185         (plugin_context::get_location_t): ...this.
186         * libcp1plugin.cc: Likewise.
188 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
190         PR bootstrap/82856
191         * configure.ac: Remove AC_PREREQ.
192         * Makefile.in, aclocal.m4, configure: Regenerate.
194 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
196         PR jit/85384
197         * configure: Regenerate.
199 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
201         Update copyright years.
203 2017-11-14 Boris Kolpackov  <boris@codesynthesis.com>
205         * configure: Regenerate.
207 2017-11-16  Sergio Durigan Junior  <sergiodj@redhat.com>
208             Pedro Alves  <palves@redhat.com>
210         * Makefile.am: Remove references to c-compiler-name.h and
211         cp-compiler-name.h
212         * Makefile.in: Regenerate.
213         * compiler-name.hh: New file.
214         * libcc1.cc: Don't include c-compiler-name.h.  Include
215         compiler-name.hh.
216         * libcp1.cc: Don't include cp-compiler-name.h.  Include
217         compiler-name.hh.
219 2017-11-01  Nathan Sidwell  <nathan@acm.org>
221         * libcp1plugin.cc (plugin_build_decl): Use
222         DECL_OVERLOADED_OPERATOR_CODE_RAW.
224 2017-10-31  Nathan Sidwell  <nathan@acm.org>
226         * libcp1plugin.cc (plugin_build_decl): Use ovl_op_identifier.
227         Directly set operator code.
228         (plugin_build_dependent_expr): Use ovl_op_identifier.
230 2017-10-04  Nathan Sidwell  <nathan@acm.org>
232         * libcp1plugin.cc (supplement_binding): Don't use
233         maybe_remove_implicit_alias.
235 2017-07-20  Nathan Sidwell  <nathan@acm.org>
237         Remove TYPE_METHODS.
238         * libcp1plugin.cc (plugin_build_decl): Member fns are on TYPE_FIELDS.
240 2017-07-12  Nathan Sidwell  <nathan@acm.org>
242         * libcp1plugin.cc (plugin_build_decl): Use
243         DECL_CXX_{CON,DE}STRUCTOR directly.
245 2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>
247         * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
249 2017-06-30  Nathan Sidwell  <nathan@acm.org>
251         * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name.
252         (plugin_build_dependent_expr): Likewise.
254 2017-06-26  Nathan Sidwell  <nathan@acm.org>
256         * libcp1plugin.cc (plugin_build_decl): Don't set
257         DECL_ASSIGNMENT_OPERATOR_P.
259 2017-06-16  Nathan Sidwell  <nathan@acm.org>
261         * libcp1plugin.cc (plugin_build_decl): Adjust parm building.
263 2017-05-26  Nathan Sidwell  <nathan@acm.org>
265         * libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
267         * libcp1plugin.cc (plugin_add_using_namespace): Call
268         finish_namespace_using_directive.
270 2017-05-25  Nathan Sidwell  <nathan@acm.org>
272         * libcp1plugin.cc (plugin_make_namespace_inline): Check and set
273         DECL_NAMESPACE_INLINE_P.
275 2017-05-23  Nathan Sidwell  <nathan@acm.org>
277         * libcp1plugin.cc (plugin_add_using_decl): Call
278         finish_namespace_using_decl.  Use assert not unreachable.
280 2017-05-11  Nathan Sidwell  <nathan@acm.org>
282         * libcp1plugin.cc (safe_pushdecl_maybe_friend): Call pushdecl.
284 2017-05-10  Nathan Sidwell  <nathan@acm.org>
286         * libcp1plugin.cc (plugin_build_decl): Adjust add_method call.
288 2017-04-15  Alexandre Oliva <aoliva@redhat.com>
290         * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
292 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
294         Introduce C++ support.
295         * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
296         (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
297         new macros.
298         (plugin_LTLIBRARIES): Add libcp1plugin.la.
299         (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
300         (cp-compiler-name.h): ... this.  New.
301         (c-compiler-name.h): Rename all over from...
302         (compiler-name.h): ... this.  Create it atomically.
303         (marshall_c_source, marshall_cxx_source): New macros.
304         (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
305         Add marshall_c_source expansion.
306         (libcc1plugin.lo_CPPFLAGS): New macro.
307         (libcp1plugin_la_LDFLAGS): Likewise.
308         (libcp1plugin_la_SOURCES): Likewise.
309         (libcp1plugin.lo_CPPFLAGS): Likewise.
310         (libcp1plugin_la_LIBADD): Likewise.
311         (libcp1plugin_la_DEPENDENCIES): Likewise.
312         (libcp1plugin_la_LINK): Likewise.
313         (libcc1_la_SOURCES): Added marshall_c_source and
314         marshall_cxx_source expansions.
315         * Makefile.in: Rebuild.
316         * compiler-name.h: Rename all over to...
317         * c-compiler-name.h: ... this.  Define C_COMPILER_NAME instead
318         of COMPILER_NAME.
319         * plugin.cc: Rename all over to...
320         * libcc1plugin.cc: ... this.  Include marshall-c.hh.
321         (address_rewriter): Drop cleaning up of VLA sizes.
322         (plugin_build_decl): Mark decls as external.
323         (plugin_tagbind): Propagate name to all variants.
324         (build_anonymous_node): New.
325         (plugin_build_record_type): Use it instead of make_node.
326         (plugin_build_union_type): Likewise.
327         (plugin_build_enum_type): Likewise.
328         (plugin_finish_record_or_union): Update all type variants.
329         (safe_lookup_builtin_type): New.
330         (plugin_int_check): Factor out of, and add checks to, ...
331         (plugin_int_type): ... this.  Rename to...
332         (plugin_int_type_v0): ... this.
333         (plugin_int_type): New interface, new implementation.
334         (plugin_char_type): New.
335         (plugin_float_type_v0): Rename from...
336         (plugin_float_type): ... this.  New interface, new implementation.
337         (plugin_init): Bump handshake version.
338         * libcc1.cc: Include marshall-c.hh.  Drop gcc-interface.h.
339         (call_binding_oracle): Rename to...
340         (c_call_binding_oracle): ... this, into anonymous namespace.
341         (call_symbol_address): Rename to...
342         (c_call_symbol_address): ... this, likewise.
343         (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
344         (libcc1::compiler::find): Refer to C_COMPILER_NAME.
345         (fork_exec): Bump to GCC_C_FE_VERSION_1.
346         (libcc1_compile): Prefix callbacks with c_.
347         (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
348         * libcc1.sym: Export gcc_cp_fe_context.
349         * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
350         * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
351         * libcp1plugin.sym: New.
352         * marshall-c.hh: New.  Move C-specific types from...
353         * marshall.cc: ... this.
354         (cc1_plugin::marshall_array_start): New.
355         (cc1_plugin::marshall_array_elmts): New.
356         (cc1_plugin::marshall for gcc_type_array): Use the above.
357         (cc1_plugin::unmarshall_array_start): New.
358         (cc1_plugin::unmarshall_array_elmts): New.
359         (cc1_plugin::unmarshall for gcc_type_array): Use the above.
360         * marshall.hh: Declare the new array building blocks.
361         Drop C-specific unmarshall declarations.
362         * marshall-cp.hh: New.
363         * names.cc (GCC_METHOD#): Add LANG:: to method names.
364         (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
365         * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
366         corresponding namespaces.
367         * rpc.hh: Don't include marshall.hh.
368         [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
369         gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
371 2017-01-30  Jan Kratochvil <jan.kratochvil@redhat.com>
373         * findcomp.cc: Include system.h.
374         (search_dir): Return absolute filename.
376         * libcc1.cc (libcc1): Add class compiler with field compilerp,
377         class compiler_triplet_regexp and class
378         compiler_driver_filename.
379         (libcc1::libcc1): Initialize compilerp.
380         (libcc1::~libcc1): Delete compilerp.
381         (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
382         (libcc1::compiler_driver_filename::find): New methods.
383         (libcc1_set_arguments): Remove parameter triplet_regexp.
384         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
385         (libcc1_set_arguments_v0): New functions.
386         (vtable): Use libcc1_set_arguments_v0, add
387         libcc1_set_arguments, libcc1_set_triplet_regexp and
388         libcc1_set_driver_filename.
390         * libcc1.cc: Include intl.h.
391         (struct libcc1): Add field verbose.
392         (libcc1::libcc1): Initialize it.
393         (libcc1_set_verbose): New function.
394         (libcc1_set_arguments): Print messages for VERBOSE.
395         (libcc1_compile): Remove parameter verbose.  Use VERBOSE from
396         SELF.
397         (libcc1_compile_v0): New function.
398         (vtable): Use libcc1_compile_v0 and add libcc1_compile and
399         libcc1_set_verbose.
401         * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
402         (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
404 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
406         PR other/79046
407         * configure.ac: Add GCC_BASE_VER.  For --with-gcc-major-version-only
408         use just major number from BASE-VER.
409         * configure: Regenerated.
410         * Makefile.in: Regenerated.
412 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
414         Update copyright years.
416 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
417             Alan Hayward  <alan.hayward@arm.com>
418             David Sherwood  <david.sherwood@arm.com>
420         * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
422 2016-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
424         Update copyrights.
426 2016-04-18  Michael Matz  <matz@suse.de>
428         * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
430 2016-04-11  Segher Boessenkool  <segher@kernel.crashing.org>
432         PR bootstrap/70173
433         * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
434         (compiler-name.h): Shorten recipe so that it fits the line.
435         * Makefile.in: Regenerate.
437 2016-03-14  Andreas Schwab  <schwab@suse.de>
439         * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
440         * configure: Regenerate.
441         * Makefile.in: Regenerate.
443 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
445         * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
446         rather than typed_free_remove.  Remove redudant typedefs.
448 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
450         * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
451         than typed_noop_remove.  Remove redudant typedefs.
452         (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
453         (plugin_context::mark): Likewise.
455 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
457         * Makefile.in: Regenerated with automake-1.11.6.
458         * aclocal.m4: Likewise.
459         * configure: Likewise.
461 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
463         * plugin.cc: Adjust for hash_table changes.
465 2015-04-15  Andreas Schwab  <schwab@suse.de>
467         PR bootstrap/65763
468         * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
469         * Makefile.in: Regenerated.
471 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
473         * plugin.cc: All callers of fatal_error changed to pass
474         input_location as first argument.
476 2015-01-09  Michael Collison  <michael.collison@linaro.org>
478         * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
479         input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
480         due to flattening of tree.h.
482 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
484         PR bootstrap/63784
485         * configure: Regenerated.
487 2014-11-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
489         * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
490         * configure: Regenerate.
491         * connection.cc: Include <string.h>.
492         * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
494 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
496         PR target/63610
497         * configure: Regenerate.
499 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
501         PR bootstrap/63699
502         PR bootstrap/63750
503         * plugin.cc: Don't include <string>.
505 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
506             Phil Muldoon  <pmuldoon@redhat.com>
508         * configure.ac: Remove -Werror addition to WARN_FLAGS.  Add
509         ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
510         * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
511         (WERROR_FLAG): Remove.
512         (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
513         * configure: Regenerated.
514         * Makefile.in: Regenerated.
516 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
518         * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
519         (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
520         New variables.
521         (libiberty): Set to -Wc, followed by the first existing noasan/,
522         pic/ or . libiberty.a.
523         (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
524         libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
525         * Makefile.in: Regenerated.
527 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
528             Jan Kratochvil  <jan.kratochvil@redhat.com>
529             Tom Tromey  <tromey@redhat.com>
531         * aclocal.m4: New file.
532         * callbacks.cc: New file.
533         * callbacks.hh: New file.
534         * cc1plugin-config.h.in: New file.
535         * configure: New file.
536         * configure.ac: New file.
537         * connection.cc: New file.
538         * connection.hh: New file.
539         * findcomp.cc: New file.
540         * findcomp.hh: New file.
541         * libcc1.cc: New file.
542         * libcc1plugin.sym: New file.
543         * libcc1.sym: New file.
544         * Makefile.am: New file.
545         * Makefile.in: New file.
546         * marshall.cc: New file.
547         * marshall.hh: New file.
548         * names.cc: New file.
549         * names.hh: New file.
550         * plugin.cc: New file.
551         * rpc.hh: New file.
552         * status.hh: New file.