12016-06-03 Release Manager 2 3 * GCC 5.4.0 released. 4 52015-12-04 Release Manager 6 7 * GCC 5.3.0 released. 8 92015-07-16 Release Manager 10 11 * GCC 5.2.0 released. 12 132015-04-22 Release Manager 14 15 * GCC 5.1.0 released. 16 172015-02-06 H.J. Lu <hongjiu.lu@intel.com> 18 19 * lto-plugin.c (release_input_file): Removed. 20 (claim_file_handler): Don't call release_input_file. 21 (onload): Don't set release_input_file. 22 232015-02-05 H.J. Lu <hongjiu.lu@intel.com> 24 25 * lto-plugin.c (claim_file_handler): Pass handle to 26 release_input_file. 27 282015-02-05 H.J. Lu <hongjiu.lu@intel.com> 29 30 * lto-plugin.c (claim_file_handler): Call release_input_file only 31 if file is claimed. 32 332015-01-28 H.J. Lu <hongjiu.lu@intel.com> 34 35 * lto-plugin.c (claim_file_handler): Call release_input_file only 36 if it is not NULL. 37 382015-01-28 H.J. Lu <hongjiu.lu@intel.com> 39 40 PR lto/64837 41 * lto-plugin.c (release_input_file): New. 42 (claim_file_handler): Call release_input_file. 43 (onload): Set release_input_file. 44 452014-12-09 Ilya Verbin <ilya.verbin@intel.com> 46 47 * lto-plugin.c (offload_files, num_offload_files): New static variables. 48 (free_1): Use arguments instead of global variables. 49 (free_2): Free offload_files. 50 (all_symbols_read_handler): Add names from offload_files to lto-wrapper 51 arguments. 52 (claim_file_handler): Do not add file to claimed_files if it contains 53 offload sections without LTO sections. Add it to offload_files instead. 54 552014-11-21 H.J. Lu <hongjiu.lu@intel.com> 56 57 PR bootstrap/63784 58 * configure: Regenerated. 59 602014-11-13 Ilya Verbin <ilya.verbin@intel.com> 61 Bernd Schmidt <bernds@codesourcery.com> 62 Andrey Turetskiy <andrey.turetskiy@intel.com> 63 Michael Zolotukhin <michael.v.zolotukhin@intel.com> 64 65 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define. 66 (struct plugin_objfile): Add new field "offload". 67 (process_offload_section): New static function. 68 (claim_file_handler): Claim file if it contains offload sections. 69 702014-11-13 Bernd Schmidt <bernds@codesourcery.com> 71 Thomas Schwinge <thomas@codesourcery.com> 72 Ilya Verbin <ilya.verbin@intel.com> 73 Andrey Turetskiy <andrey.turetskiy@intel.com> 74 75 * Makefile.am (libexecsubdir): Tweak for the possibility of being 76 configured for offload compiler. 77 (accel_dir_suffix, real_target_noncanonical): New variables substituted 78 by configure. 79 * Makefile.in: Regenerate. 80 * configure: Regenerate. 81 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new 82 variables. 83 842014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 85 86 PR target/63610 87 * configure: Regenerate. 88 892014-08-26 H.J. Lu <hongjiu.lu@intel.com> 90 91 PR bootstrap/62260 92 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@. 93 * configure.ac (gcc_build_dir): Set and AC_SUBST according to 94 $host_subdir. 95 * Makefile.in: Regenerated. 96 * configure: Likewise. 97 982014-06-13 Thomas Schwinge <thomas@codesourcery.com> 99 100 * configure.ac (--with-libiberty): New configure option. 101 * configure: Regenerate. 102 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New 103 variables. 104 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS) 105 (liblto_plugin_la_DEPENDENCIES): Use them. 106 * Makefile.in: Regenerate. 107 1082014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 109 110 PR lto/60981 111 * configure.ac: Check for -static-libgcc. 112 * configure: Regenerate. 113 1142014-04-17 Jakub Jelinek <jakub@redhat.com> 115 116 PR sanitizer/56781 117 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address. 118 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS, 119 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a 120 over ../libiberty/pic/libiberty.a if the former exists. 121 * Makefile.in: Regenerated. 122 123 PR sanitizer/56781 124 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables. 125 * Makefile.in: Regenerated. 126 1272014-04-02 Richard Biener <rguenther@suse.de> 128 129 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin 130 is set in COLLECT_GCC_OPTIONS. 131 1322014-03-28 Richard Biener <rguenther@suse.de> 133 134 * lto-plugin.c (process_symtab): Handle EINTR and short reads. 135 1362014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 137 138 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc 139 for gcc. 140 * configure: Regenerate. 141 * Makefile.am (AM_LDFLAGS): New variable. 142 (liblto_plugin_la_LDFLAGS): Add it. 143 * Makefile.in: Regenerate. 144 1452013-09-20 Alan Modra <amodra@gmail.com> 146 147 * configure: Regenerate. 148 1492012-09-14 David Edelsohn <dje.gcc@gmail.com> 150 151 * configure: Regenerated. 152 1532012-05-29 Joseph Myers <joseph@codesourcery.com> 154 155 * lto-plugin.c: Fix typo. 156 1572012-05-16 H.J. Lu <hongjiu.lu@intel.com> 158 159 * configure: Regenerated. 160 1612012-02-22 Kai Tietz <ktietz@redhat.com> 162 163 PR lto/50616 164 * lto-plugin.c (PRI_LL): New macro. 165 (dump_symtab): Use PRI_LL instead of ll in print. 166 (process_symtab): Use PRI_LL instead of ll in scan. 167 1682011-12-20 Andreas Schwab <schwab@linux-m68k.org> 169 170 * configure: Regenerate. 171 1722011-12-19 Andreas Schwab <schwab@linux-m68k.org> 173 174 * configure: Regenerate. 175 1762011-11-21 Andreas Tobler <andreast@fgznet.ch> 177 178 * configure: Regenerate. 179 1802011-10-02 Jan Hubicka <jh@suse.cz> 181 182 PR lto/47247 183 * lto-plugin.c (get_symbols_v2): New variable. 184 (write_resolution): Use V2 API when available. 185 (onload): Handle LDPT_GET_SYMBOLS_V2. 186 1872011-09-30 H.J. Lu <hongjiu.lu@intel.com> 188 Andi Kleen <ak@linux.intel.com> 189 190 PR lto/50568 191 * lto-plugin.c (sym_aux): Change id to unsigned long long. 192 (plugin_symtab): Likewise. 193 (dump_symtab): Likewise. 194 (resolve_conflicts): Likewise. 195 (process_symtab): Likewise. 196 1972011-08-10 Richard Guenther <rguenther@suse.de> 198 199 PR bootstrap/49907 200 lto-plugin/ 201 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence. 202 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror. 203 * configure: Regenerate. 204 * Makefile.in: Likewise. 205 * aclocal.m4: Likewise. 206 2072011-04-20 Jim Meyering <meyering@redhat.com> 208 209 * lto-plugin.c (free_1, free_2): Remove useless if-before-free. 210 2112011-04-05 Richard Guenther <rguenther@suse.de> 212 213 PR bootstrap/48431 214 * lto-plugin.c (claim_file_handler): Do not declare vars in code. 215 2162011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 217 218 * Makefile.in: Regenerate. 219 * aclocal.m4: Regenerate. 220 * configure: Regenerate. 221 2222011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 223 224 * Makefile.am (all-local): Rename from 'all'. 225 * Makefile.in: Regenerate. 226 2272011-02-12 Alexandre Oliva <aoliva@redhat.com> 228 229 PR lto/47225 230 * Makefile.am (gcc_build_dir, in_gcc_libs): New. 231 (liblto_plugin_la_LDFLAGS): Add -module. 232 (copy_lto_plugin): Renamed to... 233 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying 234 of static modules. 235 * Makefile.in: Rebuild. 236 2372011-02-07 Kai Tietz <kai.tietz@onevision.com> 238 239 PR lto/47225 240 * Makefile.am (Wc): New helper for encoding -Wc,. 241 (liblto_plugin_la_LIBADD): Use Wc for libiberty library. 242 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty. 243 * Makefile.in: Regenerated. 244 2452011-02-07 Paolo Bonzini <bonzini@gnu.org> 246 247 Revert: 248 249 2011-02-07 Kai Tietz <kai.tietz@onevision.com> 250 251 PR lto/47225 252 * Makefile.am (Wl): New helper for encoding -Wl,. 253 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library. 254 * Makefile.in: Regenerated. 255 2562011-02-07 Kai Tietz <kai.tietz@onevision.com> 257 258 PR lto/47225 259 * Makefile.am (Wl): New helper for encoding -Wl,. 260 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library. 261 * Makefile.in: Regenerated. 262 2632011-01-25 Ian Lance Taylor <iant@google.com> 264 265 * lto-plugin.c (gold_version): New static variable. 266 (all_symbols_read_handler): Don't check pass_through_items if 267 using gold 1.11 or later. 268 (onload): Set gold_version if we see LDPT_GOLD_VERSION. 269 2702011-01-12 Richard Guenther <rguenther@suse.de> 271 272 PR lto/47264 273 * lto-plugin.c (parse_table_entry): Use memcpy to access 274 unaligned fields. 275 2762010-12-20 Dave Korn <dave.korn.cygwin@gmail.com> 277 278 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag. 279 * Makefile.in: Regenerate. 280 2812010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 282 283 Revert last change. 284 2852010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 286 287 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define. 288 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty. 289 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty. 290 * Makefile.in: Regenerate. 291 2922010-12-10 Dave Korn <dave.korn.cygwin@gmail.com> 293 294 PR middle-end/46674 295 PR lto/43157 296 * configure.ac (SYM_STYLE): Don't AC_DEFINE. 297 * lto-plugin.c (sym_style): Don't use it; default to ss_none. 298 * configure: Regenerate. 299 * config.h.in: Likewise. 300 3012010-12-06 Dave Korn <dave.korn.cygwin@gmail.com> 302 303 PR target/40125 304 PR lto/46695 305 * configure.ac: Invoke ACX_LT_HOST_FLAGS. 306 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but 307 override -bindir setting. 308 * aclocal.m4: Regenerate. 309 * configure: Regenerate. 310 * Makefile.in: Regenerate. 311 3122010-12-05 Kai Tietz <kai.tietz@onevision.com> 313 314 * config.h.in: Regenerated. 315 * configure: Regenerated. 316 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT. 317 * lto-plugin.c (WIFEXITED): Define default. 318 (WEXITSTATUS): Likeiwse. 319 3202010-12-01 Kai Tietz <kai.tietz@onevision.com> 321 322 * config.h.in: Regenerated. 323 * configure: Regenerated. 324 * Makefile.in: Regenerated. 325 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h. 326 * lto-plugin.c: Include sys/wait.h conditionally. 327 * aclocal.m4: Regenerated. 328 3292010-11-13 Kai Tietz <kai.tietz@onevision.com> 330 331 * lto-plugin.c (add_output_files): Fix memory leak. 332 3332010-11-11 Dave Korn <dave.korn.cygwin@gmail.com> 334 335 PR bootstrap/46397 336 PR bootstrap/46362 337 * configure.ac: Add AC_TYPE_INT64_T test. 338 * config.h.in: Regenerate. 339 * configure: Likewise. 340 * lto-plugin.c (debug): Use char not bool. 341 (nop): Likewise. 342 (check_1): Rename from check, and use int not bool for gate argument. 343 (check): Macro wrapper for the above to coerce gate argument into 344 boolean-valued integer in case it has pointer type. 345 (parse_table_entry): Use 0 not false. 346 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size 347 into two 32-bit parts and printing as hex ints. 348 3492010-11-03 Dave Korn <dave.korn.cygwin@gmail.com> 350 351 PR lto/46291 352 * lto-plugin.c (claim_file_handler): Don't close file descriptor. 353 3542010-11-03 Dave Korn <dave.korn.cygwin@gmail.com> 355 356 PR lto/46273 357 * lto-plugin.h: Delete. 358 * lto-plugin-elf.c: Likewise. 359 * lto-plugin-coff.c: Likewise. 360 * configure.ac: Don't use libelf, don't source config.gcc. 361 (LIBELFLIBS): Delete. 362 (LIBELFINC): Delete. 363 (LTO_FORMAT): Delete. 364 (SYM_STYLE): Add AC_DEFINE var, set based on $target. 365 (config.h): Add AC_CONFIG_HEADERS directive. 366 * Makefile.am (LIBELFLIBS): Delete. 367 (LIBELFINC): Delete. 368 (LTO_FORMAT): Delete. 369 (DEFS): Import. 370 (AM_CPPFLAGS): Use it. Don't use LIBELFINC. 371 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include 372 any object-format-specific source file in the link. 373 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS. 374 * config.h.in: Generate. 375 * configure: Regenerate. 376 * Makefile.in: Likewise. 377 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h. 378 (LTO_SEGMENT_NAME): New definition. 379 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h. 380 (LTO_SECTION_PREFIX_LEN): New definition. 381 (struct sym_aux): Struct definition moved here from lto-plugin.h. 382 (struct plugin_symtab): Likewise. 383 (struct plugin_objfile): Likewise. 384 (struct plugin_objfile): New struct def. 385 (enum symbol_style): New enum type. 386 (add_symbols): Make static. 387 (claimed_files): Likewise. 388 (num_claimed_files): Likewise. 389 (sym_style): New global. 390 (check): Make static. 391 (parse_table_entry): Likewise. Respect sym_style when extracting 392 symbol from symtab entry. 393 (translate): Make static. 394 (resolve_conflicts): Likewise. 395 (process_symtab): New function, per-section callback version of 396 old object-format-specific handling from deleted lto-plugin-elf.c. 397 (claim_file_handler): Convert ELF-specific version from deleted 398 lto-plugin-elf.c to simple_object interface and move here. 399 (process_options): Allow new '-sym-style=' option. 400 (onload): Don't call deleted onload_format_checks hook. 401 4022010-10-11 Kai Tietz <kai.tietz@onevision.com> 403 404 * lto-plugin.c (dump_symtab): Correct printf argument type. 405 (finish_conflict_resolution): Initialize resolution. 406 4072010-10-08 H.J. Lu <hongjiu.lu@intel.com> 408 409 PR bootstrap/45951 410 * configure.ac: Add AC_CANONICAL_SYSTEM. 411 * configure: Regenerated. 412 4132010-10-07 Dave Korn <dave.korn.cygwin@gmail.com> 414 415 * configure.ac: Source config.gcc to determine lto_binary_reader. 416 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader. 417 * Makefile.am (LTO_FORMAT): Import. 418 (liblto_plugin_la_SOURCES): Add object format dependent module 419 defined by LTO_FORMAT. 420 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty, 421 and work around libtool warning. 422 * configure: Regenerate. 423 * Makefile.in: Likewise. 424 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h. 425 (struct sym_aux): Likewise. 426 (struct plugin_symtab): Likewise. 427 (struct plugin_file_info): Likewise. 428 (LTO_SECTION_PREFIX): Likewise. 429 (add_symbols): Make non-static. 430 (claimed_files): Likewise. 431 (num_claimed_files): Likewise. 432 (check): Likewise. 433 (parse_table_entry): Likewise. 434 (translate): Likewise. 435 (resolve_conflicts): Likewise. 436 (process_symtab): Move to new lto-plugin-elf.c object format dependent 437 source file. 438 (claim_file_handler): Likewise, and make non-static. 439 (onload): Call new onload_format_checks function. 440 * lto-plugin.h: New file. 441 (LTO_SECTION_PREFIX): Move here. 442 (struct sym_aux): Likewise. 443 (struct plugin_symtab): Likewise. 444 (struct plugin_file_info): Likewise. 445 (claim_file_handler): Add new function prototype. 446 (onload_format_checks): Likewise. 447 (check): Declare extern. 448 (translate): Likewise. 449 (parse_table_entry): Likewise. 450 (resolve_conflicts): Likewise. 451 (add_symbols): Likewise. 452 (claimed_files): Likewise. 453 (num_claimed_files): Likewise. 454 * lto-plugin-elf.c (process_symtab): Move here. 455 (claim_file_handler): Likewise, and make non-static. 456 (onload_format_checks): New function factored out from onload. 457 * lto-plugin-coff.c (claim_file_handler): New function stub. 458 (onload_format_checks): Likewise. 459 4602010-08-05 Andi Kleen <ak@linux.intel.com> 461 462 * lto-plugin.c: Include <hashtab.h> 463 (sym_aux): Add next_conflict field to save conflict chains. 464 (plugin_file_info): Add conflicts symtab. 465 (parse_table_entry): Initialize aux->next_conflict. 466 (process_symtab): Increment found. 467 (dump_symtab): Add. 468 (finish_conflict_resolution): Add. 469 (free_symtab): Add. 470 (write_resolution): Remove symbols loop and move into 471 dump_symtab. Call dump_symtab for main symbol and conflicts table. 472 Call free_symtab to free conflicts table. 473 (SWAP): Add. 474 (eq_sym): Add. 475 (hash_sym): Add. 476 (symbol_strength): Add. 477 (resolve_conflicts): Add. 478 (claim_file_handler): Add n variable. Check return value of 479 process_symtab. Call resolve_conflicts. 480 4812010-07-27 Andi Kleen <ak@linux.intel.com> 482 483 * lto-plugin.c (translate): Remove debug fprintf. 484 4852010-07-23 H.J. Lu <hongjiu.lu@intel.com> 486 487 PR bootstrap/45042 488 * lto-plugin.c (translate): Cast to unsigned long. 489 4902010-07-23 Andi Kleen <ak@linux.intel.com> 491 492 PR lto/44992 493 * lto-plugin.c (sym_aux): Add. 494 (plugin_symtab): Remove slots. Add aux and id. 495 (parse_table_entry): Change to use aux instead of slots. 496 (LTO_SECTION_PREFIX): Add. 497 (translate): Improve buffer allocation. Change to append 498 symbols to existing out buffer. 499 (get_section): Remove. 500 (process_symtab): Add. 501 (free_2): Free symtab->aux. 502 (write_resolution): Handle aux instead of slots. 503 Print sub id to resolution file. 504 (claim_file_handler): Clear lto_file. Replace get_symtab/translate 505 calls with call to process_symtab. 506 5072010-07-22 Richard Guenther <rguenther@suse.de> 508 509 * Makefile.am: New copy_lto_plugin rule to install the plugin 510 into ../gcc. 511 * Makefile.in: Regenerated. 512 5132010-05-21 Richard Guenther <rguenther@suse.de> 514 515 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL. 516 5172010-05-07 Richard Guenther <rguenther@suse.de> 518 519 * lto-plugin.c (free_2): Do not free resolution_file. 520 (write_resolution): Check that we were passed a resolution file. 521 (all_symbols_read_handler): Adjust. 522 (cleanup_handler): Do not remove the resolution file. 523 (process_option): Handle -fresolution=. 524 5252010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 526 527 PR other/43620 528 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. 529 * Makefile.in: Regenerate. 530 5312010-04-23 Richard Guenther <rguenther@suse.de> 532 533 PR lto/41550 534 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc. 535 (translate): Likewise. 536 (all_symbols_read_handler): Likewise. 537 (claim_file_handler): Likewise. 538 (process_option): Likewise. 539 (add_output_files): Likewise. Remove filename length limit. 540 5412010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 542 543 * Makefile.in: Regenerate. 544 * aclocal.m4: Regenerate. 545 5462010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com> 547 548 PR lto/43336 549 * lto-plugin.c (cleanup_handler): Delete temporary output files. 550 5512010-01-11 Richard Guenther <rguenther@suse.de> 552 553 PR lto/41569 554 * Makefile.am: Disable dependencies. 555 * Makefile.in: Regenerated. 556 5572010-01-03 H.J. Lu <hongjiu.lu@intel.com> 558 559 PR lto/42520 560 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command 561 if -v is passed. 562 5632009-12-05 H.J. Lu <hongjiu.lu@intel.com> 564 565 PR bootstrap/42306 566 * configure: Regenerated. 567 * Makefile.in: Likewise. 568 5692009-11-19 Rafael Avila de Espindola <espindola@google.com> 570 571 PR bootstrap/42096 572 * lto-plugin.c (claim_file_handler): Print offsets in hex. 573 5742009-11-12 Rafael Avila de Espindola <espindola@google.com> 575 576 * lto-plugin.c (write_resolution): Assume resolution_file is set. 577 Print the symbol name. 578 (all_symbols_read_handler): Create a resolution file. 579 Pass it to gcc. 580 (cleanup_handler): Remove the resolution file. 581 (process_option): Drop the -resolution option. 582 5832009-11-05 Rafael Avila de Espindola <espindola@google.com> 584 585 * lto-plugin.c (temp_obj_dir_name): Remove. 586 (arguments_file_name): New. 587 (free_2): Free arguments_file_name instead of temp_obj_dir_name. 588 (exec_lto_wrapper): Create arguments file with make_temp_file. 589 (cleanup_handler): Don't remove the temporary directory. Remove the 590 arguments file. 591 (onload): Don't create the temporary directory. 592 5932009-11-04 Richard Guenther <rguenther@suse.de> 594 Rafael Avila de Espindola <espindola@google.com> 595 596 * lto-plugin.c (plugin_file_info): Remove temp field. 597 (cleanup_handler): Don't delete temporary objects. 598 (claim_file_handler): Don't create temporary objects. 599 6002009-11-04 Rafael Avila de Espindola <espindola@google.com> 601 602 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging. 603 6042009-10-30 Rafael Avila de Espindola <espindola@google.com> 605 606 PR41871 607 * lto-plugin.c (claim_file_handler): Close files that we created. 608 6092009-10-28 Rafael Avila de Espindola <espindola@google.com> 610 611 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of 612 LDPL_ERROR 613 6142009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com> 615 616 PR lto/41652 617 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT. 618 * configure: Regenerate. 619 6202009-10-26 Richard Guenther <rguenther@suse.de> 621 622 * configure.ac: Use AM_MAINTAINER_MODE. 623 * acinclude.m4: Remove. 624 * configure: Re-generate. 625 * Makefile.in: Likewise. 626 * aclocal.m4: Likewise. 627 6282009-10-19 Rafael Avila de Espindola <espindola@google.com> 629 630 PR40790 631 * configure: Regenerate. 632 * configure.ac: Add AC_TYPE_UINT64_T. 633 6342009-10-16 Rafael Avila de Espindola <espindola@google.com> 635 636 * lto-plugin.c (message): New variable. 637 (check): New function. 638 (parse_table_entry, translate, write_resolution,add_output_files, 639 exec_lto_wrapper,claim_file_handler, onload): Use check instead of 640 assert. 641 (cleanup_handler): Use check instead of assert. Remove the arguments 642 file if it exists. 643 6442009-10-15 Rafael Avila de Espindola <espindola@google.com> 645 646 * lto-plugin.c (resolution_file): New. 647 (free_1): Update comment. 648 (free_2): Free resolution_file. 649 (write_resolution): Write resolution to specified file. Use the 650 syms array from the symbol table. 651 (all_symbols_read_handler): Delay call to free_1 past call to 652 write_resolution. 653 (process_option): Add a -resolution option. 654 6552009-10-13 Richard Guenther <rguenther@suse.de> 656 657 * Makefile.am (liblto_plugin_la_LIBADD): Link against the 658 correct libiberty. 659 * Makefile.in: Regenerated. 660 6612009-10-08 Rafael Avila de Espindola <espindola@google.com> 662 663 * lto-plugin.c (add_input_library): New. 664 (all_symbols_read_handler): Use add_input_library for items that 665 start with -l. 666 (process_option): Fit in 80 columns. 667 (onload): Handle LDPT_ADD_INPUT_LIBRARY. 668 6692009-10-02 Diego Novillo <dnovillo@google.com> 670 671 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE 672 and -D_FILE_OFFSET_BITS=64. 673 * configure.ac: Add AC_SYS_LARGEFILE. 674 * configure: Regenerate. 675 * Makefile.in: Regenerate. 676 * lto-plugin.c: Fix copyright boilerplate. 677 6782009-10-02 Diego Novillo <dnovillo@google.com> 679 680 * Makefile.am (ACLOCAL_AMFLAGS): Define. 681 * aclocal.m4: Regenerate with aclocal-2.64 682 * acinclude.m4: Remove. 683 * Makefile.in: Regenerate with automake-1.11 684 * configure.ac (AC_PREREQ): Update to 2.64. 685 * configure: Regenerate. 686 6872009-10-02 Diego Novillo <dnovillo@google.com> 688 689 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE 690 and -D_FILE_OFFSET_BITS=64. 691 * configure.ac: Add AC_SYS_LARGEFILE. 692 * configure: Regenerate. 693 * Makefile.in: Regenerate. 694 * lto-plugin.c: Fix copyright boilerplate. 695 6962009-10-02 Diego Novillo <dnovillo@google.com> 697 698 * Makefile.am (ACLOCAL_AMFLAGS): Define. 699 * aclocal.m4: Regenerate with aclocal-2.64 700 * acinclude.m4: Remove. 701 * Makefile.in: Regenerate with automake-1.11 702 * configure.ac (AC_PREREQ): Update to 2.64. 703 * configure: Regenerate. 704 7052009-10-02 Rafael Avila de Espindola <espindola@google.com> 706 707 * Makefile.am (liblto_plugin_la_SOURCES): Remove 708 $(top_srcdir)/../gcc/lto/common.c 709 * Makefile.in: Regenerate. 710 7112009-10-01 Rafael Avila de Espindola <espindola@google.com> 712 713 * lto-plugin.c (pass_through_items): New. 714 (num_pass_through_items): New. 715 (all_symbols_read_handler): Update to use the -pass-through option. 716 (process_option): Replace -libgcc with -pass-through. 717 7182009-09-30 Rafael Avila de Espindola <espindola@google.com> 719 720 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require 721 register_cleanup to be set. 722 7232009-09-30 Rafael Avila de Espindola <espindola@google.com> 724 725 * Makefile.am: Remove all reference to ltosymtab. 726 * Makefile.in: Regenerate. 727 * lto-symtab.c: Remove. 728 7292009-05-21 Diego Novillo <dnovillo@google.com> 730 731 * configure.ac: Remove call to AC_CHECK_GELF. 732 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC. 733 * acinclude.m4: Do not include ../config/libelf.m4 734 * Makefile.am (LIBELFLIBS): Define. 735 (LIBELFINC): Define. 736 (AM_CPPFLAGS): Add $(LIBELFINC). 737 (ltosymtab_LDADD): Add $(LIBELFLIBS). 738 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS) 739 * lto-plugin.c: Always include <gelf.h> 740 * lto-symtab.c: Likewise. 741 * configure: Regenerate. 742 * Makefile.in: Regenerate. 743 7442009-03-23 Rafael Avila de Espindola <espindola@google.com> 745 746 * lto-plugin.c (libgcc_filename): New. 747 (all_symbols_read_handler): Pass libgcc to the linker. 748 (all_symbols_read_handler): Parse -libgcc 749 7502009-02-05 Rafael Avila de Espindola <espindola@google.com> 751 752 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty. 753 * Makefile.in: Regenerate. 754 * lto-plugin.c (add_output_files): Argument is now a FILE. 755 (exec_lto_wrapper): Use writeargv and pex. 756 7572009-02-04 Rafael Avila de Espindola <espindola@google.com> 758 759 Revert: 760 2009-02-04 Rafael Avila de Espindola <espindola@google.com> 761 * lto-plugin.c (exec_lto_wrapper): Use writeargv. 762 763 7642009-02-04 Rafael Avila de Espindola <espindola@google.com> 765 766 * lto-plugin.c (exec_lto_wrapper): Use writeargv. 767 7682009-01-29 Rafael Avila de Espindola <espindola@google.com> 769 770 * lto-plugin.c: Include libiberty.h. 771 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of 772 snprintf. 773 7742009-01-29 Rafael Avila de Espindola <espindola@google.com> 775 776 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that 777 file to lto-wrapper. 778 7792009-01-28 Rafael Avila de Espindola <espindola@google.com> 780 781 * lto-plugin.c (plugin_file_info): Remove fd and elf. 782 (parse_table_entry): strdup entry->name and entry->comdat_key. 783 (free_1): Free name and comdat_key. Don't close the file. Don't call 784 elf_end. 785 (claim_file_handler): Always call elf_end. 786 7872008-12-23 Rafael Avila de Espindola <espindola@google.com> 788 789 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE 790 -D_FILE_OFFSET_BITS=64 791 * Makefile.in: Regenerate 792 7932008-12-22 Rafael Avila de Espindola <espindola@google.com> 794 795 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New. 796 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES. 797 * Makefile.in: Regenerate. 798 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4 799 * configure: Regenerate. 800 * configure.ac: Add AC_SUBST(target_noncanonical). 801 8022008-12-08 Rafael Avila de Espindola <espindola@google.com> 803 804 * lto-plugin.c: Include stdbool.h. 805 (debug, nop): Declare as bool. 806 8072008-12-08 Rafael Avila de Espindola <espindola@google.com> 808 809 * lto-plugin.c (nop): New. 810 (use_original_files): New. 811 (all_symbols_read_handler): Call use_original_files if nop is true. 812 (process_option): Parse the -nop option. 813 8142008-12-08 Rafael Avila de Espindola <espindola@google.com> 815 816 * lto-plugin.c (debug): New. 817 (exec_lto_wrapper): Print argv if debug is true. 818 (process_option): Process the -debug command line option. 819 8202008-12-03 Rafael Avila de Espindola <espindola@google.com> 821 822 * lto-plugin.c (process_option): The argument is now a single option, 823 not a space separated list. 824 8252008-12-02 Rafael Avila de Espindola <espindola@google.com> 826 827 * lto-plugin.c: Include sys/types.h and sys/wait.h 828 (output_files, num_output_files, lto_wrapper_argv, 829 lto_wrapper_num_args): New. 830 (free_2): Free output_files. 831 (write_resolution): Disable. 832 (add_output_files): New. 833 (exec_lto_wrapper): New. 834 (all_symbols_read_handler): Run lto-wrapper. 835 (claim_file_handler): Free lto_file.name and call elf_end. 836 (process_option): New. 837 8382008-11-26 Rafael Espindola <espindola@google.com> 839 840 * lto-plugin.c (add_input_file): New. 841 (get_section): Return NULL if get_section fails. 842 (write_resolution): New. 843 (all_symbols_read_handler): Call add_input_file. 844 (claim_file_handler): Unlink the correct file. 845 (onload): Record add_input_file. 846 8472008-09-23 Rafael Espindola <espindola@google.com> 848 849 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES): 850 Update the location of common.c. 851 * Makefile.in: Regenerate. 852 * common.c: Moved to gcc/lto. 853 * common.h: Moved to gcc/lto. 854 * lto-plugin.c: Update the location of common.h. 855 * lto-symtab.c: Update the location of common.h. 856 8572008-09-23 Rafael Espindola <espindola@google.com> 858 859 * common.c: Include common.h. 860 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit 861 sizes. 862 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use 863 explicit sizes. 864 8652008-09-23 Rafael Espindola <espindola@google.com> 866 867 * lto-plugin.c (plugin_file_info): Add temp. 868 (cleanup_handler): Only delete temporary files. 869 (claim_file_handler): Initialize lto_file.temp. 870 8712008-09-23 Rafael Espindola <espindola@google.com> 872 873 * plugin-api.h: Moved to include. 874 8752008-09-23 Rafael Espindola <espindola@google.com> 876 877 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new 878 format. 879 8802008-09-22 Rafael Espindola <espindola@google.com> 881 882 * plugin-api.h: Copy from binutils' cvs. 883 8842008-09-22 Rafael Espindola <espindola@google.com> 885 886 * lto-symtab.c (get_symbols, add_symbols): Update signature. 887 * plugin-api.h: Copy from binutils' cvs. 888 8892008-09-22 Rafael Espindola <espindola@google.com> 890 891 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): 892 Make extern 893 8942008-09-10 Rafael Espindola <espindola@google.com> 895 896 * lto-plugin.c (onload): add missing break statements and asserts. 897 * lto-symtab.c (claim_file_handler): Make it static. 898 (all_symbols_read_handler): Make it static. 899 (all_file_handles): Make it static. 900 (num_file_handles): Make it static. 901 (register_claim_file): Make it static. 902 (register_object): Indent properly. 903 9042008-09-10 Rafael Avila de Espindola <espindola@google.com> 905 906 * Makefile.am (ltosymtab_LDADD): Add -lelf. 907 * Makefiel.in: Regenerate. 908 * lto-plugin.c: Include ar.h. 909 (claim_file_handler): Handle file->offset != 0. 910 * lto-symtab.c: Include gelf.h. 911 (all_file_handles): Change type. 912 (register_object): New. 913 (register_file): Add support for archives. 914 (resolve): Update to new type of all_file_handles. 915 (print): Update to new type of all_file_handles. 916 (free_all): Update to new type of all_file_handles. 917 (main): Update to new type of all_file_handles. 918 9192008-09-10 Rafael Avila de Espindola <espindola@google.com> 920 921 * lto-plugin.c (get_string_table): Remove. 922 (get_section): Use elf_strptr instead of get_string_table. 923 9242008-09-08 Doug Kwan <dougkwan@google.com> 925 926 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments 927 to 64-bit to fix a 32-bit bootstrap failure due to format warnings. 928 9292008-09-08 Rafael Avila de Espindola <espindola@google.com> 930 931 * Makefile.am (ltosymtab_SOURCES): add common.c. 932 (ltosymtab_CFLAGS): New. 933 (liblto_plugin_la_SOURCES): Add common.c. 934 * Makefile.in: Regenerate. 935 * common.c: New. 936 * common.h: New. 937 * lto-plugin.c: Include stdio.h, inttypes.h and common.h. 938 (plugin_symtab): New. 939 (plugin_file_info): New. 940 (register_all_symbols_read): New. 941 (get_symbols): New. 942 (claimed_files): New. 943 (num_claimed_files): New. 944 (translate): Don't drop the slot number. 945 (free_1): New. 946 (free_2): New. 947 (all_symbols_read_handler): New. 948 (claim_file_handler): Record every claimed file. 949 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and 950 LDPT_GET_SYMBOLS. 951 * lto-symtab.c: Include stdlib.h, string.h and common.h. 952 (current_file_handle): Remove. 953 (ld_plugin_all_symbols_read_handler): New. 954 (plugin_handle): New. 955 (file_handle): New. 956 (all_file_handles): New. 957 (num_file_handles): New. 958 (get_symbols): New. 959 (register_all_symbols_read): New. 960 (add_symbols): Don't print the symbols, just record them. 961 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and 962 LDPT_GET_SYMBOLS. 963 (load_plugin): Use plugin_handle. 964 (register_file): Add the file handle to all_file_handles. 965 (resolve): New. 966 (print): New. 967 (unload_plugin): New. 968 (free_all): New. 969 (main): Call all_symbols_read_handler and free resources. 970 9712008-09-03 Rafael Avila de Espindola <espindola@google.com> 972 973 * Makefile.am (AM_CFLAGS): New. 974 (ltosymtab_LDADD): Remove -lelf. Add -ldl. 975 (lib_LTLIBRARIES): New. 976 (liblto_plugin_la_SOURCES): New. 977 (liblto_plugin_la_LIBADD): New. 978 * Makefile.in: Regenerate. 979 * acinclude.m4: Don't include ../config/acx.m4 and 980 ../config/no-executables.m4. 981 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and 982 ../libtool.m4. 983 * aclocal.m4: Regenerate. 984 * configure: Regenerate. 985 * configure.ac: Use AM_PROG_LIBTOOL. 986 * lto-plugin.c: New. 987 * lto-symtab.c: Rewrite to use the plugin. 988 * plugin-api.h: New. 989 9902008-08-25 Rafael Avila de Espindola <espindola@google.com> 991 992 * configure: Regenerate. 993 * configure.ac: Use AC_CHECK_GELF. 994 * lto-symtab.c: Include gelf.h. 995 (get_string_table): Use size independent API. 996 (printTable): Use lld to print 64 bit integers. 997 9982008-08-22 Rafael Avila de Espindola <espindola@google.com> 999 1000 * lto-symtab.c (parse_table_entry): Assert entry->kind and 1001 entry->visibility are valid. 1002 10032008-07-22 Rafael Avila de Espindola <espindola@google.com> 1004 * lto-symtab.c (table_entry): Add comdat. 1005 (parse_table_entry): Read comdat. 1006 10072008-08-21 Rafael Espindola <espindola@google.com> 1008 1009 * Makefile.am: New. 1010 * Makefile.in: New. 1011 * acinclude.m4: New. 1012 * aclocal.m4: New. 1013 * configure: New. 1014 * configure.ac: New. 1015 * lto-symtab.c: New. 1016