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