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