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