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