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