ChangeLog revision 1.1.1.9
12017-10-10 Release Manager 2 3 * GCC 5.5.0 released. 4 52017-08-22 Georg-Johann Lay <avr@gjlay.de> 6 7 Backport from 2017-07-26 gcc-7-branch r250562. 8 9 PR lto/81487 10 * lto-plugin.c (claim_file_handler): Use xasprintf instead of 11 asprintf. 12 [hi!=0]: Swap hi and lo arguments supplied to xasprintf. 13 142016-06-03 Release Manager 15 16 * GCC 5.4.0 released. 17 182015-12-04 Release Manager 19 20 * GCC 5.3.0 released. 21 222015-07-16 Release Manager 23 24 * GCC 5.2.0 released. 25 262015-04-22 Release Manager 27 28 * GCC 5.1.0 released. 29 302015-02-06 H.J. Lu <hongjiu.lu@intel.com> 31 32 * lto-plugin.c (release_input_file): Removed. 33 (claim_file_handler): Don't call release_input_file. 34 (onload): Don't set release_input_file. 35 362015-02-05 H.J. Lu <hongjiu.lu@intel.com> 37 38 * lto-plugin.c (claim_file_handler): Pass handle to 39 release_input_file. 40 412015-02-05 H.J. Lu <hongjiu.lu@intel.com> 42 43 * lto-plugin.c (claim_file_handler): Call release_input_file only 44 if file is claimed. 45 462015-01-28 H.J. Lu <hongjiu.lu@intel.com> 47 48 * lto-plugin.c (claim_file_handler): Call release_input_file only 49 if it is not NULL. 50 512015-01-28 H.J. Lu <hongjiu.lu@intel.com> 52 53 PR lto/64837 54 * lto-plugin.c (release_input_file): New. 55 (claim_file_handler): Call release_input_file. 56 (onload): Set release_input_file. 57 582014-12-09 Ilya Verbin <ilya.verbin@intel.com> 59 60 * lto-plugin.c (offload_files, num_offload_files): New static variables. 61 (free_1): Use arguments instead of global variables. 62 (free_2): Free offload_files. 63 (all_symbols_read_handler): Add names from offload_files to lto-wrapper 64 arguments. 65 (claim_file_handler): Do not add file to claimed_files if it contains 66 offload sections without LTO sections. Add it to offload_files instead. 67 682014-11-21 H.J. Lu <hongjiu.lu@intel.com> 69 70 PR bootstrap/63784 71 * configure: Regenerated. 72 732014-11-13 Ilya Verbin <ilya.verbin@intel.com> 74 Bernd Schmidt <bernds@codesourcery.com> 75 Andrey Turetskiy <andrey.turetskiy@intel.com> 76 Michael Zolotukhin <michael.v.zolotukhin@intel.com> 77 78 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define. 79 (struct plugin_objfile): Add new field "offload". 80 (process_offload_section): New static function. 81 (claim_file_handler): Claim file if it contains offload sections. 82 832014-11-13 Bernd Schmidt <bernds@codesourcery.com> 84 Thomas Schwinge <thomas@codesourcery.com> 85 Ilya Verbin <ilya.verbin@intel.com> 86 Andrey Turetskiy <andrey.turetskiy@intel.com> 87 88 * Makefile.am (libexecsubdir): Tweak for the possibility of being 89 configured for offload compiler. 90 (accel_dir_suffix, real_target_noncanonical): New variables substituted 91 by configure. 92 * Makefile.in: Regenerate. 93 * configure: Regenerate. 94 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new 95 variables. 96 972014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 98 99 PR target/63610 100 * configure: Regenerate. 101 1022014-08-26 H.J. Lu <hongjiu.lu@intel.com> 103 104 PR bootstrap/62260 105 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@. 106 * configure.ac (gcc_build_dir): Set and AC_SUBST according to 107 $host_subdir. 108 * Makefile.in: Regenerated. 109 * configure: Likewise. 110 1112014-06-13 Thomas Schwinge <thomas@codesourcery.com> 112 113 * configure.ac (--with-libiberty): New configure option. 114 * configure: Regenerate. 115 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New 116 variables. 117 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS) 118 (liblto_plugin_la_DEPENDENCIES): Use them. 119 * Makefile.in: Regenerate. 120 1212014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 122 123 PR lto/60981 124 * configure.ac: Check for -static-libgcc. 125 * configure: Regenerate. 126 1272014-04-17 Jakub Jelinek <jakub@redhat.com> 128 129 PR sanitizer/56781 130 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address. 131 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS, 132 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a 133 over ../libiberty/pic/libiberty.a if the former exists. 134 * Makefile.in: Regenerated. 135 136 PR sanitizer/56781 137 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables. 138 * Makefile.in: Regenerated. 139 1402014-04-02 Richard Biener <rguenther@suse.de> 141 142 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin 143 is set in COLLECT_GCC_OPTIONS. 144 1452014-03-28 Richard Biener <rguenther@suse.de> 146 147 * lto-plugin.c (process_symtab): Handle EINTR and short reads. 148 1492014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 150 151 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc 152 for gcc. 153 * configure: Regenerate. 154 * Makefile.am (AM_LDFLAGS): New variable. 155 (liblto_plugin_la_LDFLAGS): Add it. 156 * Makefile.in: Regenerate. 157 1582013-09-20 Alan Modra <amodra@gmail.com> 159 160 * configure: Regenerate. 161 1622012-09-14 David Edelsohn <dje.gcc@gmail.com> 163 164 * configure: Regenerated. 165 1662012-05-29 Joseph Myers <joseph@codesourcery.com> 167 168 * lto-plugin.c: Fix typo. 169 1702012-05-16 H.J. Lu <hongjiu.lu@intel.com> 171 172 * configure: Regenerated. 173 1742012-02-22 Kai Tietz <ktietz@redhat.com> 175 176 PR lto/50616 177 * lto-plugin.c (PRI_LL): New macro. 178 (dump_symtab): Use PRI_LL instead of ll in print. 179 (process_symtab): Use PRI_LL instead of ll in scan. 180 1812011-12-20 Andreas Schwab <schwab@linux-m68k.org> 182 183 * configure: Regenerate. 184 1852011-12-19 Andreas Schwab <schwab@linux-m68k.org> 186 187 * configure: Regenerate. 188 1892011-11-21 Andreas Tobler <andreast@fgznet.ch> 190 191 * configure: Regenerate. 192 1932011-10-02 Jan Hubicka <jh@suse.cz> 194 195 PR lto/47247 196 * lto-plugin.c (get_symbols_v2): New variable. 197 (write_resolution): Use V2 API when available. 198 (onload): Handle LDPT_GET_SYMBOLS_V2. 199 2002011-09-30 H.J. Lu <hongjiu.lu@intel.com> 201 Andi Kleen <ak@linux.intel.com> 202 203 PR lto/50568 204 * lto-plugin.c (sym_aux): Change id to unsigned long long. 205 (plugin_symtab): Likewise. 206 (dump_symtab): Likewise. 207 (resolve_conflicts): Likewise. 208 (process_symtab): Likewise. 209 2102011-08-10 Richard Guenther <rguenther@suse.de> 211 212 PR bootstrap/49907 213 lto-plugin/ 214 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence. 215 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror. 216 * configure: Regenerate. 217 * Makefile.in: Likewise. 218 * aclocal.m4: Likewise. 219 2202011-04-20 Jim Meyering <meyering@redhat.com> 221 222 * lto-plugin.c (free_1, free_2): Remove useless if-before-free. 223 2242011-04-05 Richard Guenther <rguenther@suse.de> 225 226 PR bootstrap/48431 227 * lto-plugin.c (claim_file_handler): Do not declare vars in code. 228 2292011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 230 231 * Makefile.in: Regenerate. 232 * aclocal.m4: Regenerate. 233 * configure: Regenerate. 234 2352011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 236 237 * Makefile.am (all-local): Rename from 'all'. 238 * Makefile.in: Regenerate. 239 2402011-02-12 Alexandre Oliva <aoliva@redhat.com> 241 242 PR lto/47225 243 * Makefile.am (gcc_build_dir, in_gcc_libs): New. 244 (liblto_plugin_la_LDFLAGS): Add -module. 245 (copy_lto_plugin): Renamed to... 246 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying 247 of static modules. 248 * Makefile.in: Rebuild. 249 2502011-02-07 Kai Tietz <kai.tietz@onevision.com> 251 252 PR lto/47225 253 * Makefile.am (Wc): New helper for encoding -Wc,. 254 (liblto_plugin_la_LIBADD): Use Wc for libiberty library. 255 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty. 256 * Makefile.in: Regenerated. 257 2582011-02-07 Paolo Bonzini <bonzini@gnu.org> 259 260 Revert: 261 262 2011-02-07 Kai Tietz <kai.tietz@onevision.com> 263 264 PR lto/47225 265 * Makefile.am (Wl): New helper for encoding -Wl,. 266 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library. 267 * Makefile.in: Regenerated. 268 2692011-02-07 Kai Tietz <kai.tietz@onevision.com> 270 271 PR lto/47225 272 * Makefile.am (Wl): New helper for encoding -Wl,. 273 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library. 274 * Makefile.in: Regenerated. 275 2762011-01-25 Ian Lance Taylor <iant@google.com> 277 278 * lto-plugin.c (gold_version): New static variable. 279 (all_symbols_read_handler): Don't check pass_through_items if 280 using gold 1.11 or later. 281 (onload): Set gold_version if we see LDPT_GOLD_VERSION. 282 2832011-01-12 Richard Guenther <rguenther@suse.de> 284 285 PR lto/47264 286 * lto-plugin.c (parse_table_entry): Use memcpy to access 287 unaligned fields. 288 2892010-12-20 Dave Korn <dave.korn.cygwin@gmail.com> 290 291 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag. 292 * Makefile.in: Regenerate. 293 2942010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 295 296 Revert last change. 297 2982010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 299 300 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define. 301 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty. 302 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty. 303 * Makefile.in: Regenerate. 304 3052010-12-10 Dave Korn <dave.korn.cygwin@gmail.com> 306 307 PR middle-end/46674 308 PR lto/43157 309 * configure.ac (SYM_STYLE): Don't AC_DEFINE. 310 * lto-plugin.c (sym_style): Don't use it; default to ss_none. 311 * configure: Regenerate. 312 * config.h.in: Likewise. 313 3142010-12-06 Dave Korn <dave.korn.cygwin@gmail.com> 315 316 PR target/40125 317 PR lto/46695 318 * configure.ac: Invoke ACX_LT_HOST_FLAGS. 319 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but 320 override -bindir setting. 321 * aclocal.m4: Regenerate. 322 * configure: Regenerate. 323 * Makefile.in: Regenerate. 324 3252010-12-05 Kai Tietz <kai.tietz@onevision.com> 326 327 * config.h.in: Regenerated. 328 * configure: Regenerated. 329 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT. 330 * lto-plugin.c (WIFEXITED): Define default. 331 (WEXITSTATUS): Likeiwse. 332 3332010-12-01 Kai Tietz <kai.tietz@onevision.com> 334 335 * config.h.in: Regenerated. 336 * configure: Regenerated. 337 * Makefile.in: Regenerated. 338 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h. 339 * lto-plugin.c: Include sys/wait.h conditionally. 340 * aclocal.m4: Regenerated. 341 3422010-11-13 Kai Tietz <kai.tietz@onevision.com> 343 344 * lto-plugin.c (add_output_files): Fix memory leak. 345 3462010-11-11 Dave Korn <dave.korn.cygwin@gmail.com> 347 348 PR bootstrap/46397 349 PR bootstrap/46362 350 * configure.ac: Add AC_TYPE_INT64_T test. 351 * config.h.in: Regenerate. 352 * configure: Likewise. 353 * lto-plugin.c (debug): Use char not bool. 354 (nop): Likewise. 355 (check_1): Rename from check, and use int not bool for gate argument. 356 (check): Macro wrapper for the above to coerce gate argument into 357 boolean-valued integer in case it has pointer type. 358 (parse_table_entry): Use 0 not false. 359 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size 360 into two 32-bit parts and printing as hex ints. 361 3622010-11-03 Dave Korn <dave.korn.cygwin@gmail.com> 363 364 PR lto/46291 365 * lto-plugin.c (claim_file_handler): Don't close file descriptor. 366 3672010-11-03 Dave Korn <dave.korn.cygwin@gmail.com> 368 369 PR lto/46273 370 * lto-plugin.h: Delete. 371 * lto-plugin-elf.c: Likewise. 372 * lto-plugin-coff.c: Likewise. 373 * configure.ac: Don't use libelf, don't source config.gcc. 374 (LIBELFLIBS): Delete. 375 (LIBELFINC): Delete. 376 (LTO_FORMAT): Delete. 377 (SYM_STYLE): Add AC_DEFINE var, set based on $target. 378 (config.h): Add AC_CONFIG_HEADERS directive. 379 * Makefile.am (LIBELFLIBS): Delete. 380 (LIBELFINC): Delete. 381 (LTO_FORMAT): Delete. 382 (DEFS): Import. 383 (AM_CPPFLAGS): Use it. Don't use LIBELFINC. 384 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include 385 any object-format-specific source file in the link. 386 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS. 387 * config.h.in: Generate. 388 * configure: Regenerate. 389 * Makefile.in: Likewise. 390 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h. 391 (LTO_SEGMENT_NAME): New definition. 392 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h. 393 (LTO_SECTION_PREFIX_LEN): New definition. 394 (struct sym_aux): Struct definition moved here from lto-plugin.h. 395 (struct plugin_symtab): Likewise. 396 (struct plugin_objfile): Likewise. 397 (struct plugin_objfile): New struct def. 398 (enum symbol_style): New enum type. 399 (add_symbols): Make static. 400 (claimed_files): Likewise. 401 (num_claimed_files): Likewise. 402 (sym_style): New global. 403 (check): Make static. 404 (parse_table_entry): Likewise. Respect sym_style when extracting 405 symbol from symtab entry. 406 (translate): Make static. 407 (resolve_conflicts): Likewise. 408 (process_symtab): New function, per-section callback version of 409 old object-format-specific handling from deleted lto-plugin-elf.c. 410 (claim_file_handler): Convert ELF-specific version from deleted 411 lto-plugin-elf.c to simple_object interface and move here. 412 (process_options): Allow new '-sym-style=' option. 413 (onload): Don't call deleted onload_format_checks hook. 414 4152010-10-11 Kai Tietz <kai.tietz@onevision.com> 416 417 * lto-plugin.c (dump_symtab): Correct printf argument type. 418 (finish_conflict_resolution): Initialize resolution. 419 4202010-10-08 H.J. Lu <hongjiu.lu@intel.com> 421 422 PR bootstrap/45951 423 * configure.ac: Add AC_CANONICAL_SYSTEM. 424 * configure: Regenerated. 425 4262010-10-07 Dave Korn <dave.korn.cygwin@gmail.com> 427 428 * configure.ac: Source config.gcc to determine lto_binary_reader. 429 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader. 430 * Makefile.am (LTO_FORMAT): Import. 431 (liblto_plugin_la_SOURCES): Add object format dependent module 432 defined by LTO_FORMAT. 433 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty, 434 and work around libtool warning. 435 * configure: Regenerate. 436 * Makefile.in: Likewise. 437 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h. 438 (struct sym_aux): Likewise. 439 (struct plugin_symtab): Likewise. 440 (struct plugin_file_info): Likewise. 441 (LTO_SECTION_PREFIX): Likewise. 442 (add_symbols): Make non-static. 443 (claimed_files): Likewise. 444 (num_claimed_files): Likewise. 445 (check): Likewise. 446 (parse_table_entry): Likewise. 447 (translate): Likewise. 448 (resolve_conflicts): Likewise. 449 (process_symtab): Move to new lto-plugin-elf.c object format dependent 450 source file. 451 (claim_file_handler): Likewise, and make non-static. 452 (onload): Call new onload_format_checks function. 453 * lto-plugin.h: New file. 454 (LTO_SECTION_PREFIX): Move here. 455 (struct sym_aux): Likewise. 456 (struct plugin_symtab): Likewise. 457 (struct plugin_file_info): Likewise. 458 (claim_file_handler): Add new function prototype. 459 (onload_format_checks): Likewise. 460 (check): Declare extern. 461 (translate): Likewise. 462 (parse_table_entry): Likewise. 463 (resolve_conflicts): Likewise. 464 (add_symbols): Likewise. 465 (claimed_files): Likewise. 466 (num_claimed_files): Likewise. 467 * lto-plugin-elf.c (process_symtab): Move here. 468 (claim_file_handler): Likewise, and make non-static. 469 (onload_format_checks): New function factored out from onload. 470 * lto-plugin-coff.c (claim_file_handler): New function stub. 471 (onload_format_checks): Likewise. 472 4732010-08-05 Andi Kleen <ak@linux.intel.com> 474 475 * lto-plugin.c: Include <hashtab.h> 476 (sym_aux): Add next_conflict field to save conflict chains. 477 (plugin_file_info): Add conflicts symtab. 478 (parse_table_entry): Initialize aux->next_conflict. 479 (process_symtab): Increment found. 480 (dump_symtab): Add. 481 (finish_conflict_resolution): Add. 482 (free_symtab): Add. 483 (write_resolution): Remove symbols loop and move into 484 dump_symtab. Call dump_symtab for main symbol and conflicts table. 485 Call free_symtab to free conflicts table. 486 (SWAP): Add. 487 (eq_sym): Add. 488 (hash_sym): Add. 489 (symbol_strength): Add. 490 (resolve_conflicts): Add. 491 (claim_file_handler): Add n variable. Check return value of 492 process_symtab. Call resolve_conflicts. 493 4942010-07-27 Andi Kleen <ak@linux.intel.com> 495 496 * lto-plugin.c (translate): Remove debug fprintf. 497 4982010-07-23 H.J. Lu <hongjiu.lu@intel.com> 499 500 PR bootstrap/45042 501 * lto-plugin.c (translate): Cast to unsigned long. 502 5032010-07-23 Andi Kleen <ak@linux.intel.com> 504 505 PR lto/44992 506 * lto-plugin.c (sym_aux): Add. 507 (plugin_symtab): Remove slots. Add aux and id. 508 (parse_table_entry): Change to use aux instead of slots. 509 (LTO_SECTION_PREFIX): Add. 510 (translate): Improve buffer allocation. Change to append 511 symbols to existing out buffer. 512 (get_section): Remove. 513 (process_symtab): Add. 514 (free_2): Free symtab->aux. 515 (write_resolution): Handle aux instead of slots. 516 Print sub id to resolution file. 517 (claim_file_handler): Clear lto_file. Replace get_symtab/translate 518 calls with call to process_symtab. 519 5202010-07-22 Richard Guenther <rguenther@suse.de> 521 522 * Makefile.am: New copy_lto_plugin rule to install the plugin 523 into ../gcc. 524 * Makefile.in: Regenerated. 525 5262010-05-21 Richard Guenther <rguenther@suse.de> 527 528 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL. 529 5302010-05-07 Richard Guenther <rguenther@suse.de> 531 532 * lto-plugin.c (free_2): Do not free resolution_file. 533 (write_resolution): Check that we were passed a resolution file. 534 (all_symbols_read_handler): Adjust. 535 (cleanup_handler): Do not remove the resolution file. 536 (process_option): Handle -fresolution=. 537 5382010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 539 540 PR other/43620 541 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. 542 * Makefile.in: Regenerate. 543 5442010-04-23 Richard Guenther <rguenther@suse.de> 545 546 PR lto/41550 547 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc. 548 (translate): Likewise. 549 (all_symbols_read_handler): Likewise. 550 (claim_file_handler): Likewise. 551 (process_option): Likewise. 552 (add_output_files): Likewise. Remove filename length limit. 553 5542010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 555 556 * Makefile.in: Regenerate. 557 * aclocal.m4: Regenerate. 558 5592010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com> 560 561 PR lto/43336 562 * lto-plugin.c (cleanup_handler): Delete temporary output files. 563 5642010-01-11 Richard Guenther <rguenther@suse.de> 565 566 PR lto/41569 567 * Makefile.am: Disable dependencies. 568 * Makefile.in: Regenerated. 569 5702010-01-03 H.J. Lu <hongjiu.lu@intel.com> 571 572 PR lto/42520 573 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command 574 if -v is passed. 575 5762009-12-05 H.J. Lu <hongjiu.lu@intel.com> 577 578 PR bootstrap/42306 579 * configure: Regenerated. 580 * Makefile.in: Likewise. 581 5822009-11-19 Rafael Avila de Espindola <espindola@google.com> 583 584 PR bootstrap/42096 585 * lto-plugin.c (claim_file_handler): Print offsets in hex. 586 5872009-11-12 Rafael Avila de Espindola <espindola@google.com> 588 589 * lto-plugin.c (write_resolution): Assume resolution_file is set. 590 Print the symbol name. 591 (all_symbols_read_handler): Create a resolution file. 592 Pass it to gcc. 593 (cleanup_handler): Remove the resolution file. 594 (process_option): Drop the -resolution option. 595 5962009-11-05 Rafael Avila de Espindola <espindola@google.com> 597 598 * lto-plugin.c (temp_obj_dir_name): Remove. 599 (arguments_file_name): New. 600 (free_2): Free arguments_file_name instead of temp_obj_dir_name. 601 (exec_lto_wrapper): Create arguments file with make_temp_file. 602 (cleanup_handler): Don't remove the temporary directory. Remove the 603 arguments file. 604 (onload): Don't create the temporary directory. 605 6062009-11-04 Richard Guenther <rguenther@suse.de> 607 Rafael Avila de Espindola <espindola@google.com> 608 609 * lto-plugin.c (plugin_file_info): Remove temp field. 610 (cleanup_handler): Don't delete temporary objects. 611 (claim_file_handler): Don't create temporary objects. 612 6132009-11-04 Rafael Avila de Espindola <espindola@google.com> 614 615 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging. 616 6172009-10-30 Rafael Avila de Espindola <espindola@google.com> 618 619 PR41871 620 * lto-plugin.c (claim_file_handler): Close files that we created. 621 6222009-10-28 Rafael Avila de Espindola <espindola@google.com> 623 624 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of 625 LDPL_ERROR 626 6272009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com> 628 629 PR lto/41652 630 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT. 631 * configure: Regenerate. 632 6332009-10-26 Richard Guenther <rguenther@suse.de> 634 635 * configure.ac: Use AM_MAINTAINER_MODE. 636 * acinclude.m4: Remove. 637 * configure: Re-generate. 638 * Makefile.in: Likewise. 639 * aclocal.m4: Likewise. 640 6412009-10-19 Rafael Avila de Espindola <espindola@google.com> 642 643 PR40790 644 * configure: Regenerate. 645 * configure.ac: Add AC_TYPE_UINT64_T. 646 6472009-10-16 Rafael Avila de Espindola <espindola@google.com> 648 649 * lto-plugin.c (message): New variable. 650 (check): New function. 651 (parse_table_entry, translate, write_resolution,add_output_files, 652 exec_lto_wrapper,claim_file_handler, onload): Use check instead of 653 assert. 654 (cleanup_handler): Use check instead of assert. Remove the arguments 655 file if it exists. 656 6572009-10-15 Rafael Avila de Espindola <espindola@google.com> 658 659 * lto-plugin.c (resolution_file): New. 660 (free_1): Update comment. 661 (free_2): Free resolution_file. 662 (write_resolution): Write resolution to specified file. Use the 663 syms array from the symbol table. 664 (all_symbols_read_handler): Delay call to free_1 past call to 665 write_resolution. 666 (process_option): Add a -resolution option. 667 6682009-10-13 Richard Guenther <rguenther@suse.de> 669 670 * Makefile.am (liblto_plugin_la_LIBADD): Link against the 671 correct libiberty. 672 * Makefile.in: Regenerated. 673 6742009-10-08 Rafael Avila de Espindola <espindola@google.com> 675 676 * lto-plugin.c (add_input_library): New. 677 (all_symbols_read_handler): Use add_input_library for items that 678 start with -l. 679 (process_option): Fit in 80 columns. 680 (onload): Handle LDPT_ADD_INPUT_LIBRARY. 681 6822009-10-02 Diego Novillo <dnovillo@google.com> 683 684 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE 685 and -D_FILE_OFFSET_BITS=64. 686 * configure.ac: Add AC_SYS_LARGEFILE. 687 * configure: Regenerate. 688 * Makefile.in: Regenerate. 689 * lto-plugin.c: Fix copyright boilerplate. 690 6912009-10-02 Diego Novillo <dnovillo@google.com> 692 693 * Makefile.am (ACLOCAL_AMFLAGS): Define. 694 * aclocal.m4: Regenerate with aclocal-2.64 695 * acinclude.m4: Remove. 696 * Makefile.in: Regenerate with automake-1.11 697 * configure.ac (AC_PREREQ): Update to 2.64. 698 * configure: Regenerate. 699 7002009-10-02 Diego Novillo <dnovillo@google.com> 701 702 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE 703 and -D_FILE_OFFSET_BITS=64. 704 * configure.ac: Add AC_SYS_LARGEFILE. 705 * configure: Regenerate. 706 * Makefile.in: Regenerate. 707 * lto-plugin.c: Fix copyright boilerplate. 708 7092009-10-02 Diego Novillo <dnovillo@google.com> 710 711 * Makefile.am (ACLOCAL_AMFLAGS): Define. 712 * aclocal.m4: Regenerate with aclocal-2.64 713 * acinclude.m4: Remove. 714 * Makefile.in: Regenerate with automake-1.11 715 * configure.ac (AC_PREREQ): Update to 2.64. 716 * configure: Regenerate. 717 7182009-10-02 Rafael Avila de Espindola <espindola@google.com> 719 720 * Makefile.am (liblto_plugin_la_SOURCES): Remove 721 $(top_srcdir)/../gcc/lto/common.c 722 * Makefile.in: Regenerate. 723 7242009-10-01 Rafael Avila de Espindola <espindola@google.com> 725 726 * lto-plugin.c (pass_through_items): New. 727 (num_pass_through_items): New. 728 (all_symbols_read_handler): Update to use the -pass-through option. 729 (process_option): Replace -libgcc with -pass-through. 730 7312009-09-30 Rafael Avila de Espindola <espindola@google.com> 732 733 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require 734 register_cleanup to be set. 735 7362009-09-30 Rafael Avila de Espindola <espindola@google.com> 737 738 * Makefile.am: Remove all reference to ltosymtab. 739 * Makefile.in: Regenerate. 740 * lto-symtab.c: Remove. 741 7422009-05-21 Diego Novillo <dnovillo@google.com> 743 744 * configure.ac: Remove call to AC_CHECK_GELF. 745 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC. 746 * acinclude.m4: Do not include ../config/libelf.m4 747 * Makefile.am (LIBELFLIBS): Define. 748 (LIBELFINC): Define. 749 (AM_CPPFLAGS): Add $(LIBELFINC). 750 (ltosymtab_LDADD): Add $(LIBELFLIBS). 751 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS) 752 * lto-plugin.c: Always include <gelf.h> 753 * lto-symtab.c: Likewise. 754 * configure: Regenerate. 755 * Makefile.in: Regenerate. 756 7572009-03-23 Rafael Avila de Espindola <espindola@google.com> 758 759 * lto-plugin.c (libgcc_filename): New. 760 (all_symbols_read_handler): Pass libgcc to the linker. 761 (all_symbols_read_handler): Parse -libgcc 762 7632009-02-05 Rafael Avila de Espindola <espindola@google.com> 764 765 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty. 766 * Makefile.in: Regenerate. 767 * lto-plugin.c (add_output_files): Argument is now a FILE. 768 (exec_lto_wrapper): Use writeargv and pex. 769 7702009-02-04 Rafael Avila de Espindola <espindola@google.com> 771 772 Revert: 773 2009-02-04 Rafael Avila de Espindola <espindola@google.com> 774 * lto-plugin.c (exec_lto_wrapper): Use writeargv. 775 776 7772009-02-04 Rafael Avila de Espindola <espindola@google.com> 778 779 * lto-plugin.c (exec_lto_wrapper): Use writeargv. 780 7812009-01-29 Rafael Avila de Espindola <espindola@google.com> 782 783 * lto-plugin.c: Include libiberty.h. 784 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of 785 snprintf. 786 7872009-01-29 Rafael Avila de Espindola <espindola@google.com> 788 789 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that 790 file to lto-wrapper. 791 7922009-01-28 Rafael Avila de Espindola <espindola@google.com> 793 794 * lto-plugin.c (plugin_file_info): Remove fd and elf. 795 (parse_table_entry): strdup entry->name and entry->comdat_key. 796 (free_1): Free name and comdat_key. Don't close the file. Don't call 797 elf_end. 798 (claim_file_handler): Always call elf_end. 799 8002008-12-23 Rafael Avila de Espindola <espindola@google.com> 801 802 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE 803 -D_FILE_OFFSET_BITS=64 804 * Makefile.in: Regenerate 805 8062008-12-22 Rafael Avila de Espindola <espindola@google.com> 807 808 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New. 809 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES. 810 * Makefile.in: Regenerate. 811 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4 812 * configure: Regenerate. 813 * configure.ac: Add AC_SUBST(target_noncanonical). 814 8152008-12-08 Rafael Avila de Espindola <espindola@google.com> 816 817 * lto-plugin.c: Include stdbool.h. 818 (debug, nop): Declare as bool. 819 8202008-12-08 Rafael Avila de Espindola <espindola@google.com> 821 822 * lto-plugin.c (nop): New. 823 (use_original_files): New. 824 (all_symbols_read_handler): Call use_original_files if nop is true. 825 (process_option): Parse the -nop option. 826 8272008-12-08 Rafael Avila de Espindola <espindola@google.com> 828 829 * lto-plugin.c (debug): New. 830 (exec_lto_wrapper): Print argv if debug is true. 831 (process_option): Process the -debug command line option. 832 8332008-12-03 Rafael Avila de Espindola <espindola@google.com> 834 835 * lto-plugin.c (process_option): The argument is now a single option, 836 not a space separated list. 837 8382008-12-02 Rafael Avila de Espindola <espindola@google.com> 839 840 * lto-plugin.c: Include sys/types.h and sys/wait.h 841 (output_files, num_output_files, lto_wrapper_argv, 842 lto_wrapper_num_args): New. 843 (free_2): Free output_files. 844 (write_resolution): Disable. 845 (add_output_files): New. 846 (exec_lto_wrapper): New. 847 (all_symbols_read_handler): Run lto-wrapper. 848 (claim_file_handler): Free lto_file.name and call elf_end. 849 (process_option): New. 850 8512008-11-26 Rafael Espindola <espindola@google.com> 852 853 * lto-plugin.c (add_input_file): New. 854 (get_section): Return NULL if get_section fails. 855 (write_resolution): New. 856 (all_symbols_read_handler): Call add_input_file. 857 (claim_file_handler): Unlink the correct file. 858 (onload): Record add_input_file. 859 8602008-09-23 Rafael Espindola <espindola@google.com> 861 862 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES): 863 Update the location of common.c. 864 * Makefile.in: Regenerate. 865 * common.c: Moved to gcc/lto. 866 * common.h: Moved to gcc/lto. 867 * lto-plugin.c: Update the location of common.h. 868 * lto-symtab.c: Update the location of common.h. 869 8702008-09-23 Rafael Espindola <espindola@google.com> 871 872 * common.c: Include common.h. 873 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit 874 sizes. 875 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use 876 explicit sizes. 877 8782008-09-23 Rafael Espindola <espindola@google.com> 879 880 * lto-plugin.c (plugin_file_info): Add temp. 881 (cleanup_handler): Only delete temporary files. 882 (claim_file_handler): Initialize lto_file.temp. 883 8842008-09-23 Rafael Espindola <espindola@google.com> 885 886 * plugin-api.h: Moved to include. 887 8882008-09-23 Rafael Espindola <espindola@google.com> 889 890 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new 891 format. 892 8932008-09-22 Rafael Espindola <espindola@google.com> 894 895 * plugin-api.h: Copy from binutils' cvs. 896 8972008-09-22 Rafael Espindola <espindola@google.com> 898 899 * lto-symtab.c (get_symbols, add_symbols): Update signature. 900 * plugin-api.h: Copy from binutils' cvs. 901 9022008-09-22 Rafael Espindola <espindola@google.com> 903 904 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): 905 Make extern 906 9072008-09-10 Rafael Espindola <espindola@google.com> 908 909 * lto-plugin.c (onload): add missing break statements and asserts. 910 * lto-symtab.c (claim_file_handler): Make it static. 911 (all_symbols_read_handler): Make it static. 912 (all_file_handles): Make it static. 913 (num_file_handles): Make it static. 914 (register_claim_file): Make it static. 915 (register_object): Indent properly. 916 9172008-09-10 Rafael Avila de Espindola <espindola@google.com> 918 919 * Makefile.am (ltosymtab_LDADD): Add -lelf. 920 * Makefiel.in: Regenerate. 921 * lto-plugin.c: Include ar.h. 922 (claim_file_handler): Handle file->offset != 0. 923 * lto-symtab.c: Include gelf.h. 924 (all_file_handles): Change type. 925 (register_object): New. 926 (register_file): Add support for archives. 927 (resolve): Update to new type of all_file_handles. 928 (print): Update to new type of all_file_handles. 929 (free_all): Update to new type of all_file_handles. 930 (main): Update to new type of all_file_handles. 931 9322008-09-10 Rafael Avila de Espindola <espindola@google.com> 933 934 * lto-plugin.c (get_string_table): Remove. 935 (get_section): Use elf_strptr instead of get_string_table. 936 9372008-09-08 Doug Kwan <dougkwan@google.com> 938 939 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments 940 to 64-bit to fix a 32-bit bootstrap failure due to format warnings. 941 9422008-09-08 Rafael Avila de Espindola <espindola@google.com> 943 944 * Makefile.am (ltosymtab_SOURCES): add common.c. 945 (ltosymtab_CFLAGS): New. 946 (liblto_plugin_la_SOURCES): Add common.c. 947 * Makefile.in: Regenerate. 948 * common.c: New. 949 * common.h: New. 950 * lto-plugin.c: Include stdio.h, inttypes.h and common.h. 951 (plugin_symtab): New. 952 (plugin_file_info): New. 953 (register_all_symbols_read): New. 954 (get_symbols): New. 955 (claimed_files): New. 956 (num_claimed_files): New. 957 (translate): Don't drop the slot number. 958 (free_1): New. 959 (free_2): New. 960 (all_symbols_read_handler): New. 961 (claim_file_handler): Record every claimed file. 962 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and 963 LDPT_GET_SYMBOLS. 964 * lto-symtab.c: Include stdlib.h, string.h and common.h. 965 (current_file_handle): Remove. 966 (ld_plugin_all_symbols_read_handler): New. 967 (plugin_handle): New. 968 (file_handle): New. 969 (all_file_handles): New. 970 (num_file_handles): New. 971 (get_symbols): New. 972 (register_all_symbols_read): New. 973 (add_symbols): Don't print the symbols, just record them. 974 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and 975 LDPT_GET_SYMBOLS. 976 (load_plugin): Use plugin_handle. 977 (register_file): Add the file handle to all_file_handles. 978 (resolve): New. 979 (print): New. 980 (unload_plugin): New. 981 (free_all): New. 982 (main): Call all_symbols_read_handler and free resources. 983 9842008-09-03 Rafael Avila de Espindola <espindola@google.com> 985 986 * Makefile.am (AM_CFLAGS): New. 987 (ltosymtab_LDADD): Remove -lelf. Add -ldl. 988 (lib_LTLIBRARIES): New. 989 (liblto_plugin_la_SOURCES): New. 990 (liblto_plugin_la_LIBADD): New. 991 * Makefile.in: Regenerate. 992 * acinclude.m4: Don't include ../config/acx.m4 and 993 ../config/no-executables.m4. 994 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and 995 ../libtool.m4. 996 * aclocal.m4: Regenerate. 997 * configure: Regenerate. 998 * configure.ac: Use AM_PROG_LIBTOOL. 999 * lto-plugin.c: New. 1000 * lto-symtab.c: Rewrite to use the plugin. 1001 * plugin-api.h: New. 1002 10032008-08-25 Rafael Avila de Espindola <espindola@google.com> 1004 1005 * configure: Regenerate. 1006 * configure.ac: Use AC_CHECK_GELF. 1007 * lto-symtab.c: Include gelf.h. 1008 (get_string_table): Use size independent API. 1009 (printTable): Use lld to print 64 bit integers. 1010 10112008-08-22 Rafael Avila de Espindola <espindola@google.com> 1012 1013 * lto-symtab.c (parse_table_entry): Assert entry->kind and 1014 entry->visibility are valid. 1015 10162008-07-22 Rafael Avila de Espindola <espindola@google.com> 1017 * lto-symtab.c (table_entry): Add comdat. 1018 (parse_table_entry): Read comdat. 1019 10202008-08-21 Rafael Espindola <espindola@google.com> 1021 1022 * Makefile.am: New. 1023 * Makefile.in: New. 1024 * acinclude.m4: New. 1025 * aclocal.m4: New. 1026 * configure: New. 1027 * configure.ac: New. 1028 * lto-symtab.c: New. 1029