ChangeLog 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008
  1. 2015-07-16 Release Manager
  2. * GCC 5.2.0 released.
  3. 2015-04-22 Release Manager
  4. * GCC 5.1.0 released.
  5. 2015-02-06 H.J. Lu <hongjiu.lu@intel.com>
  6. * lto-plugin.c (release_input_file): Removed.
  7. (claim_file_handler): Don't call release_input_file.
  8. (onload): Don't set release_input_file.
  9. 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
  10. * lto-plugin.c (claim_file_handler): Pass handle to
  11. release_input_file.
  12. 2015-02-05 H.J. Lu <hongjiu.lu@intel.com>
  13. * lto-plugin.c (claim_file_handler): Call release_input_file only
  14. if file is claimed.
  15. 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
  16. * lto-plugin.c (claim_file_handler): Call release_input_file only
  17. if it is not NULL.
  18. 2015-01-28 H.J. Lu <hongjiu.lu@intel.com>
  19. PR lto/64837
  20. * lto-plugin.c (release_input_file): New.
  21. (claim_file_handler): Call release_input_file.
  22. (onload): Set release_input_file.
  23. 2014-12-09 Ilya Verbin <ilya.verbin@intel.com>
  24. * lto-plugin.c (offload_files, num_offload_files): New static variables.
  25. (free_1): Use arguments instead of global variables.
  26. (free_2): Free offload_files.
  27. (all_symbols_read_handler): Add names from offload_files to lto-wrapper
  28. arguments.
  29. (claim_file_handler): Do not add file to claimed_files if it contains
  30. offload sections without LTO sections. Add it to offload_files instead.
  31. 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
  32. PR bootstrap/63784
  33. * configure: Regenerated.
  34. 2014-11-13 Ilya Verbin <ilya.verbin@intel.com>
  35. Bernd Schmidt <bernds@codesourcery.com>
  36. Andrey Turetskiy <andrey.turetskiy@intel.com>
  37. Michael Zolotukhin <michael.v.zolotukhin@intel.com>
  38. * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define.
  39. (struct plugin_objfile): Add new field "offload".
  40. (process_offload_section): New static function.
  41. (claim_file_handler): Claim file if it contains offload sections.
  42. 2014-11-13 Bernd Schmidt <bernds@codesourcery.com>
  43. Thomas Schwinge <thomas@codesourcery.com>
  44. Ilya Verbin <ilya.verbin@intel.com>
  45. Andrey Turetskiy <andrey.turetskiy@intel.com>
  46. * Makefile.am (libexecsubdir): Tweak for the possibility of being
  47. configured for offload compiler.
  48. (accel_dir_suffix, real_target_noncanonical): New variables substituted
  49. by configure.
  50. * Makefile.in: Regenerate.
  51. * configure: Regenerate.
  52. * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new
  53. variables.
  54. 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
  55. PR target/63610
  56. * configure: Regenerate.
  57. 2014-08-26 H.J. Lu <hongjiu.lu@intel.com>
  58. PR bootstrap/62260
  59. * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@.
  60. * configure.ac (gcc_build_dir): Set and AC_SUBST according to
  61. $host_subdir.
  62. * Makefile.in: Regenerated.
  63. * configure: Likewise.
  64. 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
  65. * configure.ac (--with-libiberty): New configure option.
  66. * configure: Regenerate.
  67. * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New
  68. variables.
  69. (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS)
  70. (liblto_plugin_la_DEPENDENCIES): Use them.
  71. * Makefile.in: Regenerate.
  72. 2014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  73. PR lto/60981
  74. * configure.ac: Check for -static-libgcc.
  75. * configure: Regenerate.
  76. 2014-04-17 Jakub Jelinek <jakub@redhat.com>
  77. PR sanitizer/56781
  78. * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address.
  79. (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS,
  80. liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a
  81. over ../libiberty/pic/libiberty.a if the former exists.
  82. * Makefile.in: Regenerated.
  83. PR sanitizer/56781
  84. * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
  85. * Makefile.in: Regenerated.
  86. 2014-04-02 Richard Biener <rguenther@suse.de>
  87. * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin
  88. is set in COLLECT_GCC_OPTIONS.
  89. 2014-03-28 Richard Biener <rguenther@suse.de>
  90. * lto-plugin.c (process_symtab): Handle EINTR and short reads.
  91. 2014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  92. * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc
  93. for gcc.
  94. * configure: Regenerate.
  95. * Makefile.am (AM_LDFLAGS): New variable.
  96. (liblto_plugin_la_LDFLAGS): Add it.
  97. * Makefile.in: Regenerate.
  98. 2013-09-20 Alan Modra <amodra@gmail.com>
  99. * configure: Regenerate.
  100. 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
  101. * configure: Regenerated.
  102. 2012-05-29 Joseph Myers <joseph@codesourcery.com>
  103. * lto-plugin.c: Fix typo.
  104. 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
  105. * configure: Regenerated.
  106. 2012-02-22 Kai Tietz <ktietz@redhat.com>
  107. PR lto/50616
  108. * lto-plugin.c (PRI_LL): New macro.
  109. (dump_symtab): Use PRI_LL instead of ll in print.
  110. (process_symtab): Use PRI_LL instead of ll in scan.
  111. 2011-12-20 Andreas Schwab <schwab@linux-m68k.org>
  112. * configure: Regenerate.
  113. 2011-12-19 Andreas Schwab <schwab@linux-m68k.org>
  114. * configure: Regenerate.
  115. 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
  116. * configure: Regenerate.
  117. 2011-10-02 Jan Hubicka <jh@suse.cz>
  118. PR lto/47247
  119. * lto-plugin.c (get_symbols_v2): New variable.
  120. (write_resolution): Use V2 API when available.
  121. (onload): Handle LDPT_GET_SYMBOLS_V2.
  122. 2011-09-30 H.J. Lu <hongjiu.lu@intel.com>
  123. Andi Kleen <ak@linux.intel.com>
  124. PR lto/50568
  125. * lto-plugin.c (sym_aux): Change id to unsigned long long.
  126. (plugin_symtab): Likewise.
  127. (dump_symtab): Likewise.
  128. (resolve_conflicts): Likewise.
  129. (process_symtab): Likewise.
  130. 2011-08-10 Richard Guenther <rguenther@suse.de>
  131. PR bootstrap/49907
  132. lto-plugin/
  133. * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence.
  134. * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror.
  135. * configure: Regenerate.
  136. * Makefile.in: Likewise.
  137. * aclocal.m4: Likewise.
  138. 2011-04-20 Jim Meyering <meyering@redhat.com>
  139. * lto-plugin.c (free_1, free_2): Remove useless if-before-free.
  140. 2011-04-05 Richard Guenther <rguenther@suse.de>
  141. PR bootstrap/48431
  142. * lto-plugin.c (claim_file_handler): Do not declare vars in code.
  143. 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  144. * Makefile.in: Regenerate.
  145. * aclocal.m4: Regenerate.
  146. * configure: Regenerate.
  147. 2011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  148. * Makefile.am (all-local): Rename from 'all'.
  149. * Makefile.in: Regenerate.
  150. 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
  151. PR lto/47225
  152. * Makefile.am (gcc_build_dir, in_gcc_libs): New.
  153. (liblto_plugin_la_LDFLAGS): Add -module.
  154. (copy_lto_plugin): Renamed to...
  155. ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying
  156. of static modules.
  157. * Makefile.in: Rebuild.
  158. 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
  159. PR lto/47225
  160. * Makefile.am (Wc): New helper for encoding -Wc,.
  161. (liblto_plugin_la_LIBADD): Use Wc for libiberty library.
  162. (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty.
  163. * Makefile.in: Regenerated.
  164. 2011-02-07 Paolo Bonzini <bonzini@gnu.org>
  165. Revert:
  166. 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
  167. PR lto/47225
  168. * Makefile.am (Wl): New helper for encoding -Wl,.
  169. (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
  170. * Makefile.in: Regenerated.
  171. 2011-02-07 Kai Tietz <kai.tietz@onevision.com>
  172. PR lto/47225
  173. * Makefile.am (Wl): New helper for encoding -Wl,.
  174. (liblto_plugin_la_LIBADD): Use -Wl for libiberty library.
  175. * Makefile.in: Regenerated.
  176. 2011-01-25 Ian Lance Taylor <iant@google.com>
  177. * lto-plugin.c (gold_version): New static variable.
  178. (all_symbols_read_handler): Don't check pass_through_items if
  179. using gold 1.11 or later.
  180. (onload): Set gold_version if we see LDPT_GOLD_VERSION.
  181. 2011-01-12 Richard Guenther <rguenther@suse.de>
  182. PR lto/47264
  183. * lto-plugin.c (parse_table_entry): Use memcpy to access
  184. unaligned fields.
  185. 2010-12-20 Dave Korn <dave.korn.cygwin@gmail.com>
  186. * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag.
  187. * Makefile.in: Regenerate.
  188. 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  189. Revert last change.
  190. 2010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
  191. * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
  192. (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
  193. (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
  194. * Makefile.in: Regenerate.
  195. 2010-12-10 Dave Korn <dave.korn.cygwin@gmail.com>
  196. PR middle-end/46674
  197. PR lto/43157
  198. * configure.ac (SYM_STYLE): Don't AC_DEFINE.
  199. * lto-plugin.c (sym_style): Don't use it; default to ss_none.
  200. * configure: Regenerate.
  201. * config.h.in: Likewise.
  202. 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
  203. PR target/40125
  204. PR lto/46695
  205. * configure.ac: Invoke ACX_LT_HOST_FLAGS.
  206. * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but
  207. override -bindir setting.
  208. * aclocal.m4: Regenerate.
  209. * configure: Regenerate.
  210. * Makefile.in: Regenerate.
  211. 2010-12-05 Kai Tietz <kai.tietz@onevision.com>
  212. * config.h.in: Regenerated.
  213. * configure: Regenerated.
  214. * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT.
  215. * lto-plugin.c (WIFEXITED): Define default.
  216. (WEXITSTATUS): Likeiwse.
  217. 2010-12-01 Kai Tietz <kai.tietz@onevision.com>
  218. * config.h.in: Regenerated.
  219. * configure: Regenerated.
  220. * Makefile.in: Regenerated.
  221. * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h.
  222. * lto-plugin.c: Include sys/wait.h conditionally.
  223. * aclocal.m4: Regenerated.
  224. 2010-11-13 Kai Tietz <kai.tietz@onevision.com>
  225. * lto-plugin.c (add_output_files): Fix memory leak.
  226. 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
  227. PR bootstrap/46397
  228. PR bootstrap/46362
  229. * configure.ac: Add AC_TYPE_INT64_T test.
  230. * config.h.in: Regenerate.
  231. * configure: Likewise.
  232. * lto-plugin.c (debug): Use char not bool.
  233. (nop): Likewise.
  234. (check_1): Rename from check, and use int not bool for gate argument.
  235. (check): Macro wrapper for the above to coerce gate argument into
  236. boolean-valued integer in case it has pointer type.
  237. (parse_table_entry): Use 0 not false.
  238. (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size
  239. into two 32-bit parts and printing as hex ints.
  240. 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
  241. PR lto/46291
  242. * lto-plugin.c (claim_file_handler): Don't close file descriptor.
  243. 2010-11-03 Dave Korn <dave.korn.cygwin@gmail.com>
  244. PR lto/46273
  245. * lto-plugin.h: Delete.
  246. * lto-plugin-elf.c: Likewise.
  247. * lto-plugin-coff.c: Likewise.
  248. * configure.ac: Don't use libelf, don't source config.gcc.
  249. (LIBELFLIBS): Delete.
  250. (LIBELFINC): Delete.
  251. (LTO_FORMAT): Delete.
  252. (SYM_STYLE): Add AC_DEFINE var, set based on $target.
  253. (config.h): Add AC_CONFIG_HEADERS directive.
  254. * Makefile.am (LIBELFLIBS): Delete.
  255. (LIBELFINC): Delete.
  256. (LTO_FORMAT): Delete.
  257. (DEFS): Import.
  258. (AM_CPPFLAGS): Use it. Don't use LIBELFINC.
  259. (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include
  260. any object-format-specific source file in the link.
  261. (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS.
  262. * config.h.in: Generate.
  263. * configure: Regenerate.
  264. * Makefile.in: Likewise.
  265. * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h.
  266. (LTO_SEGMENT_NAME): New definition.
  267. (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h.
  268. (LTO_SECTION_PREFIX_LEN): New definition.
  269. (struct sym_aux): Struct definition moved here from lto-plugin.h.
  270. (struct plugin_symtab): Likewise.
  271. (struct plugin_objfile): Likewise.
  272. (struct plugin_objfile): New struct def.
  273. (enum symbol_style): New enum type.
  274. (add_symbols): Make static.
  275. (claimed_files): Likewise.
  276. (num_claimed_files): Likewise.
  277. (sym_style): New global.
  278. (check): Make static.
  279. (parse_table_entry): Likewise. Respect sym_style when extracting
  280. symbol from symtab entry.
  281. (translate): Make static.
  282. (resolve_conflicts): Likewise.
  283. (process_symtab): New function, per-section callback version of
  284. old object-format-specific handling from deleted lto-plugin-elf.c.
  285. (claim_file_handler): Convert ELF-specific version from deleted
  286. lto-plugin-elf.c to simple_object interface and move here.
  287. (process_options): Allow new '-sym-style=' option.
  288. (onload): Don't call deleted onload_format_checks hook.
  289. 2010-10-11 Kai Tietz <kai.tietz@onevision.com>
  290. * lto-plugin.c (dump_symtab): Correct printf argument type.
  291. (finish_conflict_resolution): Initialize resolution.
  292. 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
  293. PR bootstrap/45951
  294. * configure.ac: Add AC_CANONICAL_SYSTEM.
  295. * configure: Regenerated.
  296. 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
  297. * configure.ac: Source config.gcc to determine lto_binary_reader.
  298. (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader.
  299. * Makefile.am (LTO_FORMAT): Import.
  300. (liblto_plugin_la_SOURCES): Add object format dependent module
  301. defined by LTO_FORMAT.
  302. (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty,
  303. and work around libtool warning.
  304. * configure: Regenerate.
  305. * Makefile.in: Likewise.
  306. * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h.
  307. (struct sym_aux): Likewise.
  308. (struct plugin_symtab): Likewise.
  309. (struct plugin_file_info): Likewise.
  310. (LTO_SECTION_PREFIX): Likewise.
  311. (add_symbols): Make non-static.
  312. (claimed_files): Likewise.
  313. (num_claimed_files): Likewise.
  314. (check): Likewise.
  315. (parse_table_entry): Likewise.
  316. (translate): Likewise.
  317. (resolve_conflicts): Likewise.
  318. (process_symtab): Move to new lto-plugin-elf.c object format dependent
  319. source file.
  320. (claim_file_handler): Likewise, and make non-static.
  321. (onload): Call new onload_format_checks function.
  322. * lto-plugin.h: New file.
  323. (LTO_SECTION_PREFIX): Move here.
  324. (struct sym_aux): Likewise.
  325. (struct plugin_symtab): Likewise.
  326. (struct plugin_file_info): Likewise.
  327. (claim_file_handler): Add new function prototype.
  328. (onload_format_checks): Likewise.
  329. (check): Declare extern.
  330. (translate): Likewise.
  331. (parse_table_entry): Likewise.
  332. (resolve_conflicts): Likewise.
  333. (add_symbols): Likewise.
  334. (claimed_files): Likewise.
  335. (num_claimed_files): Likewise.
  336. * lto-plugin-elf.c (process_symtab): Move here.
  337. (claim_file_handler): Likewise, and make non-static.
  338. (onload_format_checks): New function factored out from onload.
  339. * lto-plugin-coff.c (claim_file_handler): New function stub.
  340. (onload_format_checks): Likewise.
  341. 2010-08-05 Andi Kleen <ak@linux.intel.com>
  342. * lto-plugin.c: Include <hashtab.h>
  343. (sym_aux): Add next_conflict field to save conflict chains.
  344. (plugin_file_info): Add conflicts symtab.
  345. (parse_table_entry): Initialize aux->next_conflict.
  346. (process_symtab): Increment found.
  347. (dump_symtab): Add.
  348. (finish_conflict_resolution): Add.
  349. (free_symtab): Add.
  350. (write_resolution): Remove symbols loop and move into
  351. dump_symtab. Call dump_symtab for main symbol and conflicts table.
  352. Call free_symtab to free conflicts table.
  353. (SWAP): Add.
  354. (eq_sym): Add.
  355. (hash_sym): Add.
  356. (symbol_strength): Add.
  357. (resolve_conflicts): Add.
  358. (claim_file_handler): Add n variable. Check return value of
  359. process_symtab. Call resolve_conflicts.
  360. 2010-07-27 Andi Kleen <ak@linux.intel.com>
  361. * lto-plugin.c (translate): Remove debug fprintf.
  362. 2010-07-23 H.J. Lu <hongjiu.lu@intel.com>
  363. PR bootstrap/45042
  364. * lto-plugin.c (translate): Cast to unsigned long.
  365. 2010-07-23 Andi Kleen <ak@linux.intel.com>
  366. PR lto/44992
  367. * lto-plugin.c (sym_aux): Add.
  368. (plugin_symtab): Remove slots. Add aux and id.
  369. (parse_table_entry): Change to use aux instead of slots.
  370. (LTO_SECTION_PREFIX): Add.
  371. (translate): Improve buffer allocation. Change to append
  372. symbols to existing out buffer.
  373. (get_section): Remove.
  374. (process_symtab): Add.
  375. (free_2): Free symtab->aux.
  376. (write_resolution): Handle aux instead of slots.
  377. Print sub id to resolution file.
  378. (claim_file_handler): Clear lto_file. Replace get_symtab/translate
  379. calls with call to process_symtab.
  380. 2010-07-22 Richard Guenther <rguenther@suse.de>
  381. * Makefile.am: New copy_lto_plugin rule to install the plugin
  382. into ../gcc.
  383. * Makefile.in: Regenerated.
  384. 2010-05-21 Richard Guenther <rguenther@suse.de>
  385. * lto-plugin.c (write_resolution): Do not assert syms is non-NULL.
  386. 2010-05-07 Richard Guenther <rguenther@suse.de>
  387. * lto-plugin.c (free_2): Do not free resolution_file.
  388. (write_resolution): Check that we were passed a resolution file.
  389. (all_symbols_read_handler): Adjust.
  390. (cleanup_handler): Do not remove the resolution file.
  391. (process_option): Handle -fresolution=.
  392. 2010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  393. PR other/43620
  394. * configure.ac (AM_INIT_AUTOMAKE): Add no-dist.
  395. * Makefile.in: Regenerate.
  396. 2010-04-23 Richard Guenther <rguenther@suse.de>
  397. PR lto/41550
  398. * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc.
  399. (translate): Likewise.
  400. (all_symbols_read_handler): Likewise.
  401. (claim_file_handler): Likewise.
  402. (process_option): Likewise.
  403. (add_output_files): Likewise. Remove filename length limit.
  404. 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
  405. * Makefile.in: Regenerate.
  406. * aclocal.m4: Regenerate.
  407. 2010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
  408. PR lto/43336
  409. * lto-plugin.c (cleanup_handler): Delete temporary output files.
  410. 2010-01-11 Richard Guenther <rguenther@suse.de>
  411. PR lto/41569
  412. * Makefile.am: Disable dependencies.
  413. * Makefile.in: Regenerated.
  414. 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
  415. PR lto/42520
  416. * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command
  417. if -v is passed.
  418. 2009-12-05 H.J. Lu <hongjiu.lu@intel.com>
  419. PR bootstrap/42306
  420. * configure: Regenerated.
  421. * Makefile.in: Likewise.
  422. 2009-11-19 Rafael Avila de Espindola <espindola@google.com>
  423. PR bootstrap/42096
  424. * lto-plugin.c (claim_file_handler): Print offsets in hex.
  425. 2009-11-12 Rafael Avila de Espindola <espindola@google.com>
  426. * lto-plugin.c (write_resolution): Assume resolution_file is set.
  427. Print the symbol name.
  428. (all_symbols_read_handler): Create a resolution file.
  429. Pass it to gcc.
  430. (cleanup_handler): Remove the resolution file.
  431. (process_option): Drop the -resolution option.
  432. 2009-11-05 Rafael Avila de Espindola <espindola@google.com>
  433. * lto-plugin.c (temp_obj_dir_name): Remove.
  434. (arguments_file_name): New.
  435. (free_2): Free arguments_file_name instead of temp_obj_dir_name.
  436. (exec_lto_wrapper): Create arguments file with make_temp_file.
  437. (cleanup_handler): Don't remove the temporary directory. Remove the
  438. arguments file.
  439. (onload): Don't create the temporary directory.
  440. 2009-11-04 Richard Guenther <rguenther@suse.de>
  441. Rafael Avila de Espindola <espindola@google.com>
  442. * lto-plugin.c (plugin_file_info): Remove temp field.
  443. (cleanup_handler): Don't delete temporary objects.
  444. (claim_file_handler): Don't create temporary objects.
  445. 2009-11-04 Rafael Avila de Espindola <espindola@google.com>
  446. * lto-plugin.c (cleanup_handler): Don't cleanup if debugging.
  447. 2009-10-30 Rafael Avila de Espindola <espindola@google.com>
  448. PR41871
  449. * lto-plugin.c (claim_file_handler): Close files that we created.
  450. 2009-10-28 Rafael Avila de Espindola <espindola@google.com>
  451. * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of
  452. LDPL_ERROR
  453. 2009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
  454. PR lto/41652
  455. * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT.
  456. * configure: Regenerate.
  457. 2009-10-26 Richard Guenther <rguenther@suse.de>
  458. * configure.ac: Use AM_MAINTAINER_MODE.
  459. * acinclude.m4: Remove.
  460. * configure: Re-generate.
  461. * Makefile.in: Likewise.
  462. * aclocal.m4: Likewise.
  463. 2009-10-19 Rafael Avila de Espindola <espindola@google.com>
  464. PR40790
  465. * configure: Regenerate.
  466. * configure.ac: Add AC_TYPE_UINT64_T.
  467. 2009-10-16 Rafael Avila de Espindola <espindola@google.com>
  468. * lto-plugin.c (message): New variable.
  469. (check): New function.
  470. (parse_table_entry, translate, write_resolution,add_output_files,
  471. exec_lto_wrapper,claim_file_handler, onload): Use check instead of
  472. assert.
  473. (cleanup_handler): Use check instead of assert. Remove the arguments
  474. file if it exists.
  475. 2009-10-15 Rafael Avila de Espindola <espindola@google.com>
  476. * lto-plugin.c (resolution_file): New.
  477. (free_1): Update comment.
  478. (free_2): Free resolution_file.
  479. (write_resolution): Write resolution to specified file. Use the
  480. syms array from the symbol table.
  481. (all_symbols_read_handler): Delay call to free_1 past call to
  482. write_resolution.
  483. (process_option): Add a -resolution option.
  484. 2009-10-13 Richard Guenther <rguenther@suse.de>
  485. * Makefile.am (liblto_plugin_la_LIBADD): Link against the
  486. correct libiberty.
  487. * Makefile.in: Regenerated.
  488. 2009-10-08 Rafael Avila de Espindola <espindola@google.com>
  489. * lto-plugin.c (add_input_library): New.
  490. (all_symbols_read_handler): Use add_input_library for items that
  491. start with -l.
  492. (process_option): Fit in 80 columns.
  493. (onload): Handle LDPT_ADD_INPUT_LIBRARY.
  494. 2009-10-02 Diego Novillo <dnovillo@google.com>
  495. * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
  496. and -D_FILE_OFFSET_BITS=64.
  497. * configure.ac: Add AC_SYS_LARGEFILE.
  498. * configure: Regenerate.
  499. * Makefile.in: Regenerate.
  500. * lto-plugin.c: Fix copyright boilerplate.
  501. 2009-10-02 Diego Novillo <dnovillo@google.com>
  502. * Makefile.am (ACLOCAL_AMFLAGS): Define.
  503. * aclocal.m4: Regenerate with aclocal-2.64
  504. * acinclude.m4: Remove.
  505. * Makefile.in: Regenerate with automake-1.11
  506. * configure.ac (AC_PREREQ): Update to 2.64.
  507. * configure: Regenerate.
  508. 2009-10-02 Diego Novillo <dnovillo@google.com>
  509. * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE
  510. and -D_FILE_OFFSET_BITS=64.
  511. * configure.ac: Add AC_SYS_LARGEFILE.
  512. * configure: Regenerate.
  513. * Makefile.in: Regenerate.
  514. * lto-plugin.c: Fix copyright boilerplate.
  515. 2009-10-02 Diego Novillo <dnovillo@google.com>
  516. * Makefile.am (ACLOCAL_AMFLAGS): Define.
  517. * aclocal.m4: Regenerate with aclocal-2.64
  518. * acinclude.m4: Remove.
  519. * Makefile.in: Regenerate with automake-1.11
  520. * configure.ac (AC_PREREQ): Update to 2.64.
  521. * configure: Regenerate.
  522. 2009-10-02 Rafael Avila de Espindola <espindola@google.com>
  523. * Makefile.am (liblto_plugin_la_SOURCES): Remove
  524. $(top_srcdir)/../gcc/lto/common.c
  525. * Makefile.in: Regenerate.
  526. 2009-10-01 Rafael Avila de Espindola <espindola@google.com>
  527. * lto-plugin.c (pass_through_items): New.
  528. (num_pass_through_items): New.
  529. (all_symbols_read_handler): Update to use the -pass-through option.
  530. (process_option): Replace -libgcc with -pass-through.
  531. 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
  532. * lto-plugin.c (onload): Return a ld_plugin_status. Don't require
  533. register_cleanup to be set.
  534. 2009-09-30 Rafael Avila de Espindola <espindola@google.com>
  535. * Makefile.am: Remove all reference to ltosymtab.
  536. * Makefile.in: Regenerate.
  537. * lto-symtab.c: Remove.
  538. 2009-05-21 Diego Novillo <dnovillo@google.com>
  539. * configure.ac: Remove call to AC_CHECK_GELF.
  540. Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC.
  541. * acinclude.m4: Do not include ../config/libelf.m4
  542. * Makefile.am (LIBELFLIBS): Define.
  543. (LIBELFINC): Define.
  544. (AM_CPPFLAGS): Add $(LIBELFINC).
  545. (ltosymtab_LDADD): Add $(LIBELFLIBS).
  546. (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS)
  547. * lto-plugin.c: Always include <gelf.h>
  548. * lto-symtab.c: Likewise.
  549. * configure: Regenerate.
  550. * Makefile.in: Regenerate.
  551. 2009-03-23 Rafael Avila de Espindola <espindola@google.com>
  552. * lto-plugin.c (libgcc_filename): New.
  553. (all_symbols_read_handler): Pass libgcc to the linker.
  554. (all_symbols_read_handler): Parse -libgcc
  555. 2009-02-05 Rafael Avila de Espindola <espindola@google.com>
  556. * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty.
  557. * Makefile.in: Regenerate.
  558. * lto-plugin.c (add_output_files): Argument is now a FILE.
  559. (exec_lto_wrapper): Use writeargv and pex.
  560. 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
  561. Revert:
  562. 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
  563. * lto-plugin.c (exec_lto_wrapper): Use writeargv.
  564. 2009-02-04 Rafael Avila de Espindola <espindola@google.com>
  565. * lto-plugin.c (exec_lto_wrapper): Use writeargv.
  566. 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
  567. * lto-plugin.c: Include libiberty.h.
  568. (exec_lto_wrapper, claim_file_handler): Use asprintf instead of
  569. snprintf.
  570. 2009-01-29 Rafael Avila de Espindola <espindola@google.com>
  571. * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that
  572. file to lto-wrapper.
  573. 2009-01-28 Rafael Avila de Espindola <espindola@google.com>
  574. * lto-plugin.c (plugin_file_info): Remove fd and elf.
  575. (parse_table_entry): strdup entry->name and entry->comdat_key.
  576. (free_1): Free name and comdat_key. Don't close the file. Don't call
  577. elf_end.
  578. (claim_file_handler): Always call elf_end.
  579. 2008-12-23 Rafael Avila de Espindola <espindola@google.com>
  580. * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE
  581. -D_FILE_OFFSET_BITS=64
  582. * Makefile.in: Regenerate
  583. 2008-12-22 Rafael Avila de Espindola <espindola@google.com>
  584. * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New.
  585. (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES.
  586. * Makefile.in: Regenerate.
  587. * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4
  588. * configure: Regenerate.
  589. * configure.ac: Add AC_SUBST(target_noncanonical).
  590. 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
  591. * lto-plugin.c: Include stdbool.h.
  592. (debug, nop): Declare as bool.
  593. 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
  594. * lto-plugin.c (nop): New.
  595. (use_original_files): New.
  596. (all_symbols_read_handler): Call use_original_files if nop is true.
  597. (process_option): Parse the -nop option.
  598. 2008-12-08 Rafael Avila de Espindola <espindola@google.com>
  599. * lto-plugin.c (debug): New.
  600. (exec_lto_wrapper): Print argv if debug is true.
  601. (process_option): Process the -debug command line option.
  602. 2008-12-03 Rafael Avila de Espindola <espindola@google.com>
  603. * lto-plugin.c (process_option): The argument is now a single option,
  604. not a space separated list.
  605. 2008-12-02 Rafael Avila de Espindola <espindola@google.com>
  606. * lto-plugin.c: Include sys/types.h and sys/wait.h
  607. (output_files, num_output_files, lto_wrapper_argv,
  608. lto_wrapper_num_args): New.
  609. (free_2): Free output_files.
  610. (write_resolution): Disable.
  611. (add_output_files): New.
  612. (exec_lto_wrapper): New.
  613. (all_symbols_read_handler): Run lto-wrapper.
  614. (claim_file_handler): Free lto_file.name and call elf_end.
  615. (process_option): New.
  616. 2008-11-26 Rafael Espindola <espindola@google.com>
  617. * lto-plugin.c (add_input_file): New.
  618. (get_section): Return NULL if get_section fails.
  619. (write_resolution): New.
  620. (all_symbols_read_handler): Call add_input_file.
  621. (claim_file_handler): Unlink the correct file.
  622. (onload): Record add_input_file.
  623. 2008-09-23 Rafael Espindola <espindola@google.com>
  624. * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES):
  625. Update the location of common.c.
  626. * Makefile.in: Regenerate.
  627. * common.c: Moved to gcc/lto.
  628. * common.h: Moved to gcc/lto.
  629. * lto-plugin.c: Update the location of common.h.
  630. * lto-symtab.c: Update the location of common.h.
  631. 2008-09-23 Rafael Espindola <espindola@google.com>
  632. * common.c: Include common.h.
  633. (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit
  634. sizes.
  635. * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use
  636. explicit sizes.
  637. 2008-09-23 Rafael Espindola <espindola@google.com>
  638. * lto-plugin.c (plugin_file_info): Add temp.
  639. (cleanup_handler): Only delete temporary files.
  640. (claim_file_handler): Initialize lto_file.temp.
  641. 2008-09-23 Rafael Espindola <espindola@google.com>
  642. * plugin-api.h: Moved to include.
  643. 2008-09-23 Rafael Espindola <espindola@google.com>
  644. * lto-plugin.c (all_symbols_read_handler): Print resolution in a new
  645. format.
  646. 2008-09-22 Rafael Espindola <espindola@google.com>
  647. * plugin-api.h: Copy from binutils' cvs.
  648. 2008-09-22 Rafael Espindola <espindola@google.com>
  649. * lto-symtab.c (get_symbols, add_symbols): Update signature.
  650. * plugin-api.h: Copy from binutils' cvs.
  651. 2008-09-22 Rafael Espindola <espindola@google.com>
  652. * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str):
  653. Make extern
  654. 2008-09-10 Rafael Espindola <espindola@google.com>
  655. * lto-plugin.c (onload): add missing break statements and asserts.
  656. * lto-symtab.c (claim_file_handler): Make it static.
  657. (all_symbols_read_handler): Make it static.
  658. (all_file_handles): Make it static.
  659. (num_file_handles): Make it static.
  660. (register_claim_file): Make it static.
  661. (register_object): Indent properly.
  662. 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
  663. * Makefile.am (ltosymtab_LDADD): Add -lelf.
  664. * Makefiel.in: Regenerate.
  665. * lto-plugin.c: Include ar.h.
  666. (claim_file_handler): Handle file->offset != 0.
  667. * lto-symtab.c: Include gelf.h.
  668. (all_file_handles): Change type.
  669. (register_object): New.
  670. (register_file): Add support for archives.
  671. (resolve): Update to new type of all_file_handles.
  672. (print): Update to new type of all_file_handles.
  673. (free_all): Update to new type of all_file_handles.
  674. (main): Update to new type of all_file_handles.
  675. 2008-09-10 Rafael Avila de Espindola <espindola@google.com>
  676. * lto-plugin.c (get_string_table): Remove.
  677. (get_section): Use elf_strptr instead of get_string_table.
  678. 2008-09-08 Doug Kwan <dougkwan@google.com>
  679. * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments
  680. to 64-bit to fix a 32-bit bootstrap failure due to format warnings.
  681. 2008-09-08 Rafael Avila de Espindola <espindola@google.com>
  682. * Makefile.am (ltosymtab_SOURCES): add common.c.
  683. (ltosymtab_CFLAGS): New.
  684. (liblto_plugin_la_SOURCES): Add common.c.
  685. * Makefile.in: Regenerate.
  686. * common.c: New.
  687. * common.h: New.
  688. * lto-plugin.c: Include stdio.h, inttypes.h and common.h.
  689. (plugin_symtab): New.
  690. (plugin_file_info): New.
  691. (register_all_symbols_read): New.
  692. (get_symbols): New.
  693. (claimed_files): New.
  694. (num_claimed_files): New.
  695. (translate): Don't drop the slot number.
  696. (free_1): New.
  697. (free_2): New.
  698. (all_symbols_read_handler): New.
  699. (claim_file_handler): Record every claimed file.
  700. (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
  701. LDPT_GET_SYMBOLS.
  702. * lto-symtab.c: Include stdlib.h, string.h and common.h.
  703. (current_file_handle): Remove.
  704. (ld_plugin_all_symbols_read_handler): New.
  705. (plugin_handle): New.
  706. (file_handle): New.
  707. (all_file_handles): New.
  708. (num_file_handles): New.
  709. (get_symbols): New.
  710. (register_all_symbols_read): New.
  711. (add_symbols): Don't print the symbols, just record them.
  712. (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and
  713. LDPT_GET_SYMBOLS.
  714. (load_plugin): Use plugin_handle.
  715. (register_file): Add the file handle to all_file_handles.
  716. (resolve): New.
  717. (print): New.
  718. (unload_plugin): New.
  719. (free_all): New.
  720. (main): Call all_symbols_read_handler and free resources.
  721. 2008-09-03 Rafael Avila de Espindola <espindola@google.com>
  722. * Makefile.am (AM_CFLAGS): New.
  723. (ltosymtab_LDADD): Remove -lelf. Add -ldl.
  724. (lib_LTLIBRARIES): New.
  725. (liblto_plugin_la_SOURCES): New.
  726. (liblto_plugin_la_LIBADD): New.
  727. * Makefile.in: Regenerate.
  728. * acinclude.m4: Don't include ../config/acx.m4 and
  729. ../config/no-executables.m4.
  730. Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and
  731. ../libtool.m4.
  732. * aclocal.m4: Regenerate.
  733. * configure: Regenerate.
  734. * configure.ac: Use AM_PROG_LIBTOOL.
  735. * lto-plugin.c: New.
  736. * lto-symtab.c: Rewrite to use the plugin.
  737. * plugin-api.h: New.
  738. 2008-08-25 Rafael Avila de Espindola <espindola@google.com>
  739. * configure: Regenerate.
  740. * configure.ac: Use AC_CHECK_GELF.
  741. * lto-symtab.c: Include gelf.h.
  742. (get_string_table): Use size independent API.
  743. (printTable): Use lld to print 64 bit integers.
  744. 2008-08-22 Rafael Avila de Espindola <espindola@google.com>
  745. * lto-symtab.c (parse_table_entry): Assert entry->kind and
  746. entry->visibility are valid.
  747. 2008-07-22 Rafael Avila de Espindola <espindola@google.com>
  748. * lto-symtab.c (table_entry): Add comdat.
  749. (parse_table_entry): Read comdat.
  750. 2008-08-21 Rafael Espindola <espindola@google.com>
  751. * Makefile.am: New.
  752. * Makefile.in: New.
  753. * acinclude.m4: New.
  754. * aclocal.m4: New.
  755. * configure: New.
  756. * configure.ac: New.
  757. * lto-symtab.c: New.