ChangeLog revision 1.1.1.20
12023-07-07 Release Manager 2 3 * GCC 10.5.0 released. 4 52022-06-28 Release Manager 6 7 * GCC 10.4.0 released. 8 92021-04-08 Release Manager 10 11 * GCC 10.3.0 released. 12 132020-09-09 Nick Clifton <nickc@redhat.com> 14 15 * lto-plugin.c (struct plugin_symtab): Add last_sym field. 16 (parse_symtab_extension): Only read as many entries as are 17 available in the buffer. Store the data read into the symbol 18 table indexed from last_sym. Increment last_sym. 19 202020-07-23 Release Manager 21 22 * GCC 10.2.0 released. 23 242020-06-22 H.J. Lu <hjl.tools@gmail.com> 25 26 Backported from master: 27 2020-05-12 H.J. Lu <hjl.tools@gmail.com> 28 29 PR bootstrap/94998 30 * configure: Regenerated. 31 322020-05-07 Release Manager 33 34 * GCC 10.1.0 released. 35 362020-04-28 H.J. Lu <hongjiu.lu@intel.com> 37 38 PR bootstrap/94739 39 * configure: Regenerated. 40 412020-04-25 H.J. Lu <hongjiu.lu@intel.com> 42 43 PR bootstrap/94739 44 * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS). 45 * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and 46 AC_SUBST(CET_HOST_FLAGS). 47 * Makefile.in: Regenerated. 48 * aclocal.m4: Likewise. 49 * configure: Likewise. 50 512020-03-19 Martin Liska <mliska@suse.cz> 52 53 * lto-plugin.c (LTO_SECTION_PREFIX): Rename to ... 54 (LTO_SYMTAB_PREFIX): ... this. 55 (LTO_SECTION_PREFIX_LEN): Rename to ... 56 (LTO_SYMTAB_PREFIX_LEN): ... this. 57 (LTO_SYMTAB_EXT_PREFIX): New. 58 (LTO_SYMTAB_EXT_PREFIX_LEN): New. 59 (LTO_LTO_PREFIX): New. 60 (LTO_LTO_PREFIX_LEN): New. 61 (parse_table_entry): Fill up unused to zero. 62 (parse_table_entry_extension): New. 63 (parse_symtab_extension): New. 64 (finish_conflict_resolution): Change type 65 for resolution. 66 (process_symtab): Use new macro name. 67 (process_symtab_extension): New. 68 (claim_file_handler): Parse also process_symtab_extension. 69 (onload): Call new add_symbols_v2. 70 712020-01-01 Jakub Jelinek <jakub@redhat.com> 72 73 Update copyright years. 74 752019-09-27 Maciej W. Rozycki <macro@wdc.com> 76 77 * configure: Regenerate. 78 792019-05-15 Iain Sandoe <iain@sandoe.co.uk> 80 81 * lto-plugin.c (cleanup_handler): Remove unused var. 82 832019-05-15 Iain Sandoe <iain@sandoe.co.uk> 84 85 * lto-plugin.c (exec_lto_wrapper): Make the wrapper 86 arguments filename more user-friendly. 87 (file_exists, maybe_unlink): New. 88 (cleanup_handler): Use maybe unlink to handle the 89 case when temps should be saved. 90 (process_option): Look for -v, ���-version, -save-temps. 91 (onload): Record the linker output file name. 92 Check for -v, ���-version, -save-temps in the GCC collect 93 options environment. 94 952019-02-26 Martin Liska <mliska@suse.cz> 96 97 * lto-symtab.c: Remove. 98 992019-01-01 Jakub Jelinek <jakub@redhat.com> 100 101 Update copyright years. 102 1032018-10-31 Joseph Myers <joseph@codesourcery.com> 104 105 PR bootstrap/82856 106 * configure.ac: Remove AC_PREREQ. Use AC_LANG_SOURCE. 107 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate. 108 1092018-05-30 Jan Hubicka <jh@suse.cz> 110 111 * lto-plugin.c: (non_claimed_files): New static var. 112 (linker_ouput_known): New static var. 113 (all_symbols_read_handler): When user specifies linker output do not 114 imply it; output warning when nonlto-rel mode is forced. 115 (claim_file_header): Record number of nonclaimed files. 116 (process_option): Remember if linker output is known 117 1182018-04-18 David Malcolm <dmalcolm@redhat.com> 119 120 PR jit/85384 121 * configure: Regenerate. 122 1232018-01-03 Jakub Jelinek <jakub@redhat.com> 124 125 Update copyright years. 126 1272017-07-21 Georg-Johann Lay <avr@gjlay.de> 128 129 PR lto/81487 130 * lto-plugin.c (claim_file_handler): Use xasprintf instead of 131 asprintf. 132 [hi!=0]: Swap hi and lo arguments supplied to xasprintf. 133 1342017-01-17 Jakub Jelinek <jakub@redhat.com> 135 136 PR other/79046 137 * configure.ac: Add GCC_BASE_VER. 138 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to 139 get version from BASE-VER file. 140 * configure: Regenerated. 141 * Makefile.in: Regenerated. 142 1432017-01-04 Jakub Jelinek <jakub@redhat.com> 144 145 Update copyright years. 146 1472016-11-15 Matthias Klose <doko@ubuntu.com> 148 149 * configure: Regenerate. 150 1512016-02-25 Ilya Verbin <ilya.verbin@intel.com> 152 153 PR driver/68463 154 * lto-plugin.c (struct plugin_offload_file): New. 155 (offload_files): Change type. 156 (offload_files_last, offload_files_last_obj): New. 157 (offload_files_last_lto): New. 158 (free_2): Adjust accordingly. 159 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr. 160 Don't call free_1 for offload_files. Write names of object files with 161 offloading to the temporary file. Add new option to lto_arg_ptr. 162 (claim_file_handler): Don't claim file if it contains offload sections 163 without LTO sections. If it contains offload sections, add to the list. 164 1652016-01-15 Martin Liska <mliska@suse.cz> 166 167 * lto-plugin.c (all_symbols_read_handler): Assign default 168 value to a string variable. 169 1702015-11-25 Jan Hubicka <jh@suse.cz> 171 172 PR lto/67548 173 * lto-plugin.c (linker_output, linker_output_set): New statics. 174 (all_symbols_read_handler): Add -flinker-output option. 175 (onload): Record linker_output info. 176 1772015-07-02 Uros Bizjak <ubizjak@gmail.com> 178 179 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS. 180 * configure: Regenerate. 181 * config.h.in: Ditto. 182 1832015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> 184 185 * Makefile.am: Drop 'by automake version' from top-level comment. 186 * Makefile.in: Regenerated with automake-1.11.6. 187 * aclocal.m4: Likewise. 188 * configure: Likewise. 189 1902015-02-06 H.J. Lu <hongjiu.lu@intel.com> 191 192 * lto-plugin.c (release_input_file): Removed. 193 (claim_file_handler): Don't call release_input_file. 194 (onload): Don't set release_input_file. 195 1962015-02-05 H.J. Lu <hongjiu.lu@intel.com> 197 198 * lto-plugin.c (claim_file_handler): Pass handle to 199 release_input_file. 200 2012015-02-05 H.J. Lu <hongjiu.lu@intel.com> 202 203 * lto-plugin.c (claim_file_handler): Call release_input_file only 204 if file is claimed. 205 2062015-01-28 H.J. Lu <hongjiu.lu@intel.com> 207 208 * lto-plugin.c (claim_file_handler): Call release_input_file only 209 if it is not NULL. 210 2112015-01-28 H.J. Lu <hongjiu.lu@intel.com> 212 213 PR lto/64837 214 * lto-plugin.c (release_input_file): New. 215 (claim_file_handler): Call release_input_file. 216 (onload): Set release_input_file. 217 2182014-12-09 Ilya Verbin <ilya.verbin@intel.com> 219 220 * lto-plugin.c (offload_files, num_offload_files): New static variables. 221 (free_1): Use arguments instead of global variables. 222 (free_2): Free offload_files. 223 (all_symbols_read_handler): Add names from offload_files to lto-wrapper 224 arguments. 225 (claim_file_handler): Do not add file to claimed_files if it contains 226 offload sections without LTO sections. Add it to offload_files instead. 227 2282014-11-21 H.J. Lu <hongjiu.lu@intel.com> 229 230 PR bootstrap/63784 231 * configure: Regenerated. 232 2332014-11-13 Ilya Verbin <ilya.verbin@intel.com> 234 Bernd Schmidt <bernds@codesourcery.com> 235 Andrey Turetskiy <andrey.turetskiy@intel.com> 236 Michael Zolotukhin <michael.v.zolotukhin@intel.com> 237 238 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define. 239 (struct plugin_objfile): Add new field "offload". 240 (process_offload_section): New static function. 241 (claim_file_handler): Claim file if it contains offload sections. 242 2432014-11-13 Bernd Schmidt <bernds@codesourcery.com> 244 Thomas Schwinge <thomas@codesourcery.com> 245 Ilya Verbin <ilya.verbin@intel.com> 246 Andrey Turetskiy <andrey.turetskiy@intel.com> 247 248 * Makefile.am (libexecsubdir): Tweak for the possibility of being 249 configured for offload compiler. 250 (accel_dir_suffix, real_target_noncanonical): New variables substituted 251 by configure. 252 * Makefile.in: Regenerate. 253 * configure: Regenerate. 254 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new 255 variables. 256 2572014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 258 259 PR target/63610 260 * configure: Regenerate. 261 2622014-08-26 H.J. Lu <hongjiu.lu@intel.com> 263 264 PR bootstrap/62260 265 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@. 266 * configure.ac (gcc_build_dir): Set and AC_SUBST according to 267 $host_subdir. 268 * Makefile.in: Regenerated. 269 * configure: Likewise. 270 2712014-06-13 Thomas Schwinge <thomas@codesourcery.com> 272 273 * configure.ac (--with-libiberty): New configure option. 274 * configure: Regenerate. 275 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New 276 variables. 277 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS) 278 (liblto_plugin_la_DEPENDENCIES): Use them. 279 * Makefile.in: Regenerate. 280 2812014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 282 283 PR lto/60981 284 * configure.ac: Check for -static-libgcc. 285 * configure: Regenerate. 286 2872014-04-17 Jakub Jelinek <jakub@redhat.com> 288 289 PR sanitizer/56781 290 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address. 291 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS, 292 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a 293 over ../libiberty/pic/libiberty.a if the former exists. 294 * Makefile.in: Regenerated. 295 296 PR sanitizer/56781 297 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables. 298 * Makefile.in: Regenerated. 299 3002014-04-02 Richard Biener <rguenther@suse.de> 301 302 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin 303 is set in COLLECT_GCC_OPTIONS. 304 3052014-03-28 Richard Biener <rguenther@suse.de> 306 307 * lto-plugin.c (process_symtab): Handle EINTR and short reads. 308 3092014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 310 311 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc 312 for gcc. 313 * configure: Regenerate. 314 * Makefile.am (AM_LDFLAGS): New variable. 315 (liblto_plugin_la_LDFLAGS): Add it. 316 * Makefile.in: Regenerate. 317 3182013-09-20 Alan Modra <amodra@gmail.com> 319 320 * configure: Regenerate. 321 3222012-09-14 David Edelsohn <dje.gcc@gmail.com> 323 324 * configure: Regenerated. 325 3262012-05-29 Joseph Myers <joseph@codesourcery.com> 327 328 * lto-plugin.c: Fix typo. 329 3302012-05-16 H.J. Lu <hongjiu.lu@intel.com> 331 332 * configure: Regenerated. 333 3342012-02-22 Kai Tietz <ktietz@redhat.com> 335 336 PR lto/50616 337 * lto-plugin.c (PRI_LL): New macro. 338 (dump_symtab): Use PRI_LL instead of ll in print. 339 (process_symtab): Use PRI_LL instead of ll in scan. 340 3412011-12-20 Andreas Schwab <schwab@linux-m68k.org> 342 343 * configure: Regenerate. 344 3452011-12-19 Andreas Schwab <schwab@linux-m68k.org> 346 347 * configure: Regenerate. 348 3492011-11-21 Andreas Tobler <andreast@fgznet.ch> 350 351 * configure: Regenerate. 352 3532011-10-02 Jan Hubicka <jh@suse.cz> 354 355 PR lto/47247 356 * lto-plugin.c (get_symbols_v2): New variable. 357 (write_resolution): Use V2 API when available. 358 (onload): Handle LDPT_GET_SYMBOLS_V2. 359 3602011-09-30 H.J. Lu <hongjiu.lu@intel.com> 361 Andi Kleen <ak@linux.intel.com> 362 363 PR lto/50568 364 * lto-plugin.c (sym_aux): Change id to unsigned long long. 365 (plugin_symtab): Likewise. 366 (dump_symtab): Likewise. 367 (resolve_conflicts): Likewise. 368 (process_symtab): Likewise. 369 3702011-08-10 Richard Guenther <rguenther@suse.de> 371 372 PR bootstrap/49907 373 lto-plugin/ 374 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence. 375 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror. 376 * configure: Regenerate. 377 * Makefile.in: Likewise. 378 * aclocal.m4: Likewise. 379 3802011-04-20 Jim Meyering <meyering@redhat.com> 381 382 * lto-plugin.c (free_1, free_2): Remove useless if-before-free. 383 3842011-04-05 Richard Guenther <rguenther@suse.de> 385 386 PR bootstrap/48431 387 * lto-plugin.c (claim_file_handler): Do not declare vars in code. 388 3892011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 390 391 * Makefile.in: Regenerate. 392 * aclocal.m4: Regenerate. 393 * configure: Regenerate. 394 3952011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 396 397 * Makefile.am (all-local): Rename from 'all'. 398 * Makefile.in: Regenerate. 399 4002011-02-12 Alexandre Oliva <aoliva@redhat.com> 401 402 PR lto/47225 403 * Makefile.am (gcc_build_dir, in_gcc_libs): New. 404 (liblto_plugin_la_LDFLAGS): Add -module. 405 (copy_lto_plugin): Renamed to... 406 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying 407 of static modules. 408 * Makefile.in: Rebuild. 409 4102011-02-07 Kai Tietz <kai.tietz@onevision.com> 411 412 PR lto/47225 413 * Makefile.am (Wc): New helper for encoding -Wc,. 414 (liblto_plugin_la_LIBADD): Use Wc for libiberty library. 415 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty. 416 * Makefile.in: Regenerated. 417 4182011-02-07 Paolo Bonzini <bonzini@gnu.org> 419 420 Revert: 421 422 2011-02-07 Kai Tietz <kai.tietz@onevision.com> 423 424 PR lto/47225 425 * Makefile.am (Wl): New helper for encoding -Wl,. 426 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library. 427 * Makefile.in: Regenerated. 428 4292011-02-07 Kai Tietz <kai.tietz@onevision.com> 430 431 PR lto/47225 432 * Makefile.am (Wl): New helper for encoding -Wl,. 433 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library. 434 * Makefile.in: Regenerated. 435 4362011-01-25 Ian Lance Taylor <iant@google.com> 437 438 * lto-plugin.c (gold_version): New static variable. 439 (all_symbols_read_handler): Don't check pass_through_items if 440 using gold 1.11 or later. 441 (onload): Set gold_version if we see LDPT_GOLD_VERSION. 442 4432011-01-12 Richard Guenther <rguenther@suse.de> 444 445 PR lto/47264 446 * lto-plugin.c (parse_table_entry): Use memcpy to access 447 unaligned fields. 448 4492010-12-20 Dave Korn <dave.korn.cygwin@gmail.com> 450 451 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag. 452 * Makefile.in: Regenerate. 453 4542010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 455 456 Revert last change. 457 4582010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 459 460 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define. 461 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty. 462 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty. 463 * Makefile.in: Regenerate. 464 4652010-12-10 Dave Korn <dave.korn.cygwin@gmail.com> 466 467 PR middle-end/46674 468 PR lto/43157 469 * configure.ac (SYM_STYLE): Don't AC_DEFINE. 470 * lto-plugin.c (sym_style): Don't use it; default to ss_none. 471 * configure: Regenerate. 472 * config.h.in: Likewise. 473 4742010-12-06 Dave Korn <dave.korn.cygwin@gmail.com> 475 476 PR target/40125 477 PR lto/46695 478 * configure.ac: Invoke ACX_LT_HOST_FLAGS. 479 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but 480 override -bindir setting. 481 * aclocal.m4: Regenerate. 482 * configure: Regenerate. 483 * Makefile.in: Regenerate. 484 4852010-12-05 Kai Tietz <kai.tietz@onevision.com> 486 487 * config.h.in: Regenerated. 488 * configure: Regenerated. 489 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT. 490 * lto-plugin.c (WIFEXITED): Define default. 491 (WEXITSTATUS): Likeiwse. 492 4932010-12-01 Kai Tietz <kai.tietz@onevision.com> 494 495 * config.h.in: Regenerated. 496 * configure: Regenerated. 497 * Makefile.in: Regenerated. 498 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h. 499 * lto-plugin.c: Include sys/wait.h conditionally. 500 * aclocal.m4: Regenerated. 501 5022010-11-13 Kai Tietz <kai.tietz@onevision.com> 503 504 * lto-plugin.c (add_output_files): Fix memory leak. 505 5062010-11-11 Dave Korn <dave.korn.cygwin@gmail.com> 507 508 PR bootstrap/46397 509 PR bootstrap/46362 510 * configure.ac: Add AC_TYPE_INT64_T test. 511 * config.h.in: Regenerate. 512 * configure: Likewise. 513 * lto-plugin.c (debug): Use char not bool. 514 (nop): Likewise. 515 (check_1): Rename from check, and use int not bool for gate argument. 516 (check): Macro wrapper for the above to coerce gate argument into 517 boolean-valued integer in case it has pointer type. 518 (parse_table_entry): Use 0 not false. 519 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size 520 into two 32-bit parts and printing as hex ints. 521 5222010-11-03 Dave Korn <dave.korn.cygwin@gmail.com> 523 524 PR lto/46291 525 * lto-plugin.c (claim_file_handler): Don't close file descriptor. 526 5272010-11-03 Dave Korn <dave.korn.cygwin@gmail.com> 528 529 PR lto/46273 530 * lto-plugin.h: Delete. 531 * lto-plugin-elf.c: Likewise. 532 * lto-plugin-coff.c: Likewise. 533 * configure.ac: Don't use libelf, don't source config.gcc. 534 (LIBELFLIBS): Delete. 535 (LIBELFINC): Delete. 536 (LTO_FORMAT): Delete. 537 (SYM_STYLE): Add AC_DEFINE var, set based on $target. 538 (config.h): Add AC_CONFIG_HEADERS directive. 539 * Makefile.am (LIBELFLIBS): Delete. 540 (LIBELFINC): Delete. 541 (LTO_FORMAT): Delete. 542 (DEFS): Import. 543 (AM_CPPFLAGS): Use it. Don't use LIBELFINC. 544 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include 545 any object-format-specific source file in the link. 546 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS. 547 * config.h.in: Generate. 548 * configure: Regenerate. 549 * Makefile.in: Likewise. 550 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h. 551 (LTO_SEGMENT_NAME): New definition. 552 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h. 553 (LTO_SECTION_PREFIX_LEN): New definition. 554 (struct sym_aux): Struct definition moved here from lto-plugin.h. 555 (struct plugin_symtab): Likewise. 556 (struct plugin_objfile): Likewise. 557 (struct plugin_objfile): New struct def. 558 (enum symbol_style): New enum type. 559 (add_symbols): Make static. 560 (claimed_files): Likewise. 561 (num_claimed_files): Likewise. 562 (sym_style): New global. 563 (check): Make static. 564 (parse_table_entry): Likewise. Respect sym_style when extracting 565 symbol from symtab entry. 566 (translate): Make static. 567 (resolve_conflicts): Likewise. 568 (process_symtab): New function, per-section callback version of 569 old object-format-specific handling from deleted lto-plugin-elf.c. 570 (claim_file_handler): Convert ELF-specific version from deleted 571 lto-plugin-elf.c to simple_object interface and move here. 572 (process_options): Allow new '-sym-style=' option. 573 (onload): Don't call deleted onload_format_checks hook. 574 5752010-10-11 Kai Tietz <kai.tietz@onevision.com> 576 577 * lto-plugin.c (dump_symtab): Correct printf argument type. 578 (finish_conflict_resolution): Initialize resolution. 579 5802010-10-08 H.J. Lu <hongjiu.lu@intel.com> 581 582 PR bootstrap/45951 583 * configure.ac: Add AC_CANONICAL_SYSTEM. 584 * configure: Regenerated. 585 5862010-10-07 Dave Korn <dave.korn.cygwin@gmail.com> 587 588 * configure.ac: Source config.gcc to determine lto_binary_reader. 589 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader. 590 * Makefile.am (LTO_FORMAT): Import. 591 (liblto_plugin_la_SOURCES): Add object format dependent module 592 defined by LTO_FORMAT. 593 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty, 594 and work around libtool warning. 595 * configure: Regenerate. 596 * Makefile.in: Likewise. 597 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h. 598 (struct sym_aux): Likewise. 599 (struct plugin_symtab): Likewise. 600 (struct plugin_file_info): Likewise. 601 (LTO_SECTION_PREFIX): Likewise. 602 (add_symbols): Make non-static. 603 (claimed_files): Likewise. 604 (num_claimed_files): Likewise. 605 (check): Likewise. 606 (parse_table_entry): Likewise. 607 (translate): Likewise. 608 (resolve_conflicts): Likewise. 609 (process_symtab): Move to new lto-plugin-elf.c object format dependent 610 source file. 611 (claim_file_handler): Likewise, and make non-static. 612 (onload): Call new onload_format_checks function. 613 * lto-plugin.h: New file. 614 (LTO_SECTION_PREFIX): Move here. 615 (struct sym_aux): Likewise. 616 (struct plugin_symtab): Likewise. 617 (struct plugin_file_info): Likewise. 618 (claim_file_handler): Add new function prototype. 619 (onload_format_checks): Likewise. 620 (check): Declare extern. 621 (translate): Likewise. 622 (parse_table_entry): Likewise. 623 (resolve_conflicts): Likewise. 624 (add_symbols): Likewise. 625 (claimed_files): Likewise. 626 (num_claimed_files): Likewise. 627 * lto-plugin-elf.c (process_symtab): Move here. 628 (claim_file_handler): Likewise, and make non-static. 629 (onload_format_checks): New function factored out from onload. 630 * lto-plugin-coff.c (claim_file_handler): New function stub. 631 (onload_format_checks): Likewise. 632 6332010-08-05 Andi Kleen <ak@linux.intel.com> 634 635 * lto-plugin.c: Include <hashtab.h> 636 (sym_aux): Add next_conflict field to save conflict chains. 637 (plugin_file_info): Add conflicts symtab. 638 (parse_table_entry): Initialize aux->next_conflict. 639 (process_symtab): Increment found. 640 (dump_symtab): Add. 641 (finish_conflict_resolution): Add. 642 (free_symtab): Add. 643 (write_resolution): Remove symbols loop and move into 644 dump_symtab. Call dump_symtab for main symbol and conflicts table. 645 Call free_symtab to free conflicts table. 646 (SWAP): Add. 647 (eq_sym): Add. 648 (hash_sym): Add. 649 (symbol_strength): Add. 650 (resolve_conflicts): Add. 651 (claim_file_handler): Add n variable. Check return value of 652 process_symtab. Call resolve_conflicts. 653 6542010-07-27 Andi Kleen <ak@linux.intel.com> 655 656 * lto-plugin.c (translate): Remove debug fprintf. 657 6582010-07-23 H.J. Lu <hongjiu.lu@intel.com> 659 660 PR bootstrap/45042 661 * lto-plugin.c (translate): Cast to unsigned long. 662 6632010-07-23 Andi Kleen <ak@linux.intel.com> 664 665 PR lto/44992 666 * lto-plugin.c (sym_aux): Add. 667 (plugin_symtab): Remove slots. Add aux and id. 668 (parse_table_entry): Change to use aux instead of slots. 669 (LTO_SECTION_PREFIX): Add. 670 (translate): Improve buffer allocation. Change to append 671 symbols to existing out buffer. 672 (get_section): Remove. 673 (process_symtab): Add. 674 (free_2): Free symtab->aux. 675 (write_resolution): Handle aux instead of slots. 676 Print sub id to resolution file. 677 (claim_file_handler): Clear lto_file. Replace get_symtab/translate 678 calls with call to process_symtab. 679 6802010-07-22 Richard Guenther <rguenther@suse.de> 681 682 * Makefile.am: New copy_lto_plugin rule to install the plugin 683 into ../gcc. 684 * Makefile.in: Regenerated. 685 6862010-05-21 Richard Guenther <rguenther@suse.de> 687 688 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL. 689 6902010-05-07 Richard Guenther <rguenther@suse.de> 691 692 * lto-plugin.c (free_2): Do not free resolution_file. 693 (write_resolution): Check that we were passed a resolution file. 694 (all_symbols_read_handler): Adjust. 695 (cleanup_handler): Do not remove the resolution file. 696 (process_option): Handle -fresolution=. 697 6982010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 699 700 PR other/43620 701 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. 702 * Makefile.in: Regenerate. 703 7042010-04-23 Richard Guenther <rguenther@suse.de> 705 706 PR lto/41550 707 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc. 708 (translate): Likewise. 709 (all_symbols_read_handler): Likewise. 710 (claim_file_handler): Likewise. 711 (process_option): Likewise. 712 (add_output_files): Likewise. Remove filename length limit. 713 7142010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 715 716 * Makefile.in: Regenerate. 717 * aclocal.m4: Regenerate. 718 7192010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com> 720 721 PR lto/43336 722 * lto-plugin.c (cleanup_handler): Delete temporary output files. 723 7242010-01-11 Richard Guenther <rguenther@suse.de> 725 726 PR lto/41569 727 * Makefile.am: Disable dependencies. 728 * Makefile.in: Regenerated. 729 7302010-01-03 H.J. Lu <hongjiu.lu@intel.com> 731 732 PR lto/42520 733 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command 734 if -v is passed. 735 7362009-12-05 H.J. Lu <hongjiu.lu@intel.com> 737 738 PR bootstrap/42306 739 * configure: Regenerated. 740 * Makefile.in: Likewise. 741 7422009-11-19 Rafael Avila de Espindola <espindola@google.com> 743 744 PR bootstrap/42096 745 * lto-plugin.c (claim_file_handler): Print offsets in hex. 746 7472009-11-12 Rafael Avila de Espindola <espindola@google.com> 748 749 * lto-plugin.c (write_resolution): Assume resolution_file is set. 750 Print the symbol name. 751 (all_symbols_read_handler): Create a resolution file. 752 Pass it to gcc. 753 (cleanup_handler): Remove the resolution file. 754 (process_option): Drop the -resolution option. 755 7562009-11-05 Rafael Avila de Espindola <espindola@google.com> 757 758 * lto-plugin.c (temp_obj_dir_name): Remove. 759 (arguments_file_name): New. 760 (free_2): Free arguments_file_name instead of temp_obj_dir_name. 761 (exec_lto_wrapper): Create arguments file with make_temp_file. 762 (cleanup_handler): Don't remove the temporary directory. Remove the 763 arguments file. 764 (onload): Don't create the temporary directory. 765 7662009-11-04 Richard Guenther <rguenther@suse.de> 767 Rafael Avila de Espindola <espindola@google.com> 768 769 * lto-plugin.c (plugin_file_info): Remove temp field. 770 (cleanup_handler): Don't delete temporary objects. 771 (claim_file_handler): Don't create temporary objects. 772 7732009-11-04 Rafael Avila de Espindola <espindola@google.com> 774 775 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging. 776 7772009-10-30 Rafael Avila de Espindola <espindola@google.com> 778 779 PR41871 780 * lto-plugin.c (claim_file_handler): Close files that we created. 781 7822009-10-28 Rafael Avila de Espindola <espindola@google.com> 783 784 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of 785 LDPL_ERROR 786 7872009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com> 788 789 PR lto/41652 790 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT. 791 * configure: Regenerate. 792 7932009-10-26 Richard Guenther <rguenther@suse.de> 794 795 * configure.ac: Use AM_MAINTAINER_MODE. 796 * acinclude.m4: Remove. 797 * configure: Re-generate. 798 * Makefile.in: Likewise. 799 * aclocal.m4: Likewise. 800 8012009-10-19 Rafael Avila de Espindola <espindola@google.com> 802 803 PR40790 804 * configure: Regenerate. 805 * configure.ac: Add AC_TYPE_UINT64_T. 806 8072009-10-16 Rafael Avila de Espindola <espindola@google.com> 808 809 * lto-plugin.c (message): New variable. 810 (check): New function. 811 (parse_table_entry, translate, write_resolution,add_output_files, 812 exec_lto_wrapper,claim_file_handler, onload): Use check instead of 813 assert. 814 (cleanup_handler): Use check instead of assert. Remove the arguments 815 file if it exists. 816 8172009-10-15 Rafael Avila de Espindola <espindola@google.com> 818 819 * lto-plugin.c (resolution_file): New. 820 (free_1): Update comment. 821 (free_2): Free resolution_file. 822 (write_resolution): Write resolution to specified file. Use the 823 syms array from the symbol table. 824 (all_symbols_read_handler): Delay call to free_1 past call to 825 write_resolution. 826 (process_option): Add a -resolution option. 827 8282009-10-13 Richard Guenther <rguenther@suse.de> 829 830 * Makefile.am (liblto_plugin_la_LIBADD): Link against the 831 correct libiberty. 832 * Makefile.in: Regenerated. 833 8342009-10-08 Rafael Avila de Espindola <espindola@google.com> 835 836 * lto-plugin.c (add_input_library): New. 837 (all_symbols_read_handler): Use add_input_library for items that 838 start with -l. 839 (process_option): Fit in 80 columns. 840 (onload): Handle LDPT_ADD_INPUT_LIBRARY. 841 8422009-10-02 Diego Novillo <dnovillo@google.com> 843 844 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE 845 and -D_FILE_OFFSET_BITS=64. 846 * configure.ac: Add AC_SYS_LARGEFILE. 847 * configure: Regenerate. 848 * Makefile.in: Regenerate. 849 * lto-plugin.c: Fix copyright boilerplate. 850 8512009-10-02 Diego Novillo <dnovillo@google.com> 852 853 * Makefile.am (ACLOCAL_AMFLAGS): Define. 854 * aclocal.m4: Regenerate with aclocal-2.64 855 * acinclude.m4: Remove. 856 * Makefile.in: Regenerate with automake-1.11 857 * configure.ac (AC_PREREQ): Update to 2.64. 858 * configure: Regenerate. 859 8602009-10-02 Diego Novillo <dnovillo@google.com> 861 862 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE 863 and -D_FILE_OFFSET_BITS=64. 864 * configure.ac: Add AC_SYS_LARGEFILE. 865 * configure: Regenerate. 866 * Makefile.in: Regenerate. 867 * lto-plugin.c: Fix copyright boilerplate. 868 8692009-10-02 Diego Novillo <dnovillo@google.com> 870 871 * Makefile.am (ACLOCAL_AMFLAGS): Define. 872 * aclocal.m4: Regenerate with aclocal-2.64 873 * acinclude.m4: Remove. 874 * Makefile.in: Regenerate with automake-1.11 875 * configure.ac (AC_PREREQ): Update to 2.64. 876 * configure: Regenerate. 877 8782009-10-02 Rafael Avila de Espindola <espindola@google.com> 879 880 * Makefile.am (liblto_plugin_la_SOURCES): Remove 881 $(top_srcdir)/../gcc/lto/common.c 882 * Makefile.in: Regenerate. 883 8842009-10-01 Rafael Avila de Espindola <espindola@google.com> 885 886 * lto-plugin.c (pass_through_items): New. 887 (num_pass_through_items): New. 888 (all_symbols_read_handler): Update to use the -pass-through option. 889 (process_option): Replace -libgcc with -pass-through. 890 8912009-09-30 Rafael Avila de Espindola <espindola@google.com> 892 893 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require 894 register_cleanup to be set. 895 8962009-09-30 Rafael Avila de Espindola <espindola@google.com> 897 898 * Makefile.am: Remove all reference to ltosymtab. 899 * Makefile.in: Regenerate. 900 * lto-symtab.c: Remove. 901 9022009-05-21 Diego Novillo <dnovillo@google.com> 903 904 * configure.ac: Remove call to AC_CHECK_GELF. 905 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC. 906 * acinclude.m4: Do not include ../config/libelf.m4 907 * Makefile.am (LIBELFLIBS): Define. 908 (LIBELFINC): Define. 909 (AM_CPPFLAGS): Add $(LIBELFINC). 910 (ltosymtab_LDADD): Add $(LIBELFLIBS). 911 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS) 912 * lto-plugin.c: Always include <gelf.h> 913 * lto-symtab.c: Likewise. 914 * configure: Regenerate. 915 * Makefile.in: Regenerate. 916 9172009-03-23 Rafael Avila de Espindola <espindola@google.com> 918 919 * lto-plugin.c (libgcc_filename): New. 920 (all_symbols_read_handler): Pass libgcc to the linker. 921 (all_symbols_read_handler): Parse -libgcc 922 9232009-02-05 Rafael Avila de Espindola <espindola@google.com> 924 925 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty. 926 * Makefile.in: Regenerate. 927 * lto-plugin.c (add_output_files): Argument is now a FILE. 928 (exec_lto_wrapper): Use writeargv and pex. 929 9302009-02-04 Rafael Avila de Espindola <espindola@google.com> 931 932 Revert: 933 2009-02-04 Rafael Avila de Espindola <espindola@google.com> 934 * lto-plugin.c (exec_lto_wrapper): Use writeargv. 935 936 9372009-02-04 Rafael Avila de Espindola <espindola@google.com> 938 939 * lto-plugin.c (exec_lto_wrapper): Use writeargv. 940 9412009-01-29 Rafael Avila de Espindola <espindola@google.com> 942 943 * lto-plugin.c: Include libiberty.h. 944 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of 945 snprintf. 946 9472009-01-29 Rafael Avila de Espindola <espindola@google.com> 948 949 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that 950 file to lto-wrapper. 951 9522009-01-28 Rafael Avila de Espindola <espindola@google.com> 953 954 * lto-plugin.c (plugin_file_info): Remove fd and elf. 955 (parse_table_entry): strdup entry->name and entry->comdat_key. 956 (free_1): Free name and comdat_key. Don't close the file. Don't call 957 elf_end. 958 (claim_file_handler): Always call elf_end. 959 9602008-12-23 Rafael Avila de Espindola <espindola@google.com> 961 962 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE 963 -D_FILE_OFFSET_BITS=64 964 * Makefile.in: Regenerate 965 9662008-12-22 Rafael Avila de Espindola <espindola@google.com> 967 968 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New. 969 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES. 970 * Makefile.in: Regenerate. 971 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4 972 * configure: Regenerate. 973 * configure.ac: Add AC_SUBST(target_noncanonical). 974 9752008-12-08 Rafael Avila de Espindola <espindola@google.com> 976 977 * lto-plugin.c: Include stdbool.h. 978 (debug, nop): Declare as bool. 979 9802008-12-08 Rafael Avila de Espindola <espindola@google.com> 981 982 * lto-plugin.c (nop): New. 983 (use_original_files): New. 984 (all_symbols_read_handler): Call use_original_files if nop is true. 985 (process_option): Parse the -nop option. 986 9872008-12-08 Rafael Avila de Espindola <espindola@google.com> 988 989 * lto-plugin.c (debug): New. 990 (exec_lto_wrapper): Print argv if debug is true. 991 (process_option): Process the -debug command line option. 992 9932008-12-03 Rafael Avila de Espindola <espindola@google.com> 994 995 * lto-plugin.c (process_option): The argument is now a single option, 996 not a space separated list. 997 9982008-12-02 Rafael Avila de Espindola <espindola@google.com> 999 1000 * lto-plugin.c: Include sys/types.h and sys/wait.h 1001 (output_files, num_output_files, lto_wrapper_argv, 1002 lto_wrapper_num_args): New. 1003 (free_2): Free output_files. 1004 (write_resolution): Disable. 1005 (add_output_files): New. 1006 (exec_lto_wrapper): New. 1007 (all_symbols_read_handler): Run lto-wrapper. 1008 (claim_file_handler): Free lto_file.name and call elf_end. 1009 (process_option): New. 1010 10112008-11-26 Rafael Espindola <espindola@google.com> 1012 1013 * lto-plugin.c (add_input_file): New. 1014 (get_section): Return NULL if get_section fails. 1015 (write_resolution): New. 1016 (all_symbols_read_handler): Call add_input_file. 1017 (claim_file_handler): Unlink the correct file. 1018 (onload): Record add_input_file. 1019 10202008-09-23 Rafael Espindola <espindola@google.com> 1021 1022 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES): 1023 Update the location of common.c. 1024 * Makefile.in: Regenerate. 1025 * common.c: Moved to gcc/lto. 1026 * common.h: Moved to gcc/lto. 1027 * lto-plugin.c: Update the location of common.h. 1028 * lto-symtab.c: Update the location of common.h. 1029 10302008-09-23 Rafael Espindola <espindola@google.com> 1031 1032 * common.c: Include common.h. 1033 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit 1034 sizes. 1035 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use 1036 explicit sizes. 1037 10382008-09-23 Rafael Espindola <espindola@google.com> 1039 1040 * lto-plugin.c (plugin_file_info): Add temp. 1041 (cleanup_handler): Only delete temporary files. 1042 (claim_file_handler): Initialize lto_file.temp. 1043 10442008-09-23 Rafael Espindola <espindola@google.com> 1045 1046 * plugin-api.h: Moved to include. 1047 10482008-09-23 Rafael Espindola <espindola@google.com> 1049 1050 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new 1051 format. 1052 10532008-09-22 Rafael Espindola <espindola@google.com> 1054 1055 * plugin-api.h: Copy from binutils' cvs. 1056 10572008-09-22 Rafael Espindola <espindola@google.com> 1058 1059 * lto-symtab.c (get_symbols, add_symbols): Update signature. 1060 * plugin-api.h: Copy from binutils' cvs. 1061 10622008-09-22 Rafael Espindola <espindola@google.com> 1063 1064 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): 1065 Make extern 1066 10672008-09-10 Rafael Espindola <espindola@google.com> 1068 1069 * lto-plugin.c (onload): add missing break statements and asserts. 1070 * lto-symtab.c (claim_file_handler): Make it static. 1071 (all_symbols_read_handler): Make it static. 1072 (all_file_handles): Make it static. 1073 (num_file_handles): Make it static. 1074 (register_claim_file): Make it static. 1075 (register_object): Indent properly. 1076 10772008-09-10 Rafael Avila de Espindola <espindola@google.com> 1078 1079 * Makefile.am (ltosymtab_LDADD): Add -lelf. 1080 * Makefiel.in: Regenerate. 1081 * lto-plugin.c: Include ar.h. 1082 (claim_file_handler): Handle file->offset != 0. 1083 * lto-symtab.c: Include gelf.h. 1084 (all_file_handles): Change type. 1085 (register_object): New. 1086 (register_file): Add support for archives. 1087 (resolve): Update to new type of all_file_handles. 1088 (print): Update to new type of all_file_handles. 1089 (free_all): Update to new type of all_file_handles. 1090 (main): Update to new type of all_file_handles. 1091 10922008-09-10 Rafael Avila de Espindola <espindola@google.com> 1093 1094 * lto-plugin.c (get_string_table): Remove. 1095 (get_section): Use elf_strptr instead of get_string_table. 1096 10972008-09-08 Doug Kwan <dougkwan@google.com> 1098 1099 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments 1100 to 64-bit to fix a 32-bit bootstrap failure due to format warnings. 1101 11022008-09-08 Rafael Avila de Espindola <espindola@google.com> 1103 1104 * Makefile.am (ltosymtab_SOURCES): add common.c. 1105 (ltosymtab_CFLAGS): New. 1106 (liblto_plugin_la_SOURCES): Add common.c. 1107 * Makefile.in: Regenerate. 1108 * common.c: New. 1109 * common.h: New. 1110 * lto-plugin.c: Include stdio.h, inttypes.h and common.h. 1111 (plugin_symtab): New. 1112 (plugin_file_info): New. 1113 (register_all_symbols_read): New. 1114 (get_symbols): New. 1115 (claimed_files): New. 1116 (num_claimed_files): New. 1117 (translate): Don't drop the slot number. 1118 (free_1): New. 1119 (free_2): New. 1120 (all_symbols_read_handler): New. 1121 (claim_file_handler): Record every claimed file. 1122 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and 1123 LDPT_GET_SYMBOLS. 1124 * lto-symtab.c: Include stdlib.h, string.h and common.h. 1125 (current_file_handle): Remove. 1126 (ld_plugin_all_symbols_read_handler): New. 1127 (plugin_handle): New. 1128 (file_handle): New. 1129 (all_file_handles): New. 1130 (num_file_handles): New. 1131 (get_symbols): New. 1132 (register_all_symbols_read): New. 1133 (add_symbols): Don't print the symbols, just record them. 1134 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and 1135 LDPT_GET_SYMBOLS. 1136 (load_plugin): Use plugin_handle. 1137 (register_file): Add the file handle to all_file_handles. 1138 (resolve): New. 1139 (print): New. 1140 (unload_plugin): New. 1141 (free_all): New. 1142 (main): Call all_symbols_read_handler and free resources. 1143 11442008-09-03 Rafael Avila de Espindola <espindola@google.com> 1145 1146 * Makefile.am (AM_CFLAGS): New. 1147 (ltosymtab_LDADD): Remove -lelf. Add -ldl. 1148 (lib_LTLIBRARIES): New. 1149 (liblto_plugin_la_SOURCES): New. 1150 (liblto_plugin_la_LIBADD): New. 1151 * Makefile.in: Regenerate. 1152 * acinclude.m4: Don't include ../config/acx.m4 and 1153 ../config/no-executables.m4. 1154 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and 1155 ../libtool.m4. 1156 * aclocal.m4: Regenerate. 1157 * configure: Regenerate. 1158 * configure.ac: Use AM_PROG_LIBTOOL. 1159 * lto-plugin.c: New. 1160 * lto-symtab.c: Rewrite to use the plugin. 1161 * plugin-api.h: New. 1162 11632008-08-25 Rafael Avila de Espindola <espindola@google.com> 1164 1165 * configure: Regenerate. 1166 * configure.ac: Use AC_CHECK_GELF. 1167 * lto-symtab.c: Include gelf.h. 1168 (get_string_table): Use size independent API. 1169 (printTable): Use lld to print 64 bit integers. 1170 11712008-08-22 Rafael Avila de Espindola <espindola@google.com> 1172 1173 * lto-symtab.c (parse_table_entry): Assert entry->kind and 1174 entry->visibility are valid. 1175 11762008-07-22 Rafael Avila de Espindola <espindola@google.com> 1177 * lto-symtab.c (table_entry): Add comdat. 1178 (parse_table_entry): Read comdat. 1179 11802008-08-21 Rafael Espindola <espindola@google.com> 1181 1182 * Makefile.am: New. 1183 * Makefile.in: New. 1184 * acinclude.m4: New. 1185 * aclocal.m4: New. 1186 * configure: New. 1187 * configure.ac: New. 1188 * lto-symtab.c: New. 1189