parser.c (cp_parser_template_declaration_after_parameters): Use DECL_SOURCE_LOCATION...
[official-gcc.git] / libcc1 / ChangeLog
blobe243e554d6404de2f07c732428a3f43773ce0f2a
1 2019-05-21  Nathan Sidwell  <nathan@acm.org>
3         * libcp1plugin.cc (plugin_add_using_decl): Use
4         finish_nonmember_using_decl.
6 2019-05-20  Nathan Sidwell  <nathan@acm.org>
8         * libcp1plugin.cc (plugin_add_using_namespace): Call renamed
9         finish_using_directive.
11 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
13         Update copyright years.
15 2018-11-13  David Malcolm  <dmalcolm@redhat.com>
17         * libcc1plugin.cc: Replace "source_location" with "location_t".
18         (plugin_context::get_source_location): Rename to...
19         (plugin_context::get_location_t): ...this.
20         * libcp1plugin.cc: Likewise.
22 2018-10-31  Joseph Myers  <joseph@codesourcery.com>
24         PR bootstrap/82856
25         * configure.ac: Remove AC_PREREQ.
26         * Makefile.in, aclocal.m4, configure: Regenerate.
28 2018-04-18  David Malcolm  <dmalcolm@redhat.com>
30         PR jit/85384
31         * configure: Regenerate.
33 2018-01-03  Jakub Jelinek  <jakub@redhat.com>
35         Update copyright years.
37 2017-11-14 Boris Kolpackov  <boris@codesynthesis.com>
39         * configure: Regenerate.
41 2017-11-16  Sergio Durigan Junior  <sergiodj@redhat.com>
42             Pedro Alves  <palves@redhat.com>
44         * Makefile.am: Remove references to c-compiler-name.h and
45         cp-compiler-name.h
46         * Makefile.in: Regenerate.
47         * compiler-name.hh: New file.
48         * libcc1.cc: Don't include c-compiler-name.h.  Include
49         compiler-name.hh.
50         * libcp1.cc: Don't include cp-compiler-name.h.  Include
51         compiler-name.hh.
53 2017-11-01  Nathan Sidwell  <nathan@acm.org>
55         * libcp1plugin.cc (plugin_build_decl): Use
56         DECL_OVERLOADED_OPERATOR_CODE_RAW.
58 2017-10-31  Nathan Sidwell  <nathan@acm.org>
60         * libcp1plugin.cc (plugin_build_decl): Use ovl_op_identifier.
61         Directly set operator code.
62         (plugin_build_dependent_expr): Use ovl_op_identifier.
64 2017-10-04  Nathan Sidwell  <nathan@acm.org>
66         * libcp1plugin.cc (supplement_binding): Don't use
67         maybe_remove_implicit_alias.
69 2017-07-20  Nathan Sidwell  <nathan@acm.org>
71         Remove TYPE_METHODS.
72         * libcp1plugin.cc (plugin_build_decl): Member fns are on TYPE_FIELDS.
74 2017-07-12  Nathan Sidwell  <nathan@acm.org>
76         * libcp1plugin.cc (plugin_build_decl): Use
77         DECL_CXX_{CON,DE}STRUCTOR directly.
79 2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>
81         * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
83 2017-06-30  Nathan Sidwell  <nathan@acm.org>
85         * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name.
86         (plugin_build_dependent_expr): Likewise.
88 2017-06-26  Nathan Sidwell  <nathan@acm.org>
90         * libcp1plugin.cc (plugin_build_decl): Don't set
91         DECL_ASSIGNMENT_OPERATOR_P.
93 2017-06-16  Nathan Sidwell  <nathan@acm.org>
95         * libcp1plugin.cc (plugin_build_decl): Adjust parm building.
97 2017-05-26  Nathan Sidwell  <nathan@acm.org>
99         * libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
101         * libcp1plugin.cc (plugin_add_using_namespace): Call
102         finish_namespace_using_directive.
104 2017-05-25  Nathan Sidwell  <nathan@acm.org>
106         * libcp1plugin.cc (plugin_make_namespace_inline): Check and set
107         DECL_NAMESPACE_INLINE_P.
109 2017-05-23  Nathan Sidwell  <nathan@acm.org>
111         * libcp1plugin.cc (plugin_add_using_decl): Call
112         finish_namespace_using_decl.  Use assert not unreachable.
114 2017-05-11  Nathan Sidwell  <nathan@acm.org>
116         * libcp1plugin.cc (safe_pushdecl_maybe_friend): Call pushdecl.
118 2017-05-10  Nathan Sidwell  <nathan@acm.org>
120         * libcp1plugin.cc (plugin_build_decl): Adjust add_method call.
122 2017-04-15  Alexandre Oliva <aoliva@redhat.com>
124         * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
126 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
128         Introduce C++ support.
129         * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
130         (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
131         new macros.
132         (plugin_LTLIBRARIES): Add libcp1plugin.la.
133         (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
134         (cp-compiler-name.h): ... this.  New.
135         (c-compiler-name.h): Rename all over from...
136         (compiler-name.h): ... this.  Create it atomically.
137         (marshall_c_source, marshall_cxx_source): New macros.
138         (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
139         Add marshall_c_source expansion.
140         (libcc1plugin.lo_CPPFLAGS): New macro.
141         (libcp1plugin_la_LDFLAGS): Likewise.
142         (libcp1plugin_la_SOURCES): Likewise.
143         (libcp1plugin.lo_CPPFLAGS): Likewise.
144         (libcp1plugin_la_LIBADD): Likewise.
145         (libcp1plugin_la_DEPENDENCIES): Likewise.
146         (libcp1plugin_la_LINK): Likewise.
147         (libcc1_la_SOURCES): Added marshall_c_source and
148         marshall_cxx_source expansions.
149         * Makefile.in: Rebuild.
150         * compiler-name.h: Rename all over to...
151         * c-compiler-name.h: ... this.  Define C_COMPILER_NAME instead
152         of COMPILER_NAME.
153         * plugin.cc: Rename all over to...
154         * libcc1plugin.cc: ... this.  Include marshall-c.hh.
155         (address_rewriter): Drop cleaning up of VLA sizes.
156         (plugin_build_decl): Mark decls as external.
157         (plugin_tagbind): Propagate name to all variants.
158         (build_anonymous_node): New.
159         (plugin_build_record_type): Use it instead of make_node.
160         (plugin_build_union_type): Likewise.
161         (plugin_build_enum_type): Likewise.
162         (plugin_finish_record_or_union): Update all type variants.
163         (safe_lookup_builtin_type): New.
164         (plugin_int_check): Factor out of, and add checks to, ...
165         (plugin_int_type): ... this.  Rename to...
166         (plugin_int_type_v0): ... this.
167         (plugin_int_type): New interface, new implementation.
168         (plugin_char_type): New.
169         (plugin_float_type_v0): Rename from...
170         (plugin_float_type): ... this.  New interface, new implementation.
171         (plugin_init): Bump handshake version.
172         * libcc1.cc: Include marshall-c.hh.  Drop gcc-interface.h.
173         (call_binding_oracle): Rename to...
174         (c_call_binding_oracle): ... this, into anonymous namespace.
175         (call_symbol_address): Rename to...
176         (c_call_symbol_address): ... this, likewise.
177         (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
178         (libcc1::compiler::find): Refer to C_COMPILER_NAME.
179         (fork_exec): Bump to GCC_C_FE_VERSION_1.
180         (libcc1_compile): Prefix callbacks with c_.
181         (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
182         * libcc1.sym: Export gcc_cp_fe_context.
183         * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
184         * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
185         * libcp1plugin.sym: New.
186         * marshall-c.hh: New.  Move C-specific types from...
187         * marshall.cc: ... this.
188         (cc1_plugin::marshall_array_start): New.
189         (cc1_plugin::marshall_array_elmts): New.
190         (cc1_plugin::marshall for gcc_type_array): Use the above.
191         (cc1_plugin::unmarshall_array_start): New.
192         (cc1_plugin::unmarshall_array_elmts): New.
193         (cc1_plugin::unmarshall for gcc_type_array): Use the above.
194         * marshall.hh: Declare the new array building blocks.
195         Drop C-specific unmarshall declarations.
196         * marshall-cp.hh: New.
197         * names.cc (GCC_METHOD#): Add LANG:: to method names.
198         (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
199         * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
200         corresponding namespaces.
201         * rpc.hh: Don't include marshall.hh.
202         [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
203         gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
205 2017-01-30  Jan Kratochvil <jan.kratochvil@redhat.com>
207         * findcomp.cc: Include system.h.
208         (search_dir): Return absolute filename.
210         * libcc1.cc (libcc1): Add class compiler with field compilerp,
211         class compiler_triplet_regexp and class
212         compiler_driver_filename.
213         (libcc1::libcc1): Initialize compilerp.
214         (libcc1::~libcc1): Delete compilerp.
215         (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
216         (libcc1::compiler_driver_filename::find): New methods.
217         (libcc1_set_arguments): Remove parameter triplet_regexp.
218         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
219         (libcc1_set_arguments_v0): New functions.
220         (vtable): Use libcc1_set_arguments_v0, add
221         libcc1_set_arguments, libcc1_set_triplet_regexp and
222         libcc1_set_driver_filename.
224         * libcc1.cc: Include intl.h.
225         (struct libcc1): Add field verbose.
226         (libcc1::libcc1): Initialize it.
227         (libcc1_set_verbose): New function.
228         (libcc1_set_arguments): Print messages for VERBOSE.
229         (libcc1_compile): Remove parameter verbose.  Use VERBOSE from
230         SELF.
231         (libcc1_compile_v0): New function.
232         (vtable): Use libcc1_compile_v0 and add libcc1_compile and
233         libcc1_set_verbose.
235         * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
236         (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
238 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
240         PR other/79046
241         * configure.ac: Add GCC_BASE_VER.  For --with-gcc-major-version-only
242         use just major number from BASE-VER.
243         * configure: Regenerated.
244         * Makefile.in: Regenerated.
246 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
248         Update copyright years.
250 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
251             Alan Hayward  <alan.hayward@arm.com>
252             David Sherwood  <david.sherwood@arm.com>
254         * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
256 2016-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
258         Update copyrights.
260 2016-04-18  Michael Matz  <matz@suse.de>
262         * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
264 2016-04-11  Segher Boessenkool  <segher@kernel.crashing.org>
266         PR bootstrap/70173
267         * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
268         (compiler-name.h): Shorten recipe so that it fits the line.
269         * Makefile.in: Regenerate.
271 2016-03-14  Andreas Schwab  <schwab@suse.de>
273         * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
274         * configure: Regenerate.
275         * Makefile.in: Regenerate.
277 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
279         * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
280         rather than typed_free_remove.  Remove redudant typedefs.
282 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
284         * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
285         than typed_noop_remove.  Remove redudant typedefs.
286         (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
287         (plugin_context::mark): Likewise.
289 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
291         * Makefile.in: Regenerated with automake-1.11.6.
292         * aclocal.m4: Likewise.
293         * configure: Likewise.
295 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
297         * plugin.cc: Adjust for hash_table changes.
299 2015-04-15  Andreas Schwab  <schwab@suse.de>
301         PR bootstrap/65763
302         * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
303         * Makefile.in: Regenerated.
305 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
307         * plugin.cc: All callers of fatal_error changed to pass
308         input_location as first argument.
310 2015-01-09  Michael Collison  <michael.collison@linaro.org>
312         * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
313         input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
314         due to flattening of tree.h.
316 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
318         PR bootstrap/63784
319         * configure: Regenerated.
321 2014-11-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
323         * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
324         * configure: Regenerate.
325         * connection.cc: Include <string.h>.
326         * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
328 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
330         PR target/63610
331         * configure: Regenerate.
333 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
335         PR bootstrap/63699
336         PR bootstrap/63750
337         * plugin.cc: Don't include <string>.
339 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
340             Phil Muldoon  <pmuldoon@redhat.com>
342         * configure.ac: Remove -Werror addition to WARN_FLAGS.  Add
343         ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
344         * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
345         (WERROR_FLAG): Remove.
346         (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
347         * configure: Regenerated.
348         * Makefile.in: Regenerated.
350 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
352         * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
353         (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
354         New variables.
355         (libiberty): Set to -Wc, followed by the first existing noasan/,
356         pic/ or . libiberty.a.
357         (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
358         libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
359         * Makefile.in: Regenerated.
361 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
362             Jan Kratochvil  <jan.kratochvil@redhat.com>
363             Tom Tromey  <tromey@redhat.com>
365         * aclocal.m4: New file.
366         * callbacks.cc: New file.
367         * callbacks.hh: New file.
368         * cc1plugin-config.h.in: New file.
369         * configure: New file.
370         * configure.ac: New file.
371         * connection.cc: New file.
372         * connection.hh: New file.
373         * findcomp.cc: New file.
374         * findcomp.hh: New file.
375         * libcc1.cc: New file.
376         * libcc1plugin.sym: New file.
377         * libcc1.sym: New file.
378         * Makefile.am: New file.
379         * Makefile.in: New file.
380         * marshall.cc: New file.
381         * marshall.hh: New file.
382         * names.cc: New file.
383         * names.hh: New file.
384         * plugin.cc: New file.
385         * rpc.hh: New file.
386         * status.hh: New file.