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