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