2017-04-20 Edward Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / libcc1 / ChangeLog
bloba6b9985e4ab56a30571ed0696c8a9b71672cd3ad
1 2017-04-15  Alexandre Oliva <aoliva@redhat.com>
3         * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
5 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
7         Introduce C++ support.
8         * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
9         (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
10         new macros.
11         (plugin_LTLIBRARIES): Add libcp1plugin.la.
12         (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
13         (cp-compiler-name.h): ... this.  New.
14         (c-compiler-name.h): Rename all over from...
15         (compiler-name.h): ... this.  Create it atomically.
16         (marshall_c_source, marshall_cxx_source): New macros.
17         (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
18         Add marshall_c_source expansion.
19         (libcc1plugin.lo_CPPFLAGS): New macro.
20         (libcp1plugin_la_LDFLAGS): Likewise.
21         (libcp1plugin_la_SOURCES): Likewise.
22         (libcp1plugin.lo_CPPFLAGS): Likewise.
23         (libcp1plugin_la_LIBADD): Likewise.
24         (libcp1plugin_la_DEPENDENCIES): Likewise.
25         (libcp1plugin_la_LINK): Likewise.
26         (libcc1_la_SOURCES): Added marshall_c_source and
27         marshall_cxx_source expansions.
28         * Makefile.in: Rebuild.
29         * compiler-name.h: Rename all over to...
30         * c-compiler-name.h: ... this.  Define C_COMPILER_NAME instead
31         of COMPILER_NAME.
32         * plugin.cc: Rename all over to...
33         * libcc1plugin.cc: ... this.  Include marshall-c.hh.
34         (address_rewriter): Drop cleaning up of VLA sizes.
35         (plugin_build_decl): Mark decls as external.
36         (plugin_tagbind): Propagate name to all variants.
37         (build_anonymous_node): New.
38         (plugin_build_record_type): Use it instead of make_node.
39         (plugin_build_union_type): Likewise.
40         (plugin_build_enum_type): Likewise.
41         (plugin_finish_record_or_union): Update all type variants.
42         (safe_lookup_builtin_type): New.
43         (plugin_int_check): Factor out of, and add checks to, ...
44         (plugin_int_type): ... this.  Rename to...
45         (plugin_int_type_v0): ... this.
46         (plugin_int_type): New interface, new implementation.
47         (plugin_char_type): New.
48         (plugin_float_type_v0): Rename from...
49         (plugin_float_type): ... this.  New interface, new implementation.
50         (plugin_init): Bump handshake version.
51         * libcc1.cc: Include marshall-c.hh.  Drop gcc-interface.h.
52         (call_binding_oracle): Rename to...
53         (c_call_binding_oracle): ... this, into anonymous namespace.
54         (call_symbol_address): Rename to...
55         (c_call_symbol_address): ... this, likewise.
56         (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
57         (libcc1::compiler::find): Refer to C_COMPILER_NAME.
58         (fork_exec): Bump to GCC_C_FE_VERSION_1.
59         (libcc1_compile): Prefix callbacks with c_.
60         (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
61         * libcc1.sym: Export gcc_cp_fe_context.
62         * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
63         * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
64         * libcp1plugin.sym: New.
65         * marshall-c.hh: New.  Move C-specific types from...
66         * marshall.cc: ... this.
67         (cc1_plugin::marshall_array_start): New.
68         (cc1_plugin::marshall_array_elmts): New.
69         (cc1_plugin::marshall for gcc_type_array): Use the above.
70         (cc1_plugin::unmarshall_array_start): New.
71         (cc1_plugin::unmarshall_array_elmts): New.
72         (cc1_plugin::unmarshall for gcc_type_array): Use the above.
73         * marshall.hh: Declare the new array building blocks.
74         Drop C-specific unmarshall declarations.
75         * marshall-cp.hh: New.
76         * names.cc (GCC_METHOD#): Add LANG:: to method names.
77         (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
78         * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
79         corresponding namespaces.
80         * rpc.hh: Don't include marshall.hh.
81         [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
82         gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
84 2017-01-30  Jan Kratochvil <jan.kratochvil@redhat.com>
86         * findcomp.cc: Include system.h.
87         (search_dir): Return absolute filename.
89         * libcc1.cc (libcc1): Add class compiler with field compilerp,
90         class compiler_triplet_regexp and class
91         compiler_driver_filename.
92         (libcc1::libcc1): Initialize compilerp.
93         (libcc1::~libcc1): Delete compilerp.
94         (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
95         (libcc1::compiler_driver_filename::find): New methods.
96         (libcc1_set_arguments): Remove parameter triplet_regexp.
97         (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
98         (libcc1_set_arguments_v0): New functions.
99         (vtable): Use libcc1_set_arguments_v0, add
100         libcc1_set_arguments, libcc1_set_triplet_regexp and
101         libcc1_set_driver_filename.
103         * libcc1.cc: Include intl.h.
104         (struct libcc1): Add field verbose.
105         (libcc1::libcc1): Initialize it.
106         (libcc1_set_verbose): New function.
107         (libcc1_set_arguments): Print messages for VERBOSE.
108         (libcc1_compile): Remove parameter verbose.  Use VERBOSE from
109         SELF.
110         (libcc1_compile_v0): New function.
111         (vtable): Use libcc1_compile_v0 and add libcc1_compile and
112         libcc1_set_verbose.
114         * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
115         (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
117 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
119         PR other/79046
120         * configure.ac: Add GCC_BASE_VER.  For --with-gcc-major-version-only
121         use just major number from BASE-VER.
122         * configure: Regenerated.
123         * Makefile.in: Regenerated.
125 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
127         Update copyright years.
129 2016-11-18  Richard Sandiford  <richard.sandiford@arm.com>
130             Alan Hayward  <alan.hayward@arm.com>
131             David Sherwood  <david.sherwood@arm.com>
133         * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
135 2016-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
137         Update copyrights.
139 2016-04-18  Michael Matz  <matz@suse.de>
141         * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
143 2016-04-11  Segher Boessenkool  <segher@kernel.crashing.org>
145         PR bootstrap/70173
146         * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
147         (compiler-name.h): Shorten recipe so that it fits the line.
148         * Makefile.in: Regenerate.
150 2016-03-14  Andreas Schwab  <schwab@suse.de>
152         * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
153         * configure: Regenerate.
154         * Makefile.in: Regenerate.
156 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
158         * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
159         rather than typed_free_remove.  Remove redudant typedefs.
161 2015-06-25  Richard Sandiford  <richard.sandiford@arm.com>
163         * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
164         than typed_noop_remove.  Remove redudant typedefs.
165         (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
166         (plugin_context::mark): Likewise.
168 2015-05-13  Michael Haubenwallner  <michael.haubenwallner@ssi-schaefer.com>
170         * Makefile.in: Regenerated with automake-1.11.6.
171         * aclocal.m4: Likewise.
172         * configure: Likewise.
174 2015-04-18  Trevor Saunders  <tsaunders@mozilla.com>
176         * plugin.cc: Adjust for hash_table changes.
178 2015-04-15  Andreas Schwab  <schwab@suse.de>
180         PR bootstrap/65763
181         * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
182         * Makefile.in: Regenerated.
184 2015-01-30  Joseph Myers  <joseph@codesourcery.com>
186         * plugin.cc: All callers of fatal_error changed to pass
187         input_location as first argument.
189 2015-01-09  Michael Collison  <michael.collison@linaro.org>
191         * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
192         input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
193         due to flattening of tree.h.
195 2014-11-21  H.J. Lu  <hongjiu.lu@intel.com>
197         PR bootstrap/63784
198         * configure: Regenerated.
200 2014-11-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
202         * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
203         * configure: Regenerate.
204         * connection.cc: Include <string.h>.
205         * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
207 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
209         PR target/63610
210         * configure: Regenerate.
212 2014-11-11  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
214         PR bootstrap/63699
215         PR bootstrap/63750
216         * plugin.cc: Don't include <string>.
218 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
219             Phil Muldoon  <pmuldoon@redhat.com>
221         * configure.ac: Remove -Werror addition to WARN_FLAGS.  Add
222         ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
223         * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
224         (WERROR_FLAG): Remove.
225         (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
226         * configure: Regenerated.
227         * Makefile.in: Regenerated.
229 2014-10-29  Jakub Jelinek  <jakub@redhat.com>
231         * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
232         (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
233         New variables.
234         (libiberty): Set to -Wc, followed by the first existing noasan/,
235         pic/ or . libiberty.a.
236         (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
237         libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
238         * Makefile.in: Regenerated.
240 2014-10-27  Phil Muldoon  <pmuldoon@redhat.com>
241             Jan Kratochvil  <jan.kratochvil@redhat.com>
242             Tom Tromey  <tromey@redhat.com>
244         * aclocal.m4: New file.
245         * callbacks.cc: New file.
246         * callbacks.hh: New file.
247         * cc1plugin-config.h.in: New file.
248         * configure: New file.
249         * configure.ac: New file.
250         * connection.cc: New file.
251         * connection.hh: New file.
252         * findcomp.cc: New file.
253         * findcomp.hh: New file.
254         * libcc1.cc: New file.
255         * libcc1plugin.sym: New file.
256         * libcc1.sym: New file.
257         * Makefile.am: New file.
258         * Makefile.in: New file.
259         * marshall.cc: New file.
260         * marshall.hh: New file.
261         * names.cc: New file.
262         * names.hh: New file.
263         * plugin.cc: New file.
264         * rpc.hh: New file.
265         * status.hh: New file.