pa.md: Revert change to use ordered_comparison_operator instead of...
[official-gcc.git] / libcc1 / ChangeLog
blobdea6e6a09a1f8b67d375ddd56be1d3f277067eaa
1 2020-01-01  Jakub Jelinek  <jakub@redhat.com>
3         Update copyright years.
5 2019-12-30  Paolo Carlini  <paolo.carlini@oracle.com>
7         * libcp1plugin.cc (plugin_build_unary_expr): Update delete_sanity
8         call.
10 2019-12-18  Paolo Carlini  <paolo.carlini@oracle.com>
12         * libcp1plugin.cc (plugin_build_unary_expr): Update build_throw
13         and cxx_sizeof_or_alignof_expr calls.
14         (plugin_build_unary_type_expr): Likewise for
15         cxx_sizeof_or_alignof_type.
17 2019-12-09  Paolo Carlini  <paolo.carlini@oracle.com>
19         * libcp1plugin.cc (plugin_build_cast_expr): Adjust build_cast
20         declaration.
22 2019-12-05  Paolo Carlini  <paolo.carlini@oracle.com>
24         * libcp1plugin.cc (plugin_build_expression_list_expr): Adjust
25         build_functional_cast call.
27 2019-11-25  Paolo Carlini  <paolo.carlini@oracle.com>
29         * libcp1plugin.cc (plugin_pragma_push_user_expression): Update
30         cp_build_indirect_ref call.
32 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
34         * configure: Regenerate.
36 2019-05-21  Nathan Sidwell  <nathan@acm.org>
38         * libcp1plugin.cc (plugin_add_using_decl): Use
39         finish_nonmember_using_decl.
41 2019-05-20  Nathan Sidwell  <nathan@acm.org>
43         * libcp1plugin.cc (plugin_add_using_namespace): Call renamed
44         finish_using_directive.
46 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
48         Update copyright years.
50 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
52         * libcc1plugin.cc: Replace "source_location" with "location_t".
53         (plugin_context::get_source_location): Rename to...
54         (plugin_context::get_location_t): ...this.
55         * libcp1plugin.cc: Likewise.
57 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
59         PR bootstrap/82856
60         * configure.ac: Remove AC_PREREQ.
61         * Makefile.in, aclocal.m4, configure: Regenerate.
63 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
65         PR jit/85384
66         * configure: Regenerate.
68 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
70         Update copyright years.
72 2017-11-14 Boris Kolpackov  <boris@codesynthesis.com>
74         * configure: Regenerate.
76 2017-11-16  Sergio Durigan Junior  <sergiodj@redhat.com>
77             Pedro Alves  <palves@redhat.com>
79         * Makefile.am: Remove references to c-compiler-name.h and
80         cp-compiler-name.h
81         * Makefile.in: Regenerate.
82         * compiler-name.hh: New file.
83         * libcc1.cc: Don't include c-compiler-name.h.  Include
84         compiler-name.hh.
85         * libcp1.cc: Don't include cp-compiler-name.h.  Include
86         compiler-name.hh.
88 2017-11-01  Nathan Sidwell  <nathan@acm.org>
90         * libcp1plugin.cc (plugin_build_decl): Use
91         DECL_OVERLOADED_OPERATOR_CODE_RAW.
93 2017-10-31  Nathan Sidwell  <nathan@acm.org>
95         * libcp1plugin.cc (plugin_build_decl): Use ovl_op_identifier.
96         Directly set operator code.
97         (plugin_build_dependent_expr): Use ovl_op_identifier.
99 2017-10-04  Nathan Sidwell  <nathan@acm.org>
101         * libcp1plugin.cc (supplement_binding): Don't use
102         maybe_remove_implicit_alias.
104 2017-07-20  Nathan Sidwell  <nathan@acm.org>
106         Remove TYPE_METHODS.
107         * libcp1plugin.cc (plugin_build_decl): Member fns are on TYPE_FIELDS.
109 2017-07-12  Nathan Sidwell  <nathan@acm.org>
111         * libcp1plugin.cc (plugin_build_decl): Use
112         DECL_CXX_{CON,DE}STRUCTOR directly.
114 2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>
116         * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
118 2017-06-30  Nathan Sidwell  <nathan@acm.org>
120         * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name.
121         (plugin_build_dependent_expr): Likewise.
123 2017-06-26  Nathan Sidwell  <nathan@acm.org>
125         * libcp1plugin.cc (plugin_build_decl): Don't set
126         DECL_ASSIGNMENT_OPERATOR_P.
128 2017-06-16  Nathan Sidwell  <nathan@acm.org>
130         * libcp1plugin.cc (plugin_build_decl): Adjust parm building.
132 2017-05-26  Nathan Sidwell  <nathan@acm.org>
134         * libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
136         * libcp1plugin.cc (plugin_add_using_namespace): Call
137         finish_namespace_using_directive.
139 2017-05-25  Nathan Sidwell  <nathan@acm.org>
141         * libcp1plugin.cc (plugin_make_namespace_inline): Check and set
142         DECL_NAMESPACE_INLINE_P.
144 2017-05-23  Nathan Sidwell  <nathan@acm.org>
146         * libcp1plugin.cc (plugin_add_using_decl): Call
147         finish_namespace_using_decl.  Use assert not unreachable.
149 2017-05-11  Nathan Sidwell  <nathan@acm.org>
151         * libcp1plugin.cc (safe_pushdecl_maybe_friend): Call pushdecl.
153 2017-05-10  Nathan Sidwell  <nathan@acm.org>
155         * libcp1plugin.cc (plugin_build_decl): Adjust add_method call.
157 2017-04-15  Alexandre Oliva <aoliva@redhat.com>
159         * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
161 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
163         Introduce C++ support.
164         * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
165         (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
166         new macros.
167         (plugin_LTLIBRARIES): Add libcp1plugin.la.
168         (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
169         (cp-compiler-name.h): ... this.  New.
170         (c-compiler-name.h): Rename all over from...
171         (compiler-name.h): ... this.  Create it atomically.
172         (marshall_c_source, marshall_cxx_source): New macros.
173         (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
174         Add marshall_c_source expansion.
175         (libcc1plugin.lo_CPPFLAGS): New macro.
176         (libcp1plugin_la_LDFLAGS): Likewise.
177         (libcp1plugin_la_SOURCES): Likewise.
178         (libcp1plugin.lo_CPPFLAGS): Likewise.
179         (libcp1plugin_la_LIBADD): Likewise.
180         (libcp1plugin_la_DEPENDENCIES): Likewise.
181         (libcp1plugin_la_LINK): Likewise.
182         (libcc1_la_SOURCES): Added marshall_c_source and
183         marshall_cxx_source expansions.
184         * Makefile.in: Rebuild.
185         * compiler-name.h: Rename all over to...
186         * c-compiler-name.h: ... this.  Define C_COMPILER_NAME instead
187         of COMPILER_NAME.
188         * plugin.cc: Rename all over to...
189         * libcc1plugin.cc: ... this.  Include marshall-c.hh.
190         (address_rewriter): Drop cleaning up of VLA sizes.
191         (plugin_build_decl): Mark decls as external.
192         (plugin_tagbind): Propagate name to all variants.
193         (build_anonymous_node): New.
194         (plugin_build_record_type): Use it instead of make_node.
195         (plugin_build_union_type): Likewise.
196         (plugin_build_enum_type): Likewise.
197         (plugin_finish_record_or_union): Update all type variants.
198         (safe_lookup_builtin_type): New.
199         (plugin_int_check): Factor out of, and add checks to, ...
200         (plugin_int_type): ... this.  Rename to...
201         (plugin_int_type_v0): ... this.
202         (plugin_int_type): New interface, new implementation.
203         (plugin_char_type): New.
204         (plugin_float_type_v0): Rename from...
205         (plugin_float_type): ... this.  New interface, new implementation.
206         (plugin_init): Bump handshake version.
207         * libcc1.cc: Include marshall-c.hh.  Drop gcc-interface.h.
208         (call_binding_oracle): Rename to...
209         (c_call_binding_oracle): ... this, into anonymous namespace.
210         (call_symbol_address): Rename to...
211         (c_call_symbol_address): ... this, likewise.
212         (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
213         (libcc1::compiler::find): Refer to C_COMPILER_NAME.
214         (fork_exec): Bump to GCC_C_FE_VERSION_1.
215         (libcc1_compile): Prefix callbacks with c_.
216         (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
217         * libcc1.sym: Export gcc_cp_fe_context.
218         * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
219         * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
220         * libcp1plugin.sym: New.
221         * marshall-c.hh: New.  Move C-specific types from...
222         * marshall.cc: ... this.
223         (cc1_plugin::marshall_array_start): New.
224         (cc1_plugin::marshall_array_elmts): New.
225         (cc1_plugin::marshall for gcc_type_array): Use the above.
226         (cc1_plugin::unmarshall_array_start): New.
227         (cc1_plugin::unmarshall_array_elmts): New.
228         (cc1_plugin::unmarshall for gcc_type_array): Use the above.
229         * marshall.hh: Declare the new array building blocks.
230         Drop C-specific unmarshall declarations.
231         * marshall-cp.hh: New.
232         * names.cc (GCC_METHOD#): Add LANG:: to method names.
233         (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
234         * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
235         corresponding namespaces.
236         * rpc.hh: Don't include marshall.hh.
237         [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
238         gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
240 2017-01-30  Jan Kratochvil <jan.kratochvil@redhat.com>
242         * findcomp.cc: Include system.h.
243         (search_dir): Return absolute filename.
245         * libcc1.cc (libcc1): Add class compiler with field compilerp,
246         class compiler_triplet_regexp and class
247         compiler_driver_filename.
248         (libcc1::libcc1): Initialize compilerp.
249         (libcc1::~libcc1): Delete compilerp.
250         (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
251         (libcc1::compiler_driver_filename::find): New methods.
252         (libcc1_set_arguments): Remove parameter triplet_regexp.
253         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
254         (libcc1_set_arguments_v0): New functions.
255         (vtable): Use libcc1_set_arguments_v0, add
256         libcc1_set_arguments, libcc1_set_triplet_regexp and
257         libcc1_set_driver_filename.
259         * libcc1.cc: Include intl.h.
260         (struct libcc1): Add field verbose.
261         (libcc1::libcc1): Initialize it.
262         (libcc1_set_verbose): New function.
263         (libcc1_set_arguments): Print messages for VERBOSE.
264         (libcc1_compile): Remove parameter verbose.  Use VERBOSE from
265         SELF.
266         (libcc1_compile_v0): New function.
267         (vtable): Use libcc1_compile_v0 and add libcc1_compile and
268         libcc1_set_verbose.
270         * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
271         (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
273 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
275         PR other/79046
276         * configure.ac: Add GCC_BASE_VER.  For --with-gcc-major-version-only
277         use just major number from BASE-VER.
278         * configure: Regenerated.
279         * Makefile.in: Regenerated.
281 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
283         Update copyright years.
285 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
286             Alan Hayward  <alan.hayward@arm.com>
287             David Sherwood  <david.sherwood@arm.com>
289         * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
291 2016-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
293         Update copyrights.
295 2016-04-18  Michael Matz  <matz@suse.de>
297         * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
299 2016-04-11  Segher Boessenkool  <segher@kernel.crashing.org>
301         PR bootstrap/70173
302         * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
303         (compiler-name.h): Shorten recipe so that it fits the line.
304         * Makefile.in: Regenerate.
306 2016-03-14  Andreas Schwab  <schwab@suse.de>
308         * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
309         * configure: Regenerate.
310         * Makefile.in: Regenerate.
312 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
314         * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
315         rather than typed_free_remove.  Remove redudant typedefs.
317 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
319         * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
320         than typed_noop_remove.  Remove redudant typedefs.
321         (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
322         (plugin_context::mark): Likewise.
324 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
326         * Makefile.in: Regenerated with automake-1.11.6.
327         * aclocal.m4: Likewise.
328         * configure: Likewise.
330 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
332         * plugin.cc: Adjust for hash_table changes.
334 2015-04-15  Andreas Schwab  <schwab@suse.de>
336         PR bootstrap/65763
337         * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
338         * Makefile.in: Regenerated.
340 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
342         * plugin.cc: All callers of fatal_error changed to pass
343         input_location as first argument.
345 2015-01-09  Michael Collison  <michael.collison@linaro.org>
347         * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
348         input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
349         due to flattening of tree.h.
351 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
353         PR bootstrap/63784
354         * configure: Regenerated.
356 2014-11-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
358         * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
359         * configure: Regenerate.
360         * connection.cc: Include <string.h>.
361         * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
363 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
365         PR target/63610
366         * configure: Regenerate.
368 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
370         PR bootstrap/63699
371         PR bootstrap/63750
372         * plugin.cc: Don't include <string>.
374 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
375             Phil Muldoon  <pmuldoon@redhat.com>
377         * configure.ac: Remove -Werror addition to WARN_FLAGS.  Add
378         ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
379         * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
380         (WERROR_FLAG): Remove.
381         (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
382         * configure: Regenerated.
383         * Makefile.in: Regenerated.
385 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
387         * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
388         (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
389         New variables.
390         (libiberty): Set to -Wc, followed by the first existing noasan/,
391         pic/ or . libiberty.a.
392         (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
393         libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
394         * Makefile.in: Regenerated.
396 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
397             Jan Kratochvil  <jan.kratochvil@redhat.com>
398             Tom Tromey  <tromey@redhat.com>
400         * aclocal.m4: New file.
401         * callbacks.cc: New file.
402         * callbacks.hh: New file.
403         * cc1plugin-config.h.in: New file.
404         * configure: New file.
405         * configure.ac: New file.
406         * connection.cc: New file.
407         * connection.hh: New file.
408         * findcomp.cc: New file.
409         * findcomp.hh: New file.
410         * libcc1.cc: New file.
411         * libcc1plugin.sym: New file.
412         * libcc1.sym: New file.
413         * Makefile.am: New file.
414         * Makefile.in: New file.
415         * marshall.cc: New file.
416         * marshall.hh: New file.
417         * names.cc: New file.
418         * names.hh: New file.
419         * plugin.cc: New file.
420         * rpc.hh: New file.
421         * status.hh: New file.