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