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