ChangeLog 39 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285
  1. 2022-03-22 Jakub Jelinek <jakub@redhat.com>
  2. PR lto/102426
  3. * configure.ac (LTO_PLUGIN_USE_SYMVER, LTO_PLUGIN_USE_SYMVER_GNU,
  4. LTO_PLUGIN_USE_SYMVER_SUN): New test for symbol versioning support.
  5. * Makefile.am (version_arg, version_dep): Set conditionally based
  6. on LTO_PLUGIN_USE_SYMVER*.
  7. (liblto_plugin_la_LDFLAGS): Use $(version_arg) instead of
  8. -export-symbols-regex onload.
  9. (liblto_plugin_la_DEPENDENCIES): Depend on $(version_dep).
  10. * lto-plugin.map: New file.
  11. * configure: Regenerated.
  12. * Makefile.in: Regenerated.
  13. 2022-03-11 Tobias Burnus <tobias@codesourcery.com>
  14. * lto-plugin.c (all_symbols_read_handler): With -save-temps, use
  15. link_output_name for -foffload-objects's file name, if available.
  16. 2022-03-01 Martin Liska <mliska@suse.cz>
  17. * lto-plugin.c (process_offload_section): Use a linker as many
  18. comments are connected to gold linker.
  19. (process_option): Likewise.
  20. 2021-12-02 Rasmus Villemoes <rasmus.villemoes@prevas.dk>
  21. * lto-plugin.c: Fix -linker-output-auto-notlo-rel ->
  22. -linker-output-auto-nolto-rel typo.
  23. (process_option): Adjust accordingly, accepting both old and
  24. new spelling.
  25. 2021-09-13 Andrew Pinski <apinski@marvell.com>
  26. PR lto/49664
  27. * Makefile.am: Export only onload.
  28. * Makefile.in: Regenerate.
  29. 2021-06-25 Richard Biener <rguenther@suse.de>
  30. * lto-plugin.c (ltrans_objects): New global.
  31. (all_symbols_read_handler): If -ltrans-objects was specified,
  32. add the output files from the specified file directly.
  33. (process_option): Handle -ltrans-objects.
  34. 2021-05-10 Martin Liska <mliska@suse.cz>
  35. * lto-plugin.c (LTO_SEGMENT_NAME): Remove.
  36. (LTO_SYMTAB_PREFIX): Likewise.
  37. (LTO_SYMTAB_PREFIX_LEN): Likewise.
  38. (LTO_SYMTAB_EXT_PREFIX): Likewise.
  39. (LTO_SYMTAB_EXT_PREFIX_LEN): Likewise.
  40. (LTO_LTO_PREFIX): Likewise.
  41. (LTO_LTO_PREFIX_LEN): Likewise.
  42. (OFFLOAD_SECTION): Likewise.
  43. (OFFLOAD_SECTION_LEN): Likewise.
  44. (startswith): New function.
  45. (all_symbols_read_handler): Use it.
  46. (process_symtab): Likewise.
  47. (process_symtab_extension): Likewise.
  48. (process_offload_section): Likewise.
  49. (process_option): Likewise.
  50. 2021-05-03 H.J. Lu <hjl.tools@gmail.com>
  51. PR bootstrap/99703
  52. * configure: Regenerated.
  53. 2021-04-21 Martin Liska <mliska@suse.cz>
  54. * lto-plugin.c (exec_lto_wrapper): Make a temp variable.
  55. 2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
  56. * configure: Re-generate.
  57. 2020-11-29 John David Anglin <danglin@gcc.gnu.org>
  58. * configure: Regenerate.
  59. 2020-11-25 Matthew Malcomson <matthew.malcomson@arm.com>
  60. * Makefile.am: Avoid using sanitizer.
  61. * Makefile.in: Regenerate.
  62. 2020-09-10 Jonathan Yong <10walls@gmail.com>
  63. * Makefile.am: drop versioning from libtool completely.
  64. * Makefile.in: regenerate.
  65. 2020-09-09 Nick Clifton <nickc@redhat.com>
  66. * lto-plugin.c (struct plugin_symtab): Add last_sym field.
  67. (parse_symtab_extension): Only read as many entries as are
  68. available in the buffer. Store the data read into the symbol
  69. table indexed from last_sym. Increment last_sym.
  70. 2020-07-30 H.J. Lu <hjl.tools@gmail.com>
  71. PR bootstrap/96202
  72. * configure: Regenerated.
  73. 2020-05-29 H.J. Lu <hjl.tools@gmail.com>
  74. PR bootstrap/95413
  75. * configure: Regenerated.
  76. 2020-05-26 Alexandre Oliva <oliva@adacore.com>
  77. * lto-plugin.c (skip_in_suffix): New.
  78. (exec_lto_wrapper): Use skip_in_suffix and concat to build
  79. non-temporary output names.
  80. (onload): Look for -dumpdir in COLLECT_GCC_OPTIONS, and
  81. override link_output_name with it.
  82. 2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
  83. PR bootstrap/94998
  84. * configure: Regenerated.
  85. 2020-05-05 Eric Botcazou <ebotcazou@adacore.com>
  86. * lto-plugin.c: Document -linker-output-auto-notlo-rel option.
  87. (linker_output_set): Change type to bool.
  88. (linker_output_known): Likewise.
  89. (linker_output_auto_nolto_rel): New variable.
  90. (all_symbols_read_handler): Take it into account.
  91. <LDPO_REL>: Do not issue the warning if it is set.
  92. (process_option): Process -linker-output-auto-notlo-rel.
  93. (cleanup_handler): Remove unused variable.
  94. (onload) <LDPT_LINKER_OUTPUT>: Adjust to above type change.
  95. 2020-04-28 H.J. Lu <hongjiu.lu@intel.com>
  96. PR bootstrap/94739
  97. * configure: Regenerated.
  98. 2020-04-25 H.J. Lu <hongjiu.lu@intel.com>
  99. PR bootstrap/94739
  100. * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
  101. * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
  102. AC_SUBST(CET_HOST_FLAGS).
  103. * Makefile.in: Regenerated.
  104. * aclocal.m4: Likewise.
  105. * configure: Likewise.
  106. 2020-03-19 Martin Liska <mliska@suse.cz>
  107. * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ...
  108. (LTO_SYMTAB_PREFIX): ... this.
  109. (LTO_SECTION_PREFIX_LEN): Rename to ...
  110. (LTO_SYMTAB_PREFIX_LEN): ... this.
  111. (LTO_SYMTAB_EXT_PREFIX): New.
  112. (LTO_SYMTAB_EXT_PREFIX_LEN): New.
  113. (LTO_LTO_PREFIX): New.
  114. (LTO_LTO_PREFIX_LEN): New.
  115. (parse_table_entry): Fill up unused to zero.
  116. (parse_table_entry_extension): New.
  117. (parse_symtab_extension): New.
  118. (finish_conflict_resolution): Change type
  119. for resolution.
  120. (process_symtab): Use new macro name.
  121. (process_symtab_extension): New.
  122. (claim_file_handler): Parse also process_symtab_extension.
  123. (onload): Call new add_symbols_v2.
  124. 2020-01-01 Jakub Jelinek <jakub@redhat.com>
  125. Update copyright years.
  126. 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
  127. * configure: Regenerate.
  128. 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
  129. * lto-plugin.c (cleanup_handler): Remove unused var.
  130. 2019-05-15 Iain Sandoe <iain@sandoe.co.uk>
  131. * lto-plugin.c (exec_lto_wrapper): Make the wrapper
  132. arguments filename more user-friendly.
  133. (file_exists, maybe_unlink): New.
  134. (cleanup_handler): Use maybe unlink to handle the
  135. case when temps should be saved.
  136. (process_option): Look for -v, —-version, -save-temps.
  137. (onload): Record the linker output file name.
  138. Check for -v, —-version, -save-temps in the GCC collect
  139. options environment.
  140. 2019-02-26 Martin Liska <mliska@suse.cz>
  141. * lto-symtab.c: Remove.
  142. 2019-01-01 Jakub Jelinek <jakub@redhat.com>
  143. Update copyright years.
  144. 2018-10-31 Joseph Myers <joseph@codesourcery.com>
  145. PR bootstrap/82856
  146. * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE.
  147. * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
  148. 2018-05-30 Jan Hubicka <jh@suse.cz>
  149. * lto-plugin.c: (non_claimed_files): New static var.
  150. (linker_ouput_known): New static var.
  151. (all_symbols_read_handler): When user specifies linker output do not
  152. imply it; output warning when nonlto-rel mode is forced.
  153. (claim_file_header): Record number of nonclaimed files.
  154. (process_option): Remember if linker output is known
  155. 2018-04-18 David Malcolm <dmalcolm@redhat.com>
  156. PR jit/85384
  157. * configure: Regenerate.
  158. 2018-01-03 Jakub Jelinek <jakub@redhat.com>
  159. Update copyright years.
  160. 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
  161. PR lto/81487
  162. * lto-plugin.c (claim_file_handler): Use xasprintf instead of
  163. asprintf.
  164. [hi!=0]: Swap hi and lo arguments supplied to xasprintf.
  165. 2017-01-17 Jakub Jelinek <jakub@redhat.com>
  166. PR other/79046
  167. * configure.ac: Add GCC_BASE_VER.
  168. * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
  169. get version from BASE-VER file.
  170. * configure: Regenerated.
  171. * Makefile.in: Regenerated.
  172. 2017-01-04 Jakub Jelinek <jakub@redhat.com>
  173. Update copyright years.
  174. 2016-11-15 Matthias Klose <doko@ubuntu.com>
  175. * configure: Regenerate.
  176. 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
  177. PR driver/68463
  178. * lto-plugin.c (struct plugin_offload_file): New.
  179. (offload_files): Change type.
  180. (offload_files_last, offload_files_last_obj): New.
  181. (offload_files_last_lto): New.
  182. (free_2): Adjust accordingly.
  183. (all_symbols_read_handler): Don't add offload files to lto_arg_ptr.
  184. Don't call free_1 for offload_files. Write names of object files with
  185. offloading to the temporary file. Add new option to lto_arg_ptr.
  186. (claim_file_handler): Don't claim file if it contains offload sections
  187. without LTO sections. If it contains offload sections, add to the list.
  188. 2016-01-15 Martin Liska <mliska@suse.cz>
  189. * lto-plugin.c (all_symbols_read_handler): Assign default
  190. value to a string variable.
  191. 2015-11-25 Jan Hubicka <jh@suse.cz>
  192. PR lto/67548
  193. * lto-plugin.c (linker_output, linker_output_set): New statics.
  194. (all_symbols_read_handler): Add -flinker-output option.
  195. (onload): Record linker_output info.
  196. 2015-07-02 Uros Bizjak <ubizjak@gmail.com>
  197. * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
  198. * configure: Regenerate.
  199. * config.h.in: Ditto.
  200. 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
  201. * Makefile.am: Drop 'by automake version' from top-level comment.
  202. * Makefile.in: Regenerated with automake-1.11.6.
  203. * aclocal.m4: Likewise.
  204. * configure: Likewise.
  205. 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
  206. * lto-plugin.c (release_input_file): Removed.
  207. (claim_file_handler): Don't call release_input_file.
  208. (onload): Don't set release_input_file.
  209. 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
  210. * lto-plugin.c (claim_file_handler): Pass handle to
  211. release_input_file.
  212. 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
  213. * lto-plugin.c (claim_file_handler): Call release_input_file only
  214. if file is claimed.
  215. 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
  216. * lto-plugin.c (claim_file_handler): Call release_input_file only
  217. if it is not NULL.
  218. 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
  219. PR lto/64837
  220. * lto-plugin.c (release_input_file): New.
  221. (claim_file_handler): Call release_input_file.
  222. (onload): Set release_input_file.
  223. 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
  224. * lto-plugin.c (offload_files, num_offload_files): New static variables.
  225. (free_1): Use arguments instead of global variables.
  226. (free_2): Free offload_files.
  227. (all_symbols_read_handler): Add names from offload_files to lto-wrapper
  228. arguments.
  229. (claim_file_handler): Do not add file to claimed_files if it contains
  230. offload sections without LTO sections. Add it to offload_files instead.
  231. 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
  232. PR bootstrap/63784
  233. * configure: Regenerated.
  234. 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
  235. Bernd Schmidt <bernds@codesourcery.com>
  236. Andrey Turetskiy <andrey.turetskiy@intel.com>
  237. Michael Zolotukhin <michael.v.zolotukhin@intel.com>
  238. * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
  239. (struct plugin_objfile): Add new field "offload".
  240. (process_offload_section): New static function.
  241. (claim_file_handler): Claim file if it contains offload sections.
  242. 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
  243. Thomas Schwinge <thomas@codesourcery.com>
  244. Ilya Verbin <ilya.verbin@intel.com>
  245. Andrey Turetskiy <andrey.turetskiy@intel.com>
  246. * Makefile.am (libexecsubdir): Tweak for the possibility of being
  247. configured for offload compiler.
  248. (accel_dir_suffix, real_target_noncanonical): New variables substituted
  249. by configure.
  250. * Makefile.in: Regenerate.
  251. * configure: Regenerate.
  252. * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
  253. variables.
  254. 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  255. PR target/63610
  256. * configure: Regenerate.
  257. 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
  258. PR bootstrap/62260
  259. * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
  260. * configure.ac (gcc_build_dir): Set and AC_SUBST according to
  261. $host_subdir.
  262. * Makefile.in: Regenerated.
  263. * configure: Likewise.
  264. 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
  265. * configure.ac (--with-libiberty): New configure option.
  266. * configure: Regenerate.
  267. * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
  268. variables.
  269. (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
  270. (liblto_plugin_la_DEPENDENCIES): Use them.
  271. * Makefile.in: Regenerate.
  272. 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  273. PR lto/60981
  274. * configure.ac: Check for -static-libgcc.
  275. * configure: Regenerate.
  276. 2014-04-17 Jakub Jelinek <jakub@redhat.com>
  277. PR sanitizer/56781
  278. * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
  279. (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
  280. liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
  281. over ../libiberty/pic/libiberty.a if the former exists.
  282. * Makefile.in: Regenerated.
  283. PR sanitizer/56781
  284. * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
  285. * Makefile.in: Regenerated.
  286. 2014-04-02 Richard Biener <rguenther@suse.de>
  287. * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
  288. is set in COLLECT_GCC_OPTIONS.
  289. 2014-03-28 Richard Biener <rguenther@suse.de>
  290. * lto-plugin.c (process_symtab): Handle EINTR and short reads.
  291. 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  292. * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
  293. for gcc.
  294. * configure: Regenerate.
  295. * Makefile.am (AM_LDFLAGS): New variable.
  296. (liblto_plugin_la_LDFLAGS): Add it.
  297. * Makefile.in: Regenerate.
  298. 2013-09-20 Alan Modra <amodra@gmail.com>
  299. * configure: Regenerate.
  300. 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
  301. * configure: Regenerated.
  302. 2012-05-29 Joseph Myers <joseph@codesourcery.com>
  303. * lto-plugin.c: Fix typo.
  304. 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
  305. * configure: Regenerated.
  306. 2012-02-22 Kai Tietz <ktietz@redhat.com>
  307. PR lto/50616
  308. * lto-plugin.c (PRI_LL): New macro.
  309. (dump_symtab): Use PRI_LL instead of ll in print.
  310. (process_symtab): Use PRI_LL instead of ll in scan.
  311. 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
  312. * configure: Regenerate.
  313. 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
  314. * configure: Regenerate.
  315. 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
  316. * configure: Regenerate.
  317. 2011-10-02 Jan Hubicka <jh@suse.cz>
  318. PR lto/47247
  319. * lto-plugin.c (get_symbols_v2): New variable.
  320. (write_resolution): Use V2 API when available.
  321. (onload): Handle LDPT_GET_SYMBOLS_V2.
  322. 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
  323. Andi Kleen <ak@linux.intel.com>
  324. PR lto/50568
  325. * lto-plugin.c (sym_aux): Change id to unsigned long long.
  326. (plugin_symtab): Likewise.
  327. (dump_symtab): Likewise.
  328. (resolve_conflicts): Likewise.
  329. (process_symtab): Likewise.
  330. 2011-08-10 Richard Guenther <rguenther@suse.de>
  331. PR bootstrap/49907
  332. lto-plugin/
  333. * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
  334. * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
  335. * configure: Regenerate.
  336. * Makefile.in: Likewise.
  337. * aclocal.m4: Likewise.
  338. 2011-04-20 Jim Meyering <meyering@redhat.com>
  339. * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
  340. 2011-04-05 Richard Guenther <rguenther@suse.de>
  341. PR bootstrap/48431
  342. * lto-plugin.c (claim_file_handler): Do not declare vars in code.
  343. 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  344. * Makefile.in: Regenerate.
  345. * aclocal.m4: Regenerate.
  346. * configure: Regenerate.
  347. 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  348. * Makefile.am (all-local): Rename from 'all'.
  349. * Makefile.in: Regenerate.
  350. 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
  351. PR lto/47225
  352. * Makefile.am (gcc_build_dir, in_gcc_libs): New.
  353. (liblto_plugin_la_LDFLAGS): Add -module.
  354. (copy_lto_plugin): Renamed to...
  355. ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
  356. of static modules.
  357. * Makefile.in: Rebuild.
  358. 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
  359. PR lto/47225
  360. * Makefile.am (Wc): New helper for encoding -Wc,.
  361. (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
  362. (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
  363. * Makefile.in: Regenerated.
  364. 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
  365. Revert:
  366. 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
  367. PR lto/47225
  368. * Makefile.am (Wl): New helper for encoding -Wl,.
  369. (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
  370. * Makefile.in: Regenerated.
  371. 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
  372. PR lto/47225
  373. * Makefile.am (Wl): New helper for encoding -Wl,.
  374. (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
  375. * Makefile.in: Regenerated.
  376. 2011-01-25 Ian Lance Taylor <iant@google.com>
  377. * lto-plugin.c (gold_version): New static variable.
  378. (all_symbols_read_handler): Don't check pass_through_items if
  379. using gold 1.11 or later.
  380. (onload): Set gold_version if we see LDPT_GOLD_VERSION.
  381. 2011-01-12 Richard Guenther <rguenther@suse.de>
  382. PR lto/47264
  383. * lto-plugin.c (parse_table_entry): Use memcpy to access
  384. unaligned fields.
  385. 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
  386. * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
  387. * Makefile.in: Regenerate.
  388. 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  389. Revert last change.
  390. 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  391. * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
  392. (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
  393. (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
  394. * Makefile.in: Regenerate.
  395. 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
  396. PR middle-end/46674
  397. PR lto/43157
  398. * configure.ac (SYM_STYLE): Don't AC_DEFINE.
  399. * lto-plugin.c (sym_style): Don't use it; default to ss_none.
  400. * configure: Regenerate.
  401. * config.h.in: Likewise.
  402. 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
  403. PR target/40125
  404. PR lto/46695
  405. * configure.ac: Invoke ACX_LT_HOST_FLAGS.
  406. * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
  407. override -bindir setting.
  408. * aclocal.m4: Regenerate.
  409. * configure: Regenerate.
  410. * Makefile.in: Regenerate.
  411. 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
  412. * config.h.in: Regenerated.
  413. * configure: Regenerated.
  414. * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
  415. * lto-plugin.c (WIFEXITED): Define default.
  416. (WEXITSTATUS): Likeiwse.
  417. 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
  418. * config.h.in: Regenerated.
  419. * configure: Regenerated.
  420. * Makefile.in: Regenerated.
  421. * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
  422. * lto-plugin.c: Include sys/wait.h conditionally.
  423. * aclocal.m4: Regenerated.
  424. 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
  425. * lto-plugin.c (add_output_files): Fix memory leak.
  426. 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
  427. PR bootstrap/46397
  428. PR bootstrap/46362
  429. * configure.ac: Add AC_TYPE_INT64_T test.
  430. * config.h.in: Regenerate.
  431. * configure: Likewise.
  432. * lto-plugin.c (debug): Use char not bool.
  433. (nop): Likewise.
  434. (check_1): Rename from check, and use int not bool for gate argument.
  435. (check): Macro wrapper for the above to coerce gate argument into
  436. boolean-valued integer in case it has pointer type.
  437. (parse_table_entry): Use 0 not false.
  438. (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
  439. into two 32-bit parts and printing as hex ints.
  440. 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
  441. PR lto/46291
  442. * lto-plugin.c (claim_file_handler): Don't close file descriptor.
  443. 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
  444. PR lto/46273
  445. * lto-plugin.h: Delete.
  446. * lto-plugin-elf.c: Likewise.
  447. * lto-plugin-coff.c: Likewise.
  448. * configure.ac: Don't use libelf, don't source config.gcc.
  449. (LIBELFLIBS): Delete.
  450. (LIBELFINC): Delete.
  451. (LTO_FORMAT): Delete.
  452. (SYM_STYLE): Add AC_DEFINE var, set based on $target.
  453. (config.h): Add AC_CONFIG_HEADERS directive.
  454. * Makefile.am (LIBELFLIBS): Delete.
  455. (LIBELFINC): Delete.
  456. (LTO_FORMAT): Delete.
  457. (DEFS): Import.
  458. (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
  459. (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
  460. any object-format-specific source file in the link.
  461. (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
  462. * config.h.in: Generate.
  463. * configure: Regenerate.
  464. * Makefile.in: Likewise.
  465. * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
  466. (LTO_SEGMENT_NAME): New definition.
  467. (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
  468. (LTO_SECTION_PREFIX_LEN): New definition.
  469. (struct sym_aux): Struct definition moved here from lto-plugin.h.
  470. (struct plugin_symtab): Likewise.
  471. (struct plugin_objfile): Likewise.
  472. (struct plugin_objfile): New struct def.
  473. (enum symbol_style): New enum type.
  474. (add_symbols): Make static.
  475. (claimed_files): Likewise.
  476. (num_claimed_files): Likewise.
  477. (sym_style): New global.
  478. (check): Make static.
  479. (parse_table_entry): Likewise. Respect sym_style when extracting
  480. symbol from symtab entry.
  481. (translate): Make static.
  482. (resolve_conflicts): Likewise.
  483. (process_symtab): New function, per-section callback version of
  484. old object-format-specific handling from deleted lto-plugin-elf.c.
  485. (claim_file_handler): Convert ELF-specific version from deleted
  486. lto-plugin-elf.c to simple_object interface and move here.
  487. (process_options): Allow new '-sym-style=' option.
  488. (onload): Don't call deleted onload_format_checks hook.
  489. 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
  490. * lto-plugin.c (dump_symtab): Correct printf argument type.
  491. (finish_conflict_resolution): Initialize resolution.
  492. 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
  493. PR bootstrap/45951
  494. * configure.ac: Add AC_CANONICAL_SYSTEM.
  495. * configure: Regenerated.
  496. 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
  497. * configure.ac: Source config.gcc to determine lto_binary_reader.
  498. (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
  499. * Makefile.am (LTO_FORMAT): Import.
  500. (liblto_plugin_la_SOURCES): Add object format dependent module
  501. defined by LTO_FORMAT.
  502. (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
  503. and work around libtool warning.
  504. * configure: Regenerate.
  505. * Makefile.in: Likewise.
  506. * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
  507. (struct sym_aux): Likewise.
  508. (struct plugin_symtab): Likewise.
  509. (struct plugin_file_info): Likewise.
  510. (LTO_SECTION_PREFIX): Likewise.
  511. (add_symbols): Make non-static.
  512. (claimed_files): Likewise.
  513. (num_claimed_files): Likewise.
  514. (check): Likewise.
  515. (parse_table_entry): Likewise.
  516. (translate): Likewise.
  517. (resolve_conflicts): Likewise.
  518. (process_symtab): Move to new lto-plugin-elf.c object format dependent
  519. source file.
  520. (claim_file_handler): Likewise, and make non-static.
  521. (onload): Call new onload_format_checks function.
  522. * lto-plugin.h: New file.
  523. (LTO_SECTION_PREFIX): Move here.
  524. (struct sym_aux): Likewise.
  525. (struct plugin_symtab): Likewise.
  526. (struct plugin_file_info): Likewise.
  527. (claim_file_handler): Add new function prototype.
  528. (onload_format_checks): Likewise.
  529. (check): Declare extern.
  530. (translate): Likewise.
  531. (parse_table_entry): Likewise.
  532. (resolve_conflicts): Likewise.
  533. (add_symbols): Likewise.
  534. (claimed_files): Likewise.
  535. (num_claimed_files): Likewise.
  536. * lto-plugin-elf.c (process_symtab): Move here.
  537. (claim_file_handler): Likewise, and make non-static.
  538. (onload_format_checks): New function factored out from onload.
  539. * lto-plugin-coff.c (claim_file_handler): New function stub.
  540. (onload_format_checks): Likewise.
  541. 2010-08-05 Andi Kleen <ak@linux.intel.com>
  542. * lto-plugin.c: Include <hashtab.h>
  543. (sym_aux): Add next_conflict field to save conflict chains.
  544. (plugin_file_info): Add conflicts symtab.
  545. (parse_table_entry): Initialize aux->next_conflict.
  546. (process_symtab): Increment found.
  547. (dump_symtab): Add.
  548. (finish_conflict_resolution): Add.
  549. (free_symtab): Add.
  550. (write_resolution): Remove symbols loop and move into
  551. dump_symtab. Call dump_symtab for main symbol and conflicts table.
  552. Call free_symtab to free conflicts table.
  553. (SWAP): Add.
  554. (eq_sym): Add.
  555. (hash_sym): Add.
  556. (symbol_strength): Add.
  557. (resolve_conflicts): Add.
  558. (claim_file_handler): Add n variable. Check return value of
  559. process_symtab. Call resolve_conflicts.
  560. 2010-07-27 Andi Kleen <ak@linux.intel.com>
  561. * lto-plugin.c (translate): Remove debug fprintf.
  562. 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
  563. PR bootstrap/45042
  564. * lto-plugin.c (translate): Cast to unsigned long.
  565. 2010-07-23 Andi Kleen <ak@linux.intel.com>
  566. PR lto/44992
  567. * lto-plugin.c (sym_aux): Add.
  568. (plugin_symtab): Remove slots. Add aux and id.
  569. (parse_table_entry): Change to use aux instead of slots.
  570. (LTO_SECTION_PREFIX): Add.
  571. (translate): Improve buffer allocation. Change to append
  572. symbols to existing out buffer.
  573. (get_section): Remove.
  574. (process_symtab): Add.
  575. (free_2): Free symtab->aux.
  576. (write_resolution): Handle aux instead of slots.
  577. Print sub id to resolution file.
  578. (claim_file_handler): Clear lto_file. Replace get_symtab/translate
  579. calls with call to process_symtab.
  580. 2010-07-22 Richard Guenther <rguenther@suse.de>
  581. * Makefile.am: New copy_lto_plugin rule to install the plugin
  582. into ../gcc.
  583. * Makefile.in: Regenerated.
  584. 2010-05-21 Richard Guenther <rguenther@suse.de>
  585. * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
  586. 2010-05-07 Richard Guenther <rguenther@suse.de>
  587. * lto-plugin.c (free_2): Do not free resolution_file.
  588. (write_resolution): Check that we were passed a resolution file.
  589. (all_symbols_read_handler): Adjust.
  590. (cleanup_handler): Do not remove the resolution file.
  591. (process_option): Handle -fresolution=.
  592. 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  593. PR other/43620
  594. * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
  595. * Makefile.in: Regenerate.
  596. 2010-04-23 Richard Guenther <rguenther@suse.de>
  597. PR lto/41550
  598. * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
  599. (translate): Likewise.
  600. (all_symbols_read_handler): Likewise.
  601. (claim_file_handler): Likewise.
  602. (process_option): Likewise.
  603. (add_output_files): Likewise. Remove filename length limit.
  604. 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  605. * Makefile.in: Regenerate.
  606. * aclocal.m4: Regenerate.
  607. 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
  608. PR lto/43336
  609. * lto-plugin.c (cleanup_handler): Delete temporary output files.
  610. 2010-01-11 Richard Guenther <rguenther@suse.de>
  611. PR lto/41569
  612. * Makefile.am: Disable dependencies.
  613. * Makefile.in: Regenerated.
  614. 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
  615. PR lto/42520
  616. * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
  617. if -v is passed.
  618. 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
  619. PR bootstrap/42306
  620. * configure: Regenerated.
  621. * Makefile.in: Likewise.
  622. 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
  623. PR bootstrap/42096
  624. * lto-plugin.c (claim_file_handler): Print offsets in hex.
  625. 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
  626. * lto-plugin.c (write_resolution): Assume resolution_file is set.
  627. Print the symbol name.
  628. (all_symbols_read_handler): Create a resolution file.
  629. Pass it to gcc.
  630. (cleanup_handler): Remove the resolution file.
  631. (process_option): Drop the -resolution option.
  632. 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
  633. * lto-plugin.c (temp_obj_dir_name): Remove.
  634. (arguments_file_name): New.
  635. (free_2): Free arguments_file_name instead of temp_obj_dir_name.
  636. (exec_lto_wrapper): Create arguments file with make_temp_file.
  637. (cleanup_handler): Don't remove the temporary directory. Remove the
  638. arguments file.
  639. (onload): Don't create the temporary directory.
  640. 2009-11-04 Richard Guenther <rguenther@suse.de>
  641. Rafael Avila de Espindola <espindola@google.com>
  642. * lto-plugin.c (plugin_file_info): Remove temp field.
  643. (cleanup_handler): Don't delete temporary objects.
  644. (claim_file_handler): Don't create temporary objects.
  645. 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
  646. * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
  647. 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
  648. PR41871
  649. * lto-plugin.c (claim_file_handler): Close files that we created.
  650. 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
  651. * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
  652. LDPL_ERROR
  653. 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
  654. PR lto/41652
  655. * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
  656. * configure: Regenerate.
  657. 2009-10-26 Richard Guenther <rguenther@suse.de>
  658. * configure.ac: Use AM_MAINTAINER_MODE.
  659. * acinclude.m4: Remove.
  660. * configure: Re-generate.
  661. * Makefile.in: Likewise.
  662. * aclocal.m4: Likewise.
  663. 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
  664. PR40790
  665. * configure: Regenerate.
  666. * configure.ac: Add AC_TYPE_UINT64_T.
  667. 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
  668. * lto-plugin.c (message): New variable.
  669. (check): New function.
  670. (parse_table_entry, translate, write_resolution,add_output_files,
  671. exec_lto_wrapper,claim_file_handler, onload): Use check instead of
  672. assert.
  673. (cleanup_handler): Use check instead of assert. Remove the arguments
  674. file if it exists.
  675. 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
  676. * lto-plugin.c (resolution_file): New.
  677. (free_1): Update comment.
  678. (free_2): Free resolution_file.
  679. (write_resolution): Write resolution to specified file. Use the
  680. syms array from the symbol table.
  681. (all_symbols_read_handler): Delay call to free_1 past call to
  682. write_resolution.
  683. (process_option): Add a -resolution option.
  684. 2009-10-13 Richard Guenther <rguenther@suse.de>
  685. * Makefile.am (liblto_plugin_la_LIBADD): Link against the
  686. correct libiberty.
  687. * Makefile.in: Regenerated.
  688. 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
  689. * lto-plugin.c (add_input_library): New.
  690. (all_symbols_read_handler): Use add_input_library for items that
  691. start with -l.
  692. (process_option): Fit in 80 columns.
  693. (onload): Handle LDPT_ADD_INPUT_LIBRARY.
  694. 2009-10-02 Diego Novillo <dnovillo@google.com>
  695. * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
  696. and -D_FILE_OFFSET_BITS=64.
  697. * configure.ac: Add AC_SYS_LARGEFILE.
  698. * configure: Regenerate.
  699. * Makefile.in: Regenerate.
  700. * lto-plugin.c: Fix copyright boilerplate.
  701. 2009-10-02 Diego Novillo <dnovillo@google.com>
  702. * Makefile.am (ACLOCAL_AMFLAGS): Define.
  703. * aclocal.m4: Regenerate with aclocal-2.64
  704. * acinclude.m4: Remove.
  705. * Makefile.in: Regenerate with automake-1.11
  706. * configure.ac (AC_PREREQ): Update to 2.64.
  707. * configure: Regenerate.
  708. 2009-10-02 Diego Novillo <dnovillo@google.com>
  709. * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
  710. and -D_FILE_OFFSET_BITS=64.
  711. * configure.ac: Add AC_SYS_LARGEFILE.
  712. * configure: Regenerate.
  713. * Makefile.in: Regenerate.
  714. * lto-plugin.c: Fix copyright boilerplate.
  715. 2009-10-02 Diego Novillo <dnovillo@google.com>
  716. * Makefile.am (ACLOCAL_AMFLAGS): Define.
  717. * aclocal.m4: Regenerate with aclocal-2.64
  718. * acinclude.m4: Remove.
  719. * Makefile.in: Regenerate with automake-1.11
  720. * configure.ac (AC_PREREQ): Update to 2.64.
  721. * configure: Regenerate.
  722. 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
  723. * Makefile.am (liblto_plugin_la_SOURCES): Remove
  724. $(top_srcdir)/../gcc/lto/common.c
  725. * Makefile.in: Regenerate.
  726. 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
  727. * lto-plugin.c (pass_through_items): New.
  728. (num_pass_through_items): New.
  729. (all_symbols_read_handler): Update to use the -pass-through option.
  730. (process_option): Replace -libgcc with -pass-through.
  731. 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
  732. * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
  733. register_cleanup to be set.
  734. 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
  735. * Makefile.am: Remove all reference to ltosymtab.
  736. * Makefile.in: Regenerate.
  737. * lto-symtab.c: Remove.
  738. 2009-05-21 Diego Novillo <dnovillo@google.com>
  739. * configure.ac: Remove call to AC_CHECK_GELF.
  740. Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
  741. * acinclude.m4: Do not include ../config/libelf.m4
  742. * Makefile.am (LIBELFLIBS): Define.
  743. (LIBELFINC): Define.
  744. (AM_CPPFLAGS): Add $(LIBELFINC).
  745. (ltosymtab_LDADD): Add $(LIBELFLIBS).
  746. (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
  747. * lto-plugin.c: Always include <gelf.h>
  748. * lto-symtab.c: Likewise.
  749. * configure: Regenerate.
  750. * Makefile.in: Regenerate.
  751. 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
  752. * lto-plugin.c (libgcc_filename): New.
  753. (all_symbols_read_handler): Pass libgcc to the linker.
  754. (all_symbols_read_handler): Parse -libgcc
  755. 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
  756. * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
  757. * Makefile.in: Regenerate.
  758. * lto-plugin.c (add_output_files): Argument is now a FILE.
  759. (exec_lto_wrapper): Use writeargv and pex.
  760. 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
  761. Revert:
  762. 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
  763. * lto-plugin.c (exec_lto_wrapper): Use writeargv.
  764. 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
  765. * lto-plugin.c (exec_lto_wrapper): Use writeargv.
  766. 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
  767. * lto-plugin.c: Include libiberty.h.
  768. (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
  769. snprintf.
  770. 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
  771. * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
  772. file to lto-wrapper.
  773. 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
  774. * lto-plugin.c (plugin_file_info): Remove fd and elf.
  775. (parse_table_entry): strdup entry->name and entry->comdat_key.
  776. (free_1): Free name and comdat_key. Don't close the file. Don't call
  777. elf_end.
  778. (claim_file_handler): Always call elf_end.
  779. 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
  780. * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
  781. -D_FILE_OFFSET_BITS=64
  782. * Makefile.in: Regenerate
  783. 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
  784. * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
  785. (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
  786. * Makefile.in: Regenerate.
  787. * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
  788. * configure: Regenerate.
  789. * configure.ac: Add AC_SUBST(target_noncanonical).
  790. 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
  791. * lto-plugin.c: Include stdbool.h.
  792. (debug, nop): Declare as bool.
  793. 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
  794. * lto-plugin.c (nop): New.
  795. (use_original_files): New.
  796. (all_symbols_read_handler): Call use_original_files if nop is true.
  797. (process_option): Parse the -nop option.
  798. 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
  799. * lto-plugin.c (debug): New.
  800. (exec_lto_wrapper): Print argv if debug is true.
  801. (process_option): Process the -debug command line option.
  802. 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
  803. * lto-plugin.c (process_option): The argument is now a single option,
  804. not a space separated list.
  805. 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
  806. * lto-plugin.c: Include sys/types.h and sys/wait.h
  807. (output_files, num_output_files, lto_wrapper_argv,
  808. lto_wrapper_num_args): New.
  809. (free_2): Free output_files.
  810. (write_resolution): Disable.
  811. (add_output_files): New.
  812. (exec_lto_wrapper): New.
  813. (all_symbols_read_handler): Run lto-wrapper.
  814. (claim_file_handler): Free lto_file.name and call elf_end.
  815. (process_option): New.
  816. 2008-11-26 Rafael Espindola <espindola@google.com>
  817. * lto-plugin.c (add_input_file): New.
  818. (get_section): Return NULL if get_section fails.
  819. (write_resolution): New.
  820. (all_symbols_read_handler): Call add_input_file.
  821. (claim_file_handler): Unlink the correct file.
  822. (onload): Record add_input_file.
  823. 2008-09-23 Rafael Espindola <espindola@google.com>
  824. * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
  825. Update the location of common.c.
  826. * Makefile.in: Regenerate.
  827. * common.c: Moved to gcc/lto.
  828. * common.h: Moved to gcc/lto.
  829. * lto-plugin.c: Update the location of common.h.
  830. * lto-symtab.c: Update the location of common.h.
  831. 2008-09-23 Rafael Espindola <espindola@google.com>
  832. * common.c: Include common.h.
  833. (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
  834. sizes.
  835. * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
  836. explicit sizes.
  837. 2008-09-23 Rafael Espindola <espindola@google.com>
  838. * lto-plugin.c (plugin_file_info): Add temp.
  839. (cleanup_handler): Only delete temporary files.
  840. (claim_file_handler): Initialize lto_file.temp.
  841. 2008-09-23 Rafael Espindola <espindola@google.com>
  842. * plugin-api.h: Moved to include.
  843. 2008-09-23 Rafael Espindola <espindola@google.com>
  844. * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
  845. format.
  846. 2008-09-22 Rafael Espindola <espindola@google.com>
  847. * plugin-api.h: Copy from binutils' cvs.
  848. 2008-09-22 Rafael Espindola <espindola@google.com>
  849. * lto-symtab.c (get_symbols, add_symbols): Update signature.
  850. * plugin-api.h: Copy from binutils' cvs.
  851. 2008-09-22 Rafael Espindola <espindola@google.com>
  852. * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
  853. Make extern
  854. 2008-09-10 Rafael Espindola <espindola@google.com>
  855. * lto-plugin.c (onload): add missing break statements and asserts.
  856. * lto-symtab.c (claim_file_handler): Make it static.
  857. (all_symbols_read_handler): Make it static.
  858. (all_file_handles): Make it static.
  859. (num_file_handles): Make it static.
  860. (register_claim_file): Make it static.
  861. (register_object): Indent properly.
  862. 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
  863. * Makefile.am (ltosymtab_LDADD): Add -lelf.
  864. * Makefiel.in: Regenerate.
  865. * lto-plugin.c: Include ar.h.
  866. (claim_file_handler): Handle file->offset != 0.
  867. * lto-symtab.c: Include gelf.h.
  868. (all_file_handles): Change type.
  869. (register_object): New.
  870. (register_file): Add support for archives.
  871. (resolve): Update to new type of all_file_handles.
  872. (print): Update to new type of all_file_handles.
  873. (free_all): Update to new type of all_file_handles.
  874. (main): Update to new type of all_file_handles.
  875. 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
  876. * lto-plugin.c (get_string_table): Remove.
  877. (get_section): Use elf_strptr instead of get_string_table.
  878. 2008-09-08 Doug Kwan <dougkwan@google.com>
  879. * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
  880. to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
  881. 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
  882. * Makefile.am (ltosymtab_SOURCES): add common.c.
  883. (ltosymtab_CFLAGS): New.
  884. (liblto_plugin_la_SOURCES): Add common.c.
  885. * Makefile.in: Regenerate.
  886. * common.c: New.
  887. * common.h: New.
  888. * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
  889. (plugin_symtab): New.
  890. (plugin_file_info): New.
  891. (register_all_symbols_read): New.
  892. (get_symbols): New.
  893. (claimed_files): New.
  894. (num_claimed_files): New.
  895. (translate): Don't drop the slot number.
  896. (free_1): New.
  897. (free_2): New.
  898. (all_symbols_read_handler): New.
  899. (claim_file_handler): Record every claimed file.
  900. (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
  901. LDPT_GET_SYMBOLS.
  902. * lto-symtab.c: Include stdlib.h, string.h and common.h.
  903. (current_file_handle): Remove.
  904. (ld_plugin_all_symbols_read_handler): New.
  905. (plugin_handle): New.
  906. (file_handle): New.
  907. (all_file_handles): New.
  908. (num_file_handles): New.
  909. (get_symbols): New.
  910. (register_all_symbols_read): New.
  911. (add_symbols): Don't print the symbols, just record them.
  912. (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
  913. LDPT_GET_SYMBOLS.
  914. (load_plugin): Use plugin_handle.
  915. (register_file): Add the file handle to all_file_handles.
  916. (resolve): New.
  917. (print): New.
  918. (unload_plugin): New.
  919. (free_all): New.
  920. (main): Call all_symbols_read_handler and free resources.
  921. 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
  922. * Makefile.am (AM_CFLAGS): New.
  923. (ltosymtab_LDADD): Remove -lelf. Add -ldl.
  924. (lib_LTLIBRARIES): New.
  925. (liblto_plugin_la_SOURCES): New.
  926. (liblto_plugin_la_LIBADD): New.
  927. * Makefile.in: Regenerate.
  928. * acinclude.m4: Don't include ../config/acx.m4 and
  929. ../config/no-executables.m4.
  930. Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
  931. ../libtool.m4.
  932. * aclocal.m4: Regenerate.
  933. * configure: Regenerate.
  934. * configure.ac: Use AM_PROG_LIBTOOL.
  935. * lto-plugin.c: New.
  936. * lto-symtab.c: Rewrite to use the plugin.
  937. * plugin-api.h: New.
  938. 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
  939. * configure: Regenerate.
  940. * configure.ac: Use AC_CHECK_GELF.
  941. * lto-symtab.c: Include gelf.h.
  942. (get_string_table): Use size independent API.
  943. (printTable): Use lld to print 64 bit integers.
  944. 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
  945. * lto-symtab.c (parse_table_entry): Assert entry->kind and
  946. entry->visibility are valid.
  947. 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
  948. * lto-symtab.c (table_entry): Add comdat.
  949. (parse_table_entry): Read comdat.
  950. 2008-08-21 Rafael Espindola <espindola@google.com>
  951. * Makefile.am: New.
  952. * Makefile.in: New.
  953. * acinclude.m4: New.
  954. * aclocal.m4: New.
  955. * configure: New.
  956. * configure.ac: New.
  957. * lto-symtab.c: New.