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