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