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