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