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