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