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