ChangeLog 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778
  1. 2021-12-16 Patrick Palka <ppalka@redhat.com>
  2. PR c++/51577
  3. PR c++/83035
  4. PR c++/100465
  5. * libcp1plugin.cc (plugin_build_unary_expr): Adjust call to
  6. build_x_unary_op.
  7. (plugin_build_binary_expr): Adjust call to build_x_binary_op.
  8. 2021-12-15 Iain Sandoe <iain@sandoe.co.uk>
  9. * configure: Regenerate.
  10. 2021-08-17 Iain Sandoe <iain@sandoe.co.uk>
  11. * Makefile.am: Switch mdynamic-no-pic to fPIC.
  12. * Makefile.in: Regenerated.
  13. 2021-06-28 Martin Sebor <msebor@redhat.com>
  14. * libcp1plugin.cc (record_decl_address): Replace a direct use
  15. of TREE_NO_WARNING with suppress_warning.
  16. 2021-05-05 Tom Tromey <tom@tromey.com>
  17. * compiler.cc (make_regexp): Take const std::string.
  18. (cc1_plugin::compiler_triplet_regexp::find): Update.
  19. 2021-05-05 Tom Tromey <tom@tromey.com>
  20. PR c/94669
  21. * compiler.hh (compiler_driver_filename): Take const char *.
  22. (compiler_triplet_regexp): Likewise.
  23. 2021-05-05 Tom Tromey <tom@tromey.com>
  24. * rpc.hh (argument_wrapper) <get>: Replace cast operator.
  25. (argument_wrapper<T *>) <get>: Likewise.
  26. (unmarshall): Add std::tuple overloads.
  27. (callback): Remove.
  28. (class invoker): New.
  29. * libcp1plugin.cc (plugin_init): Update.
  30. * libcp1.cc (libcp1::add_callbacks): Update.
  31. * libcc1plugin.cc (plugin_init): Update.
  32. * libcc1.cc (libcc1::add_callbacks): Update.
  33. * connection.cc (cc1_plugin::connection::do_wait): Update.
  34. 2021-05-05 Tom Tromey <tom@tromey.com>
  35. * gdbctx.hh (do_compile): Use std::vector.
  36. 2021-05-05 Tom Tromey <tom@tromey.com>
  37. * libcp1.cc (libcp1): Change parameters. Update.
  38. (libcp1_set_verbose, libcp1_set_arguments)
  39. (libcp1_set_triplet_regexp, libcp1_set_driver_filename)
  40. (libcp1_set_source_file, libcp1_set_print_callback, fork_exec)
  41. (libcp1_compile, libcp1_destroy, vtable): Remove.
  42. (libcp1::add_callbacks): New method, extracted from
  43. libcp1_compile.
  44. (gcc_c_fe_context): Update.
  45. * libcc1.cc (libcc1): Change parameters. Update.
  46. (libcc1_set_verbose, libcc1_set_arguments)
  47. (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
  48. (libcc1_set_source_file, libcc1_set_print_callback, fork_exec)
  49. (libcc1_compile, libcc1_destroy, vtable): Remove.
  50. (libcc1::add_callbacks): New method, extracted from
  51. libcc1_compile.
  52. (gcc_c_fe_context): Update.
  53. * gdbctx.hh (base_gdb_plugin): Change parameters.
  54. (~base_gdb_plugin): New.
  55. <add_callbacks>: New virtual method.
  56. <plugin_name, fe_version, compiler_name, vtable>: New members.
  57. (get_self, do_set_verbose, do_set_arguments)
  58. (do_set_triplet_regexp, do_set_driver_filename)
  59. (do_set_arguments_v0, do_set_source_file, do_set_print_callback)
  60. (fork_exec, do_compile, do_compile_v0, do_destroy): New methods.
  61. 2021-05-05 Tom Tromey <tom@tromey.com>
  62. * libcp1.cc (vtable): Use GCC_FE_VERSION_1.
  63. 2021-05-05 Tom Tromey <tom@tromey.com>
  64. * libcp1.cc (struct libcp1): Derive from base_gdb_plugin. Remove
  65. shared code.
  66. (class libcp1_connection): Remove.
  67. (rpc): Remove.
  68. (libcp1_set_verbose, libcp1_compile): Update.
  69. (cp_call_binding_oracle, cp_call_symbol_address)
  70. (cp_call_enter_scope, cp_call_leave_scope): Update.
  71. * libcc1.cc (struct libcc1): Derive from base_gdb_plugin. Remove
  72. shared code.
  73. (class libcc1_connection): Remove.
  74. (c_call_binding_oracle, c_call_symbol_address): Update.
  75. (rpc): Remove.
  76. (libcc1_set_verbose, libcc1_compile): Update.
  77. * gdbctx.hh: New file.
  78. 2021-05-05 Tom Tromey <tom@tromey.com>
  79. * libcc1plugin.cc: Move code to context.cc.
  80. * libcp1plugin.cc: Move code to context.cc.
  81. * context.hh: New file.
  82. * context.cc: New file.
  83. * Makefile.in: Rebuild.
  84. * Makefile.am (AM_CPPFLAGS): Add more gcc flags.
  85. (CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): Update.
  86. (libcc1plugin_la_SOURCES): Add context.hh, context.cc.
  87. (libcp1plugin_la_SOURCES): Likewise.
  88. 2021-05-05 Tom Tromey <tom@tromey.com>
  89. * libcp1plugin.cc: Use static assert.
  90. 2021-05-05 Tom Tromey <tom@tromey.com>
  91. * libcp1plugin.cc (plugin_context::mark): Use foreach.
  92. * libcc1plugin.cc (plugin_context::mark): Use foreach.
  93. 2021-05-05 Tom Tromey <tom@tromey.com>
  94. * libcp1.cc (compiler, compiler_triplet_regexp)
  95. (compiler_driver_filename): Remove.
  96. (libcp1::libcp1): Update.
  97. (make_regexp, libcp1::compiler::find)
  98. (libcp1::compiler_triplet_regexp::find)
  99. (libcp1::compiler_driver_filename::find): Remove.
  100. (libcp1_set_verbose, libcp1_set_arguments)
  101. (libcp1_set_triplet_regexp, libcp1_set_driver_filename): Update.
  102. * libcc1.cc (compiler, compiler_triplet_regexp)
  103. (compiler_driver_filename): Remove.
  104. (libcc1::libcc1): Update.
  105. (make_regexp, libcc1::compiler::find)
  106. (libcc1::compiler_triplet_regexp::find)
  107. (libcc1::compiler_driver_filename::find): Remove.
  108. (libcc1_set_verbose, libcc1_set_arguments)
  109. (libcc1_set_triplet_regexp, libcc1_set_driver_filename): Update.
  110. * compiler.cc: New file.
  111. * compiler.hh: New file.
  112. * Makefile.in: Rebuild.
  113. * Makefile.am (libcc1_la_SOURCES): Add compiler.hh, compiler.cc.
  114. 2021-05-05 Tom Tromey <tom@tromey.com>
  115. * libcp1.cc (struct libcp1) <connection, compilerp>: Use
  116. unique_ptr.
  117. (~libcp1): Remove.
  118. (libcp1_compile, libcp1_set_triplet_regexp)
  119. (libcp1_set_driver_filename): Update.
  120. * libcc1.cc (struct libcc1) <connection, compilerp>: Use
  121. unique_ptr.
  122. (~libcc1): Remove.
  123. (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
  124. (libcc1_compile): Update.
  125. 2021-05-05 Tom Tromey <tom@tromey.com>
  126. * rpc.hh (deleter): Move template and some specializations to
  127. deleter.hh.
  128. (argument_wrapper<const T *>): Use cc1_plugin::unique_ptr.
  129. * marshall.cc (cc1_plugin::unmarshall): Use
  130. cc1_plugin::unique_ptr.
  131. * marshall-cp.hh (deleter): New specializations.
  132. (unmarshall): Use cc1_plugin::unique_ptr.
  133. * deleter.hh: New file.
  134. 2021-05-05 Tom Tromey <tom@tromey.com>
  135. * rpc.hh (struct deleter): New template class and
  136. specializations.
  137. (argument_wrapper): Remove specializations. Add specialization
  138. for any pointer type.
  139. 2021-05-05 Tom Tromey <tom@tromey.com>
  140. * libcp1plugin.cc (plugin_build_function_type): Use std::vector.
  141. * libcc1plugin.cc (plugin_build_function_type): Use std::vector.
  142. 2021-05-05 Tom Tromey <tom@tromey.com>
  143. * libcp1.cc (rpc): Use variadic template. Remove overloads.
  144. * libcc1.cc (rpc): Use variadic template. Remove overloads.
  145. 2021-05-05 Tom Tromey <tom@tromey.com>
  146. * rpc.hh (call): Use variadic template. Remove overloads.
  147. * marshall.hh (marshall): Add base overload. Use variadic
  148. template.
  149. 2021-05-05 Tom Tromey <tom@tromey.com>
  150. * rpc.hh (argument_wrapper): Use delete for copy constructor.
  151. * connection.hh (class connection): Use delete for copy
  152. constructor.
  153. * callbacks.hh (class callbacks): Use delete for copy constructor.
  154. 2021-05-05 Tom Tromey <tom@tromey.com>
  155. * connection.hh (~connection): Use default.
  156. (print): Inline.
  157. * connection.cc (cc1_plugin::connection::~connection)
  158. (cc1_plugin::connection::print): Remove definitions.
  159. 2021-05-05 Tom Tromey <tom@tromey.com>
  160. * libcp1.cc (class compiler_triplet_regexp)
  161. (class compiler_driver_filename, class libcp1_connection): Use
  162. "override".
  163. * libcc1.cc (class compiler_triplet_regexp)
  164. (class compiler_driver_filename, class libcc1_connection): Use
  165. "override".
  166. 2021-05-05 Tom Tromey <tom@tromey.com>
  167. * marshall.hh (cc1_plugin::unmarshall): Use type traits.
  168. * marshall-cp.hh (cc1_plugin::unmarshall): Remove overloads.
  169. * marshall-c.hh: Remove.
  170. * libcc1plugin.cc: Update includes.
  171. * libcc1.cc: Update includes.
  172. 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
  173. PR bootstrap/99703
  174. * configure: Regenerated.
  175. 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
  176. * configure: Re-generate.
  177. 2020-12-18 Jakub Jelinek <jakub@redhat.com>
  178. PR bootstrap/98380
  179. * configure.ac: Set darwin_dynamic_lookup=no instead to empty
  180. string.
  181. * configure: Regenerated.
  182. 2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
  183. PR target/97865
  184. * Makefile.am: Add dynamic_lookup to LD flags for Darwin.
  185. * configure.ac: Test for Darwin host and set a flag.
  186. * Makefile.in: Regenerate.
  187. * configure: Regenerate.
  188. 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
  189. * configure: Regenerate.
  190. 2020-11-11 Patrick Palka <ppalka@redhat.com>
  191. PR c++/88115
  192. * libcp1plugin.cc (plugin_build_unary_expr): Pass true to
  193. cxx_sizeof_or_alignof_expr.
  194. 2020-11-10 Marek Polacek <polacek@redhat.com>
  195. PR c++/97518
  196. * libcp1plugin.cc (plugin_add_static_assert): Pass false to
  197. finish_static_assert.
  198. 2020-11-06 Nathan Sidwell <nathan@acm.org>
  199. * libcc1plugin.cc (address_rewriter): Rename
  200. DECL_IS_BUILTIN->DECL_IS_UNDECLARED_BUILTIN.
  201. * libcp1plugin.cc (supplement_binding): Likewise.
  202. 2020-10-14 Nathan Sidwell <nathan@acm.org>
  203. * libcp1plugin.cc (plugin_add_friend): Set DECL_UNIQUE_FRIEND_P.
  204. 2020-10-07 Nathan Sidwell <nathan@acm.org>
  205. * libcp1plugin.cc (supplement_binding): Rename
  206. DECL_BUILTIN_P.
  207. 2020-10-02 Nathan Sidwell <nathan@acm.org>
  208. * libcp1plugin.cc (libcp1plugin.cc): Drop DECL_ANTICIPATED test.
  209. 2020-09-25 Nathan Sidwell <nathan@acm.org>
  210. * libcp1plugin.cc (supplement_binding): Use DECL_BULTIN_P.
  211. 2020-09-24 Nathan Sidwell <nathan@acm.org>
  212. * libcp1plugin.cc (supplement_binding): Drop default args to
  213. duplicate_decls.
  214. (safe_pushtag): Drop scope parm. Drop default args to pushtag.
  215. (safe_pushdecl_maybe_friend): Rename to ...
  216. (safe_pushdecl): ... here. Drop is_friend parm. Drop default args
  217. to pushdecl.
  218. (plugin_build_decl): Adjust safe_pushdecl & safe_pushtag calls.
  219. (plugin_build_constant): Adjust safe_pushdecl call.
  220. 2020-09-10 Nathan Sidwell <nathan@acm.org>
  221. * libcp1plugin.cc (plugin_build_call_expr): Use DECL_LOCAL_DECL_P.
  222. 2020-08-14 Nathan Sidwell <nathan@acm.org>
  223. * libcp1plugin.cc (plugin_build_dependent_expr): Rename
  224. lookup_name_real call.
  225. 2020-08-14 Nathan Sidwell <nathan@acm.org>
  226. * libcp1plugin.cc (plugin_build_dependent_exp): Adjust
  227. lookup_name_real call.
  228. 2020-08-14 Nathan Sidwell <nathan@acm.org>
  229. * libcp1plugin.cc (plugin_build_dependent_expr): Adjust
  230. lookup_name_real & lookup_qualified_name calls.
  231. 2020-08-13 Nathan Sidwell <nathan@acm.org>
  232. * libcp1plugin.cc (plugin_build_dependent_expr): Likewise.
  233. 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
  234. PR bootstrap/96202
  235. * configure: Regenerated.
  236. 2020-06-30 Nathan Sidwell <nathan@acm.org>
  237. * libcp1plugin.cc (plugin_build_decl): Adjust clone_function_decl
  238. call.
  239. 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
  240. PR bootstrap/95413
  241. * configure: Regenerated.
  242. 2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
  243. * configure: Regenerated.
  244. 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
  245. * Makefile.am (AM_CXXFLAGS): Add $(CET_HOST_FLAGS).
  246. * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
  247. AC_SUBST(CET_HOST_FLAGS).
  248. * Makefile.in: Regenerated.
  249. * aclocal.m4: Likewise.
  250. * configure: Likewise.
  251. 2020-02-12 Patrick Palka <ppalka@redhat.com>
  252. PR c++/69448
  253. PR c++/80471
  254. * libcp1plugin.cc (plugin_get_expr_type): No need to explicitly set
  255. AUTO_IS_DECLTYPE anymore.
  256. 2020-01-07 Paolo Carlini <paolo.carlini@oracle.com>
  257. * libcp1plugin.cc (plugin_build_new_expr): Update build_new call.
  258. 2020-01-01 Jakub Jelinek <jakub@redhat.com>
  259. Update copyright years.
  260. 2019-12-30 Paolo Carlini <paolo.carlini@oracle.com>
  261. * libcp1plugin.cc (plugin_build_unary_expr): Update delete_sanity
  262. call.
  263. 2019-12-18 Paolo Carlini <paolo.carlini@oracle.com>
  264. * libcp1plugin.cc (plugin_build_unary_expr): Update build_throw
  265. and cxx_sizeof_or_alignof_expr calls.
  266. (plugin_build_unary_type_expr): Likewise for
  267. cxx_sizeof_or_alignof_type.
  268. 2019-12-09 Paolo Carlini <paolo.carlini@oracle.com>
  269. * libcp1plugin.cc (plugin_build_cast_expr): Adjust build_cast
  270. declaration.
  271. 2019-12-05 Paolo Carlini <paolo.carlini@oracle.com>
  272. * libcp1plugin.cc (plugin_build_expression_list_expr): Adjust
  273. build_functional_cast call.
  274. 2019-11-25 Paolo Carlini <paolo.carlini@oracle.com>
  275. * libcp1plugin.cc (plugin_pragma_push_user_expression): Update
  276. cp_build_indirect_ref call.
  277. 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
  278. * configure: Regenerate.
  279. 2019-05-21 Nathan Sidwell <nathan@acm.org>
  280. * libcp1plugin.cc (plugin_add_using_decl): Use
  281. finish_nonmember_using_decl.
  282. 2019-05-20 Nathan Sidwell <nathan@acm.org>
  283. * libcp1plugin.cc (plugin_add_using_namespace): Call renamed
  284. finish_using_directive.
  285. 2019-01-01 Jakub Jelinek <jakub@redhat.com>
  286. Update copyright years.
  287. 2018-11-13 David Malcolm <dmalcolm@redhat.com>
  288. * libcc1plugin.cc: Replace "source_location" with "location_t".
  289. (plugin_context::get_source_location): Rename to...
  290. (plugin_context::get_location_t): ...this.
  291. * libcp1plugin.cc: Likewise.
  292. 2018-10-31 Joseph Myers <joseph@codesourcery.com>
  293. PR bootstrap/82856
  294. * configure.ac: Remove AC_PREREQ.
  295. * Makefile.in, aclocal.m4, configure: Regenerate.
  296. 2018-04-18 David Malcolm <dmalcolm@redhat.com>
  297. PR jit/85384
  298. * configure: Regenerate.
  299. 2018-01-03 Jakub Jelinek <jakub@redhat.com>
  300. Update copyright years.
  301. 2017-11-14 Boris Kolpackov <boris@codesynthesis.com>
  302. * configure: Regenerate.
  303. 2017-11-16 Sergio Durigan Junior <sergiodj@redhat.com>
  304. Pedro Alves <palves@redhat.com>
  305. * Makefile.am: Remove references to c-compiler-name.h and
  306. cp-compiler-name.h
  307. * Makefile.in: Regenerate.
  308. * compiler-name.hh: New file.
  309. * libcc1.cc: Don't include c-compiler-name.h. Include
  310. compiler-name.hh.
  311. * libcp1.cc: Don't include cp-compiler-name.h. Include
  312. compiler-name.hh.
  313. 2017-11-01 Nathan Sidwell <nathan@acm.org>
  314. * libcp1plugin.cc (plugin_build_decl): Use
  315. DECL_OVERLOADED_OPERATOR_CODE_RAW.
  316. 2017-10-31 Nathan Sidwell <nathan@acm.org>
  317. * libcp1plugin.cc (plugin_build_decl): Use ovl_op_identifier.
  318. Directly set operator code.
  319. (plugin_build_dependent_expr): Use ovl_op_identifier.
  320. 2017-10-04 Nathan Sidwell <nathan@acm.org>
  321. * libcp1plugin.cc (supplement_binding): Don't use
  322. maybe_remove_implicit_alias.
  323. 2017-07-20 Nathan Sidwell <nathan@acm.org>
  324. Remove TYPE_METHODS.
  325. * libcp1plugin.cc (plugin_build_decl): Member fns are on TYPE_FIELDS.
  326. 2017-07-12 Nathan Sidwell <nathan@acm.org>
  327. * libcp1plugin.cc (plugin_build_decl): Use
  328. DECL_CXX_{CON,DE}STRUCTOR directly.
  329. 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
  330. * libcp1plugin.cc (plugin_build_field): Use SET_DECL_MODE.
  331. 2017-06-30 Nathan Sidwell <nathan@acm.org>
  332. * libcp1plugin.cc (plugin_build_decl): Use make_conv_op_name.
  333. (plugin_build_dependent_expr): Likewise.
  334. 2017-06-26 Nathan Sidwell <nathan@acm.org>
  335. * libcp1plugin.cc (plugin_build_decl): Don't set
  336. DECL_ASSIGNMENT_OPERATOR_P.
  337. 2017-06-16 Nathan Sidwell <nathan@acm.org>
  338. * libcp1plugin.cc (plugin_build_decl): Adjust parm building.
  339. 2017-05-26 Nathan Sidwell <nathan@acm.org>
  340. * libcp1plugin.cc (plugin_make_namespace_inline): Push onto linees.
  341. * libcp1plugin.cc (plugin_add_using_namespace): Call
  342. finish_namespace_using_directive.
  343. 2017-05-25 Nathan Sidwell <nathan@acm.org>
  344. * libcp1plugin.cc (plugin_make_namespace_inline): Check and set
  345. DECL_NAMESPACE_INLINE_P.
  346. 2017-05-23 Nathan Sidwell <nathan@acm.org>
  347. * libcp1plugin.cc (plugin_add_using_decl): Call
  348. finish_namespace_using_decl. Use assert not unreachable.
  349. 2017-05-11 Nathan Sidwell <nathan@acm.org>
  350. * libcp1plugin.cc (safe_pushdecl_maybe_friend): Call pushdecl.
  351. 2017-05-10 Nathan Sidwell <nathan@acm.org>
  352. * libcp1plugin.cc (plugin_build_decl): Adjust add_method call.
  353. 2017-04-15 Alexandre Oliva <aoliva@redhat.com>
  354. * libcp1plugin.cc (plugin_build_decl): Call name_unnamed_type.
  355. 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
  356. Introduce C++ support.
  357. * Makefile.am (AM_CPPFLAGS): Move some -I flags to...
  358. (CPPFLAGS_FOR_C_FAMILY, CPPFLAGS_FOR_C, CPPFLAGS_FOR_CXX): ...
  359. new macros.
  360. (plugin_LTLIBRARIES): Add libcp1plugin.la.
  361. (BUILT_SOURCES, MOSTLYCLEANFILES): Add...
  362. (cp-compiler-name.h): ... this. New.
  363. (c-compiler-name.h): Rename all over from...
  364. (compiler-name.h): ... this. Create it atomically.
  365. (marshall_c_source, marshall_cxx_source): New macros.
  366. (libcc1plugin_la_SOURCES): Rename plugin.cc to libcc1plugin.cc.
  367. Add marshall_c_source expansion.
  368. (libcc1plugin.lo_CPPFLAGS): New macro.
  369. (libcp1plugin_la_LDFLAGS): Likewise.
  370. (libcp1plugin_la_SOURCES): Likewise.
  371. (libcp1plugin.lo_CPPFLAGS): Likewise.
  372. (libcp1plugin_la_LIBADD): Likewise.
  373. (libcp1plugin_la_DEPENDENCIES): Likewise.
  374. (libcp1plugin_la_LINK): Likewise.
  375. (libcc1_la_SOURCES): Added marshall_c_source and
  376. marshall_cxx_source expansions.
  377. * Makefile.in: Rebuild.
  378. * compiler-name.h: Rename all over to...
  379. * c-compiler-name.h: ... this. Define C_COMPILER_NAME instead
  380. of COMPILER_NAME.
  381. * plugin.cc: Rename all over to...
  382. * libcc1plugin.cc: ... this. Include marshall-c.hh.
  383. (address_rewriter): Drop cleaning up of VLA sizes.
  384. (plugin_build_decl): Mark decls as external.
  385. (plugin_tagbind): Propagate name to all variants.
  386. (build_anonymous_node): New.
  387. (plugin_build_record_type): Use it instead of make_node.
  388. (plugin_build_union_type): Likewise.
  389. (plugin_build_enum_type): Likewise.
  390. (plugin_finish_record_or_union): Update all type variants.
  391. (safe_lookup_builtin_type): New.
  392. (plugin_int_check): Factor out of, and add checks to, ...
  393. (plugin_int_type): ... this. Rename to...
  394. (plugin_int_type_v0): ... this.
  395. (plugin_int_type): New interface, new implementation.
  396. (plugin_char_type): New.
  397. (plugin_float_type_v0): Rename from...
  398. (plugin_float_type): ... this. New interface, new implementation.
  399. (plugin_init): Bump handshake version.
  400. * libcc1.cc: Include marshall-c.hh. Drop gcc-interface.h.
  401. (call_binding_oracle): Rename to...
  402. (c_call_binding_oracle): ... this, into anonymous namespace.
  403. (call_symbol_address): Rename to...
  404. (c_call_symbol_address): ... this, likewise.
  405. (GCC_METHOD#): Move methods into cc1plugin::c:: namespace.
  406. (libcc1::compiler::find): Refer to C_COMPILER_NAME.
  407. (fork_exec): Bump to GCC_C_FE_VERSION_1.
  408. (libcc1_compile): Prefix callbacks with c_.
  409. (gcc_c_fe_context): Accept GCC_C_FE_VERSION_1.
  410. * libcc1.sym: Export gcc_cp_fe_context.
  411. * libcp1.cc: New, mostly copied and adjusted from libcc1.cc.
  412. * libcp1plugin.cc: New, initially copied from libcc1plugin.cc.
  413. * libcp1plugin.sym: New.
  414. * marshall-c.hh: New. Move C-specific types from...
  415. * marshall.cc: ... this.
  416. (cc1_plugin::marshall_array_start): New.
  417. (cc1_plugin::marshall_array_elmts): New.
  418. (cc1_plugin::marshall for gcc_type_array): Use the above.
  419. (cc1_plugin::unmarshall_array_start): New.
  420. (cc1_plugin::unmarshall_array_elmts): New.
  421. (cc1_plugin::unmarshall for gcc_type_array): Use the above.
  422. * marshall.hh: Declare the new array building blocks.
  423. Drop C-specific unmarshall declarations.
  424. * marshall-cp.hh: New.
  425. * names.cc (GCC_METHOD#): Add LANG:: to method names.
  426. (LANG): Define while including gcc-c-fe.def and gcc-cp-fe.def.
  427. * names.hh: Include gcc-c-fe.def and gcc-cp-fe.def in the
  428. corresponding namespaces.
  429. * rpc.hh: Don't include marshall.hh.
  430. [GCC_CP_INTERFACE_H] (argument_wrapper): Specialize for
  431. gcc_vbase_array, gcc_cp_template_args, gcc_cp_function_args.
  432. 2017-01-30 Jan Kratochvil <jan.kratochvil@redhat.com>
  433. * findcomp.cc: Include system.h.
  434. (search_dir): Return absolute filename.
  435. * libcc1.cc (libcc1): Add class compiler with field compilerp,
  436. class compiler_triplet_regexp and class
  437. compiler_driver_filename.
  438. (libcc1::libcc1): Initialize compilerp.
  439. (libcc1::~libcc1): Delete compilerp.
  440. (libcc1::compiler::find, libcc1::compiler_triplet_regexp::find)
  441. (libcc1::compiler_driver_filename::find): New methods.
  442. (libcc1_set_arguments): Remove parameter triplet_regexp.
  443. (libcc1_set_triplet_regexp, libcc1_set_driver_filename)
  444. (libcc1_set_arguments_v0): New functions.
  445. (vtable): Use libcc1_set_arguments_v0, add
  446. libcc1_set_arguments, libcc1_set_triplet_regexp and
  447. libcc1_set_driver_filename.
  448. * libcc1.cc: Include intl.h.
  449. (struct libcc1): Add field verbose.
  450. (libcc1::libcc1): Initialize it.
  451. (libcc1_set_verbose): New function.
  452. (libcc1_set_arguments): Print messages for VERBOSE.
  453. (libcc1_compile): Remove parameter verbose. Use VERBOSE from
  454. SELF.
  455. (libcc1_compile_v0): New function.
  456. (vtable): Use libcc1_compile_v0 and add libcc1_compile and
  457. libcc1_set_verbose.
  458. * libcc1.cc (vtable): Update to GCC_FE_VERSION_1.
  459. (gcc_c_fe_context): Accept also GCC_FE_VERSION_1.
  460. 2017-01-17 Jakub Jelinek <jakub@redhat.com>
  461. PR other/79046
  462. * configure.ac: Add GCC_BASE_VER. For --with-gcc-major-version-only
  463. use just major number from BASE-VER.
  464. * configure: Regenerated.
  465. * Makefile.in: Regenerated.
  466. 2017-01-04 Jakub Jelinek <jakub@redhat.com>
  467. Update copyright years.
  468. 2016-11-18 Richard Sandiford <richard.sandiford@arm.com>
  469. Alan Hayward <alan.hayward@arm.com>
  470. David Sherwood <david.sherwood@arm.com>
  471. * plugin.cc (plugin_build_add_field): Use SET_DECL_MODE.
  472. 2016-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  473. Update copyrights.
  474. 2016-04-18 Michael Matz <matz@suse.de>
  475. * plugin.cc (plugin_finish_record_or_union): Use SET_TYPE_ALIGN.
  476. 2016-04-11 Segher Boessenkool <segher@kernel.crashing.org>
  477. PR bootstrap/70173
  478. * Makefile.am (MOSTLYCLEANFILES): New, add compiler-name.h .
  479. (compiler-name.h): Shorten recipe so that it fits the line.
  480. * Makefile.in: Regenerate.
  481. 2016-03-14 Andreas Schwab <schwab@suse.de>
  482. * configure.ac (CONFIG_STATUS_DEPENDENCIES): Substitute.
  483. * configure: Regenerate.
  484. * Makefile.in: Regenerate.
  485. 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
  486. * plugin.cc (decl_addr_hasher): Inherit from free_ptr_hash
  487. rather than typed_free_remove. Remove redudant typedefs.
  488. 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
  489. * plugin.cc (string_hasher): Inherit from nofree_ptr_hash rather
  490. than typed_noop_remove. Remove redudant typedefs.
  491. (plugin_context): Use nofree_ptr_hash rather than pointer_hash.
  492. (plugin_context::mark): Likewise.
  493. 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
  494. * Makefile.in: Regenerated with automake-1.11.6.
  495. * aclocal.m4: Likewise.
  496. * configure: Likewise.
  497. 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
  498. * plugin.cc: Adjust for hash_table changes.
  499. 2015-04-15 Andreas Schwab <schwab@suse.de>
  500. PR bootstrap/65763
  501. * Makefile.am (gcc_build_dir): Remove $(host_subdir)/ part.
  502. * Makefile.in: Regenerated.
  503. 2015-01-30 Joseph Myers <joseph@codesourcery.com>
  504. * plugin.cc: All callers of fatal_error changed to pass
  505. input_location as first argument.
  506. 2015-01-09 Michael Collison <michael.collison@linaro.org>
  507. * plugin.cc: Include hash-set.h, machmode.h, vec.h, double-int.h,
  508. input.h, alias.h, symtab.h, options.h, fold-const.h, wide-int.h and inchash.h
  509. due to flattening of tree.h.
  510. 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
  511. PR bootstrap/63784
  512. * configure: Regenerated.
  513. 2014-11-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  514. * configure.ac (libcc1_cv_lib_sockets): Check for -lsocket -lnsl.
  515. * configure: Regenerate.
  516. * connection.cc: Include <string.h>.
  517. * libcc1.cc (libcc1_compile): Use AF_UNIX instead of AF_LOCAL.
  518. 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  519. PR target/63610
  520. * configure: Regenerate.
  521. 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  522. PR bootstrap/63699
  523. PR bootstrap/63750
  524. * plugin.cc: Don't include <string>.
  525. 2014-10-29 Jakub Jelinek <jakub@redhat.com>
  526. Phil Muldoon <pmuldoon@redhat.com>
  527. * configure.ac: Remove -Werror addition to WARN_FLAGS. Add
  528. ACX_PROG_CC_WARNINGS_ARE_ERRORS and AC_ARG_VAR for GMPINC.
  529. * Makefile.am (AM_CPPFLAGS): Add $(GMPINC).
  530. (WERROR_FLAG): Remove.
  531. (AM_CXXFLAGS): Use $(WERROR) instead of $(WERROR_FLAG).
  532. * configure: Regenerated.
  533. * Makefile.in: Regenerated.
  534. 2014-10-29 Jakub Jelinek <jakub@redhat.com>
  535. * Makefile.am (CXXFLAGS, LDFLAGS): Filter out -fsanitize=address.
  536. (libiberty_normal, libiberty_noasan, libiberty_pic, libiberty_dep):
  537. New variables.
  538. (libiberty): Set to -Wc, followed by the first existing noasan/,
  539. pic/ or . libiberty.a.
  540. (libcc1plugin_la_DEPENDENCIES, libcc1plugin_la_LINK,
  541. libcc1_la_DEPENDENCIES, libcc1_la_LINK, LTLDFLAGS): New variables.
  542. * Makefile.in: Regenerated.
  543. 2014-10-27 Phil Muldoon <pmuldoon@redhat.com>
  544. Jan Kratochvil <jan.kratochvil@redhat.com>
  545. Tom Tromey <tromey@redhat.com>
  546. * aclocal.m4: New file.
  547. * callbacks.cc: New file.
  548. * callbacks.hh: New file.
  549. * cc1plugin-config.h.in: New file.
  550. * configure: New file.
  551. * configure.ac: New file.
  552. * connection.cc: New file.
  553. * connection.hh: New file.
  554. * findcomp.cc: New file.
  555. * findcomp.hh: New file.
  556. * libcc1.cc: New file.
  557. * libcc1plugin.sym: New file.
  558. * libcc1.sym: New file.
  559. * Makefile.am: New file.
  560. * Makefile.in: New file.
  561. * marshall.cc: New file.
  562. * marshall.hh: New file.
  563. * names.cc: New file.
  564. * names.hh: New file.
  565. * plugin.cc: New file.
  566. * rpc.hh: New file.
  567. * status.hh: New file.