PR rtl-optimization/81803
[official-gcc.git] / libcc1 / ChangeLog
blob70998bcddacc5411cb4a1856873fcc6187fecf32
1 2017-10-31  Nathan Sidwell  <nathan@acm.org>
3         * libcp1plugin.cc (plugin_build_decl): Use ovl_op_identifier.
4         Directly set operator code.
5         (plugin_build_dependent_expr): Use ovl_op_identifier.
7 2017-10-04  Nathan Sidwell  <nathan@acm.org>
9         * libcp1plugin.cc (supplement_binding): Don't use
10         maybe_remove_implicit_alias.
12 2017-07-20  Nathan Sidwell  <nathan@acm.org>
14         Remove TYPE_METHODS.
15         * libcp1plugin.cc (plugin_build_decl): Member fns are on TYPE_FIELDS.
17 2017-07-12  Nathan Sidwell  <nathan@acm.org>
19         * libcp1plugin.cc (plugin_build_decl): Use
20         DECL_CXX_{CON,DE}STRUCTOR directly.
22 2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>
24         * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
26 2017-06-30  Nathan Sidwell  <nathan@acm.org>
28         * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name.
29         (plugin_build_dependent_expr): Likewise.
31 2017-06-26  Nathan Sidwell  <nathan@acm.org>
33         * libcp1plugin.cc (plugin_build_decl): Don't set
34         DECL_ASSIGNMENT_OPERATOR_P.
36 2017-06-16  Nathan Sidwell  <nathan@acm.org>
38         * libcp1plugin.cc (plugin_build_decl): Adjust parm building.
40 2017-05-26  Nathan Sidwell  <nathan@acm.org>
42         * libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
44         * libcp1plugin.cc (plugin_add_using_namespace): Call
45         finish_namespace_using_directive.
47 2017-05-25  Nathan Sidwell  <nathan@acm.org>
49         * libcp1plugin.cc (plugin_make_namespace_inline): Check and set
50         DECL_NAMESPACE_INLINE_P.
52 2017-05-23  Nathan Sidwell  <nathan@acm.org>
54         * libcp1plugin.cc (plugin_add_using_decl): Call
55         finish_namespace_using_decl.  Use assert not unreachable.
57 2017-05-11  Nathan Sidwell  <nathan@acm.org>
59         * libcp1plugin.cc (safe_pushdecl_maybe_friend): Call pushdecl.
61 2017-05-10  Nathan Sidwell  <nathan@acm.org>
63         * libcp1plugin.cc (plugin_build_decl): Adjust add_method call.
65 2017-04-15  Alexandre Oliva <aoliva@redhat.com>
67         * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
69 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
71         Introduce C++ support.
72         * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
73         (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
74         new macros.
75         (plugin_LTLIBRARIES): Add libcp1plugin.la.
76         (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
77         (cp-compiler-name.h): ... this.  New.
78         (c-compiler-name.h): Rename all over from...
79         (compiler-name.h): ... this.  Create it atomically.
80         (marshall_c_source, marshall_cxx_source): New macros.
81         (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
82         Add marshall_c_source expansion.
83         (libcc1plugin.lo_CPPFLAGS): New macro.
84         (libcp1plugin_la_LDFLAGS): Likewise.
85         (libcp1plugin_la_SOURCES): Likewise.
86         (libcp1plugin.lo_CPPFLAGS): Likewise.
87         (libcp1plugin_la_LIBADD): Likewise.
88         (libcp1plugin_la_DEPENDENCIES): Likewise.
89         (libcp1plugin_la_LINK): Likewise.
90         (libcc1_la_SOURCES): Added marshall_c_source and
91         marshall_cxx_source expansions.
92         * Makefile.in: Rebuild.
93         * compiler-name.h: Rename all over to...
94         * c-compiler-name.h: ... this.  Define C_COMPILER_NAME instead
95         of COMPILER_NAME.
96         * plugin.cc: Rename all over to...
97         * libcc1plugin.cc: ... this.  Include marshall-c.hh.
98         (address_rewriter): Drop cleaning up of VLA sizes.
99         (plugin_build_decl): Mark decls as external.
100         (plugin_tagbind): Propagate name to all variants.
101         (build_anonymous_node): New.
102         (plugin_build_record_type): Use it instead of make_node.
103         (plugin_build_union_type): Likewise.
104         (plugin_build_enum_type): Likewise.
105         (plugin_finish_record_or_union): Update all type variants.
106         (safe_lookup_builtin_type): New.
107         (plugin_int_check): Factor out of, and add checks to, ...
108         (plugin_int_type): ... this.  Rename to...
109         (plugin_int_type_v0): ... this.
110         (plugin_int_type): New interface, new implementation.
111         (plugin_char_type): New.
112         (plugin_float_type_v0): Rename from...
113         (plugin_float_type): ... this.  New interface, new implementation.
114         (plugin_init): Bump handshake version.
115         * libcc1.cc: Include marshall-c.hh.  Drop gcc-interface.h.
116         (call_binding_oracle): Rename to...
117         (c_call_binding_oracle): ... this, into anonymous namespace.
118         (call_symbol_address): Rename to...
119         (c_call_symbol_address): ... this, likewise.
120         (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
121         (libcc1::compiler::find): Refer to C_COMPILER_NAME.
122         (fork_exec): Bump to GCC_C_FE_VERSION_1.
123         (libcc1_compile): Prefix callbacks with c_.
124         (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
125         * libcc1.sym: Export gcc_cp_fe_context.
126         * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
127         * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
128         * libcp1plugin.sym: New.
129         * marshall-c.hh: New.  Move C-specific types from...
130         * marshall.cc: ... this.
131         (cc1_plugin::marshall_array_start): New.
132         (cc1_plugin::marshall_array_elmts): New.
133         (cc1_plugin::marshall for gcc_type_array): Use the above.
134         (cc1_plugin::unmarshall_array_start): New.
135         (cc1_plugin::unmarshall_array_elmts): New.
136         (cc1_plugin::unmarshall for gcc_type_array): Use the above.
137         * marshall.hh: Declare the new array building blocks.
138         Drop C-specific unmarshall declarations.
139         * marshall-cp.hh: New.
140         * names.cc (GCC_METHOD#): Add LANG:: to method names.
141         (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
142         * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
143         corresponding namespaces.
144         * rpc.hh: Don't include marshall.hh.
145         [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
146         gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
148 2017-01-30  Jan Kratochvil <jan.kratochvil@redhat.com>
150         * findcomp.cc: Include system.h.
151         (search_dir): Return absolute filename.
153         * libcc1.cc (libcc1): Add class compiler with field compilerp,
154         class compiler_triplet_regexp and class
155         compiler_driver_filename.
156         (libcc1::libcc1): Initialize compilerp.
157         (libcc1::~libcc1): Delete compilerp.
158         (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
159         (libcc1::compiler_driver_filename::find): New methods.
160         (libcc1_set_arguments): Remove parameter triplet_regexp.
161         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
162         (libcc1_set_arguments_v0): New functions.
163         (vtable): Use libcc1_set_arguments_v0, add
164         libcc1_set_arguments, libcc1_set_triplet_regexp and
165         libcc1_set_driver_filename.
167         * libcc1.cc: Include intl.h.
168         (struct libcc1): Add field verbose.
169         (libcc1::libcc1): Initialize it.
170         (libcc1_set_verbose): New function.
171         (libcc1_set_arguments): Print messages for VERBOSE.
172         (libcc1_compile): Remove parameter verbose.  Use VERBOSE from
173         SELF.
174         (libcc1_compile_v0): New function.
175         (vtable): Use libcc1_compile_v0 and add libcc1_compile and
176         libcc1_set_verbose.
178         * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
179         (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
181 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
183         PR other/79046
184         * configure.ac: Add GCC_BASE_VER.  For --with-gcc-major-version-only
185         use just major number from BASE-VER.
186         * configure: Regenerated.
187         * Makefile.in: Regenerated.
189 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
191         Update copyright years.
193 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
194             Alan Hayward  <alan.hayward@arm.com>
195             David Sherwood  <david.sherwood@arm.com>
197         * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
199 2016-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
201         Update copyrights.
203 2016-04-18  Michael Matz  <matz@suse.de>
205         * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
207 2016-04-11  Segher Boessenkool  <segher@kernel.crashing.org>
209         PR bootstrap/70173
210         * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
211         (compiler-name.h): Shorten recipe so that it fits the line.
212         * Makefile.in: Regenerate.
214 2016-03-14  Andreas Schwab  <schwab@suse.de>
216         * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
217         * configure: Regenerate.
218         * Makefile.in: Regenerate.
220 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
222         * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
223         rather than typed_free_remove.  Remove redudant typedefs.
225 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
227         * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
228         than typed_noop_remove.  Remove redudant typedefs.
229         (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
230         (plugin_context::mark): Likewise.
232 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
234         * Makefile.in: Regenerated with automake-1.11.6.
235         * aclocal.m4: Likewise.
236         * configure: Likewise.
238 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
240         * plugin.cc: Adjust for hash_table changes.
242 2015-04-15  Andreas Schwab  <schwab@suse.de>
244         PR bootstrap/65763
245         * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
246         * Makefile.in: Regenerated.
248 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
250         * plugin.cc: All callers of fatal_error changed to pass
251         input_location as first argument.
253 2015-01-09  Michael Collison  <michael.collison@linaro.org>
255         * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
256         input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
257         due to flattening of tree.h.
259 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
261         PR bootstrap/63784
262         * configure: Regenerated.
264 2014-11-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
266         * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
267         * configure: Regenerate.
268         * connection.cc: Include <string.h>.
269         * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
271 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
273         PR target/63610
274         * configure: Regenerate.
276 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
278         PR bootstrap/63699
279         PR bootstrap/63750
280         * plugin.cc: Don't include <string>.
282 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
283             Phil Muldoon  <pmuldoon@redhat.com>
285         * configure.ac: Remove -Werror addition to WARN_FLAGS.  Add
286         ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
287         * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
288         (WERROR_FLAG): Remove.
289         (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
290         * configure: Regenerated.
291         * Makefile.in: Regenerated.
293 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
295         * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
296         (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
297         New variables.
298         (libiberty): Set to -Wc, followed by the first existing noasan/,
299         pic/ or . libiberty.a.
300         (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
301         libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
302         * Makefile.in: Regenerated.
304 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
305             Jan Kratochvil  <jan.kratochvil@redhat.com>
306             Tom Tromey  <tromey@redhat.com>
308         * aclocal.m4: New file.
309         * callbacks.cc: New file.
310         * callbacks.hh: New file.
311         * cc1plugin-config.h.in: New file.
312         * configure: New file.
313         * configure.ac: New file.
314         * connection.cc: New file.
315         * connection.hh: New file.
316         * findcomp.cc: New file.
317         * findcomp.hh: New file.
318         * libcc1.cc: New file.
319         * libcc1plugin.sym: New file.
320         * libcc1.sym: New file.
321         * Makefile.am: New file.
322         * Makefile.in: New file.
323         * marshall.cc: New file.
324         * marshall.hh: New file.
325         * names.cc: New file.
326         * names.hh: New file.
327         * plugin.cc: New file.
328         * rpc.hh: New file.
329         * status.hh: New file.