ChangeLog revision 1.1.1.15
12019-11-14 Release Manager 2 3 * GCC 7.5.0 released. 4 52018-12-06 Release Manager 6 7 * GCC 7.4.0 released. 8 92018-01-25 Release Manager 10 11 * GCC 7.3.0 released. 12 132017-08-14 Release Manager 14 15 * GCC 7.2.0 released. 16 172017-07-26 Georg-Johann Lay <avr@gjlay.de> 18 19 Backport from 2017-07-21 trunk r250428. 20 21 PR lto/81487 22 * lto-plugin.c (claim_file_handler): Use xasprintf instead of 23 asprintf. 24 [hi!=0]: Swap hi and lo arguments supplied to xasprintf. 25 262017-05-02 Release Manager 27 28 * GCC 7.1.0 released. 29 302017-01-17 Jakub Jelinek <jakub@redhat.com> 31 32 PR other/79046 33 * configure.ac: Add GCC_BASE_VER. 34 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to 35 get version from BASE-VER file. 36 * configure: Regenerated. 37 * Makefile.in: Regenerated. 38 392017-01-04 Jakub Jelinek <jakub@redhat.com> 40 41 Update copyright years. 42 432016-11-15 Matthias Klose <doko@ubuntu.com> 44 45 * configure: Regenerate. 46 472016-02-25 Ilya Verbin <ilya.verbin@intel.com> 48 49 PR driver/68463 50 * lto-plugin.c (struct plugin_offload_file): New. 51 (offload_files): Change type. 52 (offload_files_last, offload_files_last_obj): New. 53 (offload_files_last_lto): New. 54 (free_2): Adjust accordingly. 55 (all_symbols_read_handler): Don't add offload files to lto_arg_ptr. 56 Don't call free_1 for offload_files. Write names of object files with 57 offloading to the temporary file. Add new option to lto_arg_ptr. 58 (claim_file_handler): Don't claim file if it contains offload sections 59 without LTO sections. If it contains offload sections, add to the list. 60 612016-01-15 Martin Liska <mliska@suse.cz> 62 63 * lto-plugin.c (all_symbols_read_handler): Assign default 64 value to a string variable. 65 662015-11-25 Jan Hubicka <jh@suse.cz> 67 68 PR lto/67548 69 * lto-plugin.c (linker_output, linker_output_set): New statics. 70 (all_symbols_read_handler): Add -flinker-output option. 71 (onload): Record linker_output info. 72 732015-07-02 Uros Bizjak <ubizjak@gmail.com> 74 75 * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS. 76 * configure: Regenerate. 77 * config.h.in: Ditto. 78 792015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com> 80 81 * Makefile.am: Drop 'by automake version' from top-level comment. 82 * Makefile.in: Regenerated with automake-1.11.6. 83 * aclocal.m4: Likewise. 84 * configure: Likewise. 85 862015-02-06 H.J. Lu <hongjiu.lu@intel.com> 87 88 * lto-plugin.c (release_input_file): Removed. 89 (claim_file_handler): Don't call release_input_file. 90 (onload): Don't set release_input_file. 91 922015-02-05 H.J. Lu <hongjiu.lu@intel.com> 93 94 * lto-plugin.c (claim_file_handler): Pass handle to 95 release_input_file. 96 972015-02-05 H.J. Lu <hongjiu.lu@intel.com> 98 99 * lto-plugin.c (claim_file_handler): Call release_input_file only 100 if file is claimed. 101 1022015-01-28 H.J. Lu <hongjiu.lu@intel.com> 103 104 * lto-plugin.c (claim_file_handler): Call release_input_file only 105 if it is not NULL. 106 1072015-01-28 H.J. Lu <hongjiu.lu@intel.com> 108 109 PR lto/64837 110 * lto-plugin.c (release_input_file): New. 111 (claim_file_handler): Call release_input_file. 112 (onload): Set release_input_file. 113 1142014-12-09 Ilya Verbin <ilya.verbin@intel.com> 115 116 * lto-plugin.c (offload_files, num_offload_files): New static variables. 117 (free_1): Use arguments instead of global variables. 118 (free_2): Free offload_files. 119 (all_symbols_read_handler): Add names from offload_files to lto-wrapper 120 arguments. 121 (claim_file_handler): Do not add file to claimed_files if it contains 122 offload sections without LTO sections. Add it to offload_files instead. 123 1242014-11-21 H.J. Lu <hongjiu.lu@intel.com> 125 126 PR bootstrap/63784 127 * configure: Regenerated. 128 1292014-11-13 Ilya Verbin <ilya.verbin@intel.com> 130 Bernd Schmidt <bernds@codesourcery.com> 131 Andrey Turetskiy <andrey.turetskiy@intel.com> 132 Michael Zolotukhin <michael.v.zolotukhin@intel.com> 133 134 * lto-plugin.c (OFFLOAD_SECTION, OFFLOAD_SECTION_LEN): Define. 135 (struct plugin_objfile): Add new field "offload". 136 (process_offload_section): New static function. 137 (claim_file_handler): Claim file if it contains offload sections. 138 1392014-11-13 Bernd Schmidt <bernds@codesourcery.com> 140 Thomas Schwinge <thomas@codesourcery.com> 141 Ilya Verbin <ilya.verbin@intel.com> 142 Andrey Turetskiy <andrey.turetskiy@intel.com> 143 144 * Makefile.am (libexecsubdir): Tweak for the possibility of being 145 configured for offload compiler. 146 (accel_dir_suffix, real_target_noncanonical): New variables substituted 147 by configure. 148 * Makefile.in: Regenerate. 149 * configure: Regenerate. 150 * configure.ac (accel_dir_suffix, real_target_noncanonical): Compute new 151 variables. 152 1532014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> 154 155 PR target/63610 156 * configure: Regenerate. 157 1582014-08-26 H.J. Lu <hongjiu.lu@intel.com> 159 160 PR bootstrap/62260 161 * Makefile.am (gcc_build_dir): Set to @gcc_build_dir@. 162 * configure.ac (gcc_build_dir): Set and AC_SUBST according to 163 $host_subdir. 164 * Makefile.in: Regenerated. 165 * configure: Likewise. 166 1672014-06-13 Thomas Schwinge <thomas@codesourcery.com> 168 169 * configure.ac (--with-libiberty): New configure option. 170 * configure: Regenerate. 171 * Makefile.am (libiberty, libiberty_noasan, libiberty_pic): New 172 variables. 173 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS) 174 (liblto_plugin_la_DEPENDENCIES): Use them. 175 * Makefile.in: Regenerate. 176 1772014-05-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 178 179 PR lto/60981 180 * configure.ac: Check for -static-libgcc. 181 * configure: Regenerate. 182 1832014-04-17 Jakub Jelinek <jakub@redhat.com> 184 185 PR sanitizer/56781 186 * Makefile.am (CFLAGS, LDFLAGS): Filter out -fsanitize=address. 187 (liblto_plugin_la_LIBADD, liblto_plugin_la_LDFLAGS, 188 liblto_plugin_la_DEPENDENCIES): Prefer ../libiberty/noasan/libiberty.a 189 over ../libiberty/pic/libiberty.a if the former exists. 190 * Makefile.in: Regenerated. 191 192 PR sanitizer/56781 193 * Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables. 194 * Makefile.in: Regenerated. 195 1962014-04-02 Richard Biener <rguenther@suse.de> 197 198 * lto-plugin.c (onload): Fail to load if -fno-use-linker-plugin 199 is set in COLLECT_GCC_OPTIONS. 200 2012014-03-28 Richard Biener <rguenther@suse.de> 202 203 * lto-plugin.c (process_symtab): Handle EINTR and short reads. 204 2052014-03-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 206 207 * configure.ac (ac_lto_plugin_ldflags): Set to -Wc,-static-libgcc 208 for gcc. 209 * configure: Regenerate. 210 * Makefile.am (AM_LDFLAGS): New variable. 211 (liblto_plugin_la_LDFLAGS): Add it. 212 * Makefile.in: Regenerate. 213 2142013-09-20 Alan Modra <amodra@gmail.com> 215 216 * configure: Regenerate. 217 2182012-09-14 David Edelsohn <dje.gcc@gmail.com> 219 220 * configure: Regenerated. 221 2222012-05-29 Joseph Myers <joseph@codesourcery.com> 223 224 * lto-plugin.c: Fix typo. 225 2262012-05-16 H.J. Lu <hongjiu.lu@intel.com> 227 228 * configure: Regenerated. 229 2302012-02-22 Kai Tietz <ktietz@redhat.com> 231 232 PR lto/50616 233 * lto-plugin.c (PRI_LL): New macro. 234 (dump_symtab): Use PRI_LL instead of ll in print. 235 (process_symtab): Use PRI_LL instead of ll in scan. 236 2372011-12-20 Andreas Schwab <schwab@linux-m68k.org> 238 239 * configure: Regenerate. 240 2412011-12-19 Andreas Schwab <schwab@linux-m68k.org> 242 243 * configure: Regenerate. 244 2452011-11-21 Andreas Tobler <andreast@fgznet.ch> 246 247 * configure: Regenerate. 248 2492011-10-02 Jan Hubicka <jh@suse.cz> 250 251 PR lto/47247 252 * lto-plugin.c (get_symbols_v2): New variable. 253 (write_resolution): Use V2 API when available. 254 (onload): Handle LDPT_GET_SYMBOLS_V2. 255 2562011-09-30 H.J. Lu <hongjiu.lu@intel.com> 257 Andi Kleen <ak@linux.intel.com> 258 259 PR lto/50568 260 * lto-plugin.c (sym_aux): Change id to unsigned long long. 261 (plugin_symtab): Likewise. 262 (dump_symtab): Likewise. 263 (resolve_conflicts): Likewise. 264 (process_symtab): Likewise. 265 2662011-08-10 Richard Guenther <rguenther@suse.de> 267 268 PR bootstrap/49907 269 lto-plugin/ 270 * configure.ac: Use ACX_PROG_CC_WARNING_OPTS to detect -Wall presence. 271 * Makefile.am (AM_CFLAGS): Adjust. Do not build with -Werror. 272 * configure: Regenerate. 273 * Makefile.in: Likewise. 274 * aclocal.m4: Likewise. 275 2762011-04-20 Jim Meyering <meyering@redhat.com> 277 278 * lto-plugin.c (free_1, free_2): Remove useless if-before-free. 279 2802011-04-05 Richard Guenther <rguenther@suse.de> 281 282 PR bootstrap/48431 283 * lto-plugin.c (claim_file_handler): Do not declare vars in code. 284 2852011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 286 287 * Makefile.in: Regenerate. 288 * aclocal.m4: Regenerate. 289 * configure: Regenerate. 290 2912011-02-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 292 293 * Makefile.am (all-local): Rename from 'all'. 294 * Makefile.in: Regenerate. 295 2962011-02-12 Alexandre Oliva <aoliva@redhat.com> 297 298 PR lto/47225 299 * Makefile.am (gcc_build_dir, in_gcc_libs): New. 300 (liblto_plugin_la_LDFLAGS): Add -module. 301 (copy_lto_plugin): Renamed to... 302 ($(in_gcc_libs)): ... this. Add mkinstalldirs. Skip copying 303 of static modules. 304 * Makefile.in: Rebuild. 305 3062011-02-07 Kai Tietz <kai.tietz@onevision.com> 307 308 PR lto/47225 309 * Makefile.am (Wc): New helper for encoding -Wc,. 310 (liblto_plugin_la_LIBADD): Use Wc for libiberty library. 311 (liblto_plugin_la_DEPENDENCIES): Special case pic libiberty. 312 * Makefile.in: Regenerated. 313 3142011-02-07 Paolo Bonzini <bonzini@gnu.org> 315 316 Revert: 317 318 2011-02-07 Kai Tietz <kai.tietz@onevision.com> 319 320 PR lto/47225 321 * Makefile.am (Wl): New helper for encoding -Wl,. 322 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library. 323 * Makefile.in: Regenerated. 324 3252011-02-07 Kai Tietz <kai.tietz@onevision.com> 326 327 PR lto/47225 328 * Makefile.am (Wl): New helper for encoding -Wl,. 329 (liblto_plugin_la_LIBADD): Use -Wl for libiberty library. 330 * Makefile.in: Regenerated. 331 3322011-01-25 Ian Lance Taylor <iant@google.com> 333 334 * lto-plugin.c (gold_version): New static variable. 335 (all_symbols_read_handler): Don't check pass_through_items if 336 using gold 1.11 or later. 337 (onload): Set gold_version if we see LDPT_GOLD_VERSION. 338 3392011-01-12 Richard Guenther <rguenther@suse.de> 340 341 PR lto/47264 342 * lto-plugin.c (parse_table_entry): Use memcpy to access 343 unaligned fields. 344 3452010-12-20 Dave Korn <dave.korn.cygwin@gmail.com> 346 347 * Makefile.am (AM_LIBTOOLFLAGS): Define, adding disable-static tag. 348 * Makefile.in: Regenerate. 349 3502010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 351 352 Revert last change. 353 3542010-12-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> 355 356 * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define. 357 (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty. 358 (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty. 359 * Makefile.in: Regenerate. 360 3612010-12-10 Dave Korn <dave.korn.cygwin@gmail.com> 362 363 PR middle-end/46674 364 PR lto/43157 365 * configure.ac (SYM_STYLE): Don't AC_DEFINE. 366 * lto-plugin.c (sym_style): Don't use it; default to ss_none. 367 * configure: Regenerate. 368 * config.h.in: Likewise. 369 3702010-12-06 Dave Korn <dave.korn.cygwin@gmail.com> 371 372 PR target/40125 373 PR lto/46695 374 * configure.ac: Invoke ACX_LT_HOST_FLAGS. 375 * Makefile.am (liblto_plugin_la_LDFLAGS): Use lt_host_flags but 376 override -bindir setting. 377 * aclocal.m4: Regenerate. 378 * configure: Regenerate. 379 * Makefile.in: Regenerate. 380 3812010-12-05 Kai Tietz <kai.tietz@onevision.com> 382 383 * config.h.in: Regenerated. 384 * configure: Regenerated. 385 * configure.ac (AC_CHECK_HEADERS): Replaced by AC_HEADER_SYS_WAIT. 386 * lto-plugin.c (WIFEXITED): Define default. 387 (WEXITSTATUS): Likeiwse. 388 3892010-12-01 Kai Tietz <kai.tietz@onevision.com> 390 391 * config.h.in: Regenerated. 392 * configure: Regenerated. 393 * Makefile.in: Regenerated. 394 * configure.ac (AC_CHECK_HEADERS): Check for sys/wait.h. 395 * lto-plugin.c: Include sys/wait.h conditionally. 396 * aclocal.m4: Regenerated. 397 3982010-11-13 Kai Tietz <kai.tietz@onevision.com> 399 400 * lto-plugin.c (add_output_files): Fix memory leak. 401 4022010-11-11 Dave Korn <dave.korn.cygwin@gmail.com> 403 404 PR bootstrap/46397 405 PR bootstrap/46362 406 * configure.ac: Add AC_TYPE_INT64_T test. 407 * config.h.in: Regenerate. 408 * configure: Likewise. 409 * lto-plugin.c (debug): Use char not bool. 410 (nop): Likewise. 411 (check_1): Rename from check, and use int not bool for gate argument. 412 (check): Macro wrapper for the above to coerce gate argument into 413 boolean-valued integer in case it has pointer type. 414 (parse_table_entry): Use 0 not false. 415 (claim_file_handler): Avoid use of PRIx64 by splitting 64-bit size 416 into two 32-bit parts and printing as hex ints. 417 4182010-11-03 Dave Korn <dave.korn.cygwin@gmail.com> 419 420 PR lto/46291 421 * lto-plugin.c (claim_file_handler): Don't close file descriptor. 422 4232010-11-03 Dave Korn <dave.korn.cygwin@gmail.com> 424 425 PR lto/46273 426 * lto-plugin.h: Delete. 427 * lto-plugin-elf.c: Likewise. 428 * lto-plugin-coff.c: Likewise. 429 * configure.ac: Don't use libelf, don't source config.gcc. 430 (LIBELFLIBS): Delete. 431 (LIBELFINC): Delete. 432 (LTO_FORMAT): Delete. 433 (SYM_STYLE): Add AC_DEFINE var, set based on $target. 434 (config.h): Add AC_CONFIG_HEADERS directive. 435 * Makefile.am (LIBELFLIBS): Delete. 436 (LIBELFINC): Delete. 437 (LTO_FORMAT): Delete. 438 (DEFS): Import. 439 (AM_CPPFLAGS): Use it. Don't use LIBELFINC. 440 (liblto_plugin_la_SOURCES): Don't use LTO_FORMAT, don't include 441 any object-format-specific source file in the link. 442 (liblto_plugin_la_LIBADD): Don't use LIBELFLIBS. 443 * config.h.in: Generate. 444 * configure: Regenerate. 445 * Makefile.in: Likewise. 446 * lto-plugin.c (O_BINARY): Definition moved here from lto-plugin.h. 447 (LTO_SEGMENT_NAME): New definition. 448 (LTO_SECTION_PREFIX): Definition moved here from lto-plugin.h. 449 (LTO_SECTION_PREFIX_LEN): New definition. 450 (struct sym_aux): Struct definition moved here from lto-plugin.h. 451 (struct plugin_symtab): Likewise. 452 (struct plugin_objfile): Likewise. 453 (struct plugin_objfile): New struct def. 454 (enum symbol_style): New enum type. 455 (add_symbols): Make static. 456 (claimed_files): Likewise. 457 (num_claimed_files): Likewise. 458 (sym_style): New global. 459 (check): Make static. 460 (parse_table_entry): Likewise. Respect sym_style when extracting 461 symbol from symtab entry. 462 (translate): Make static. 463 (resolve_conflicts): Likewise. 464 (process_symtab): New function, per-section callback version of 465 old object-format-specific handling from deleted lto-plugin-elf.c. 466 (claim_file_handler): Convert ELF-specific version from deleted 467 lto-plugin-elf.c to simple_object interface and move here. 468 (process_options): Allow new '-sym-style=' option. 469 (onload): Don't call deleted onload_format_checks hook. 470 4712010-10-11 Kai Tietz <kai.tietz@onevision.com> 472 473 * lto-plugin.c (dump_symtab): Correct printf argument type. 474 (finish_conflict_resolution): Initialize resolution. 475 4762010-10-08 H.J. Lu <hongjiu.lu@intel.com> 477 478 PR bootstrap/45951 479 * configure.ac: Add AC_CANONICAL_SYSTEM. 480 * configure: Regenerated. 481 4822010-10-07 Dave Korn <dave.korn.cygwin@gmail.com> 483 484 * configure.ac: Source config.gcc to determine lto_binary_reader. 485 (LTO_FORMAT): New AC_SUBST variable inferred from lto_binary_reader. 486 * Makefile.am (LTO_FORMAT): Import. 487 (liblto_plugin_la_SOURCES): Add object format dependent module 488 defined by LTO_FORMAT. 489 (liblto_plugin_la_LIBADD): Allow for both PIC and non-PIC libiberty, 490 and work around libtool warning. 491 * configure: Regenerate. 492 * Makefile.in: Likewise. 493 * lto-plugin.c (struct sym_aux): Move to new lto-plugin.h. 494 (struct sym_aux): Likewise. 495 (struct plugin_symtab): Likewise. 496 (struct plugin_file_info): Likewise. 497 (LTO_SECTION_PREFIX): Likewise. 498 (add_symbols): Make non-static. 499 (claimed_files): Likewise. 500 (num_claimed_files): Likewise. 501 (check): Likewise. 502 (parse_table_entry): Likewise. 503 (translate): Likewise. 504 (resolve_conflicts): Likewise. 505 (process_symtab): Move to new lto-plugin-elf.c object format dependent 506 source file. 507 (claim_file_handler): Likewise, and make non-static. 508 (onload): Call new onload_format_checks function. 509 * lto-plugin.h: New file. 510 (LTO_SECTION_PREFIX): Move here. 511 (struct sym_aux): Likewise. 512 (struct plugin_symtab): Likewise. 513 (struct plugin_file_info): Likewise. 514 (claim_file_handler): Add new function prototype. 515 (onload_format_checks): Likewise. 516 (check): Declare extern. 517 (translate): Likewise. 518 (parse_table_entry): Likewise. 519 (resolve_conflicts): Likewise. 520 (add_symbols): Likewise. 521 (claimed_files): Likewise. 522 (num_claimed_files): Likewise. 523 * lto-plugin-elf.c (process_symtab): Move here. 524 (claim_file_handler): Likewise, and make non-static. 525 (onload_format_checks): New function factored out from onload. 526 * lto-plugin-coff.c (claim_file_handler): New function stub. 527 (onload_format_checks): Likewise. 528 5292010-08-05 Andi Kleen <ak@linux.intel.com> 530 531 * lto-plugin.c: Include <hashtab.h> 532 (sym_aux): Add next_conflict field to save conflict chains. 533 (plugin_file_info): Add conflicts symtab. 534 (parse_table_entry): Initialize aux->next_conflict. 535 (process_symtab): Increment found. 536 (dump_symtab): Add. 537 (finish_conflict_resolution): Add. 538 (free_symtab): Add. 539 (write_resolution): Remove symbols loop and move into 540 dump_symtab. Call dump_symtab for main symbol and conflicts table. 541 Call free_symtab to free conflicts table. 542 (SWAP): Add. 543 (eq_sym): Add. 544 (hash_sym): Add. 545 (symbol_strength): Add. 546 (resolve_conflicts): Add. 547 (claim_file_handler): Add n variable. Check return value of 548 process_symtab. Call resolve_conflicts. 549 5502010-07-27 Andi Kleen <ak@linux.intel.com> 551 552 * lto-plugin.c (translate): Remove debug fprintf. 553 5542010-07-23 H.J. Lu <hongjiu.lu@intel.com> 555 556 PR bootstrap/45042 557 * lto-plugin.c (translate): Cast to unsigned long. 558 5592010-07-23 Andi Kleen <ak@linux.intel.com> 560 561 PR lto/44992 562 * lto-plugin.c (sym_aux): Add. 563 (plugin_symtab): Remove slots. Add aux and id. 564 (parse_table_entry): Change to use aux instead of slots. 565 (LTO_SECTION_PREFIX): Add. 566 (translate): Improve buffer allocation. Change to append 567 symbols to existing out buffer. 568 (get_section): Remove. 569 (process_symtab): Add. 570 (free_2): Free symtab->aux. 571 (write_resolution): Handle aux instead of slots. 572 Print sub id to resolution file. 573 (claim_file_handler): Clear lto_file. Replace get_symtab/translate 574 calls with call to process_symtab. 575 5762010-07-22 Richard Guenther <rguenther@suse.de> 577 578 * Makefile.am: New copy_lto_plugin rule to install the plugin 579 into ../gcc. 580 * Makefile.in: Regenerated. 581 5822010-05-21 Richard Guenther <rguenther@suse.de> 583 584 * lto-plugin.c (write_resolution): Do not assert syms is non-NULL. 585 5862010-05-07 Richard Guenther <rguenther@suse.de> 587 588 * lto-plugin.c (free_2): Do not free resolution_file. 589 (write_resolution): Check that we were passed a resolution file. 590 (all_symbols_read_handler): Adjust. 591 (cleanup_handler): Do not remove the resolution file. 592 (process_option): Handle -fresolution=. 593 5942010-05-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 595 596 PR other/43620 597 * configure.ac (AM_INIT_AUTOMAKE): Add no-dist. 598 * Makefile.in: Regenerate. 599 6002010-04-23 Richard Guenther <rguenther@suse.de> 601 602 PR lto/41550 603 * lto-plugin.c (parse_table_entry): Use xstrdup and xrealloc. 604 (translate): Likewise. 605 (all_symbols_read_handler): Likewise. 606 (claim_file_handler): Likewise. 607 (process_option): Likewise. 608 (add_output_files): Likewise. Remove filename length limit. 609 6102010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> 611 612 * Makefile.in: Regenerate. 613 * aclocal.m4: Regenerate. 614 6152010-03-16 Dmitry Gorbachev <d.g.gorbachev@gmail.com> 616 617 PR lto/43336 618 * lto-plugin.c (cleanup_handler): Delete temporary output files. 619 6202010-01-11 Richard Guenther <rguenther@suse.de> 621 622 PR lto/41569 623 * Makefile.am: Disable dependencies. 624 * Makefile.in: Regenerated. 625 6262010-01-03 H.J. Lu <hongjiu.lu@intel.com> 627 628 PR lto/42520 629 * lto-plugin.c (exec_lto_wrapper): Output lto-wrapper command 630 if -v is passed. 631 6322009-12-05 H.J. Lu <hongjiu.lu@intel.com> 633 634 PR bootstrap/42306 635 * configure: Regenerated. 636 * Makefile.in: Likewise. 637 6382009-11-19 Rafael Avila de Espindola <espindola@google.com> 639 640 PR bootstrap/42096 641 * lto-plugin.c (claim_file_handler): Print offsets in hex. 642 6432009-11-12 Rafael Avila de Espindola <espindola@google.com> 644 645 * lto-plugin.c (write_resolution): Assume resolution_file is set. 646 Print the symbol name. 647 (all_symbols_read_handler): Create a resolution file. 648 Pass it to gcc. 649 (cleanup_handler): Remove the resolution file. 650 (process_option): Drop the -resolution option. 651 6522009-11-05 Rafael Avila de Espindola <espindola@google.com> 653 654 * lto-plugin.c (temp_obj_dir_name): Remove. 655 (arguments_file_name): New. 656 (free_2): Free arguments_file_name instead of temp_obj_dir_name. 657 (exec_lto_wrapper): Create arguments file with make_temp_file. 658 (cleanup_handler): Don't remove the temporary directory. Remove the 659 arguments file. 660 (onload): Don't create the temporary directory. 661 6622009-11-04 Richard Guenther <rguenther@suse.de> 663 Rafael Avila de Espindola <espindola@google.com> 664 665 * lto-plugin.c (plugin_file_info): Remove temp field. 666 (cleanup_handler): Don't delete temporary objects. 667 (claim_file_handler): Don't create temporary objects. 668 6692009-11-04 Rafael Avila de Espindola <espindola@google.com> 670 671 * lto-plugin.c (cleanup_handler): Don't cleanup if debugging. 672 6732009-10-30 Rafael Avila de Espindola <espindola@google.com> 674 675 PR41871 676 * lto-plugin.c (claim_file_handler): Close files that we created. 677 6782009-10-28 Rafael Avila de Espindola <espindola@google.com> 679 680 * lto-plugin.c (all_symbols_read_handler): Use LDPL_FATAL instead of 681 LDPL_ERROR 682 6832009-10-27 Dmitry Gorbachev <d.g.gorbachev@gmail.com> 684 685 PR lto/41652 686 * configure.ac: Call AC_SYS_LARGEFILE before AC_OUTPUT. 687 * configure: Regenerate. 688 6892009-10-26 Richard Guenther <rguenther@suse.de> 690 691 * configure.ac: Use AM_MAINTAINER_MODE. 692 * acinclude.m4: Remove. 693 * configure: Re-generate. 694 * Makefile.in: Likewise. 695 * aclocal.m4: Likewise. 696 6972009-10-19 Rafael Avila de Espindola <espindola@google.com> 698 699 PR40790 700 * configure: Regenerate. 701 * configure.ac: Add AC_TYPE_UINT64_T. 702 7032009-10-16 Rafael Avila de Espindola <espindola@google.com> 704 705 * lto-plugin.c (message): New variable. 706 (check): New function. 707 (parse_table_entry, translate, write_resolution,add_output_files, 708 exec_lto_wrapper,claim_file_handler, onload): Use check instead of 709 assert. 710 (cleanup_handler): Use check instead of assert. Remove the arguments 711 file if it exists. 712 7132009-10-15 Rafael Avila de Espindola <espindola@google.com> 714 715 * lto-plugin.c (resolution_file): New. 716 (free_1): Update comment. 717 (free_2): Free resolution_file. 718 (write_resolution): Write resolution to specified file. Use the 719 syms array from the symbol table. 720 (all_symbols_read_handler): Delay call to free_1 past call to 721 write_resolution. 722 (process_option): Add a -resolution option. 723 7242009-10-13 Richard Guenther <rguenther@suse.de> 725 726 * Makefile.am (liblto_plugin_la_LIBADD): Link against the 727 correct libiberty. 728 * Makefile.in: Regenerated. 729 7302009-10-08 Rafael Avila de Espindola <espindola@google.com> 731 732 * lto-plugin.c (add_input_library): New. 733 (all_symbols_read_handler): Use add_input_library for items that 734 start with -l. 735 (process_option): Fit in 80 columns. 736 (onload): Handle LDPT_ADD_INPUT_LIBRARY. 737 7382009-10-02 Diego Novillo <dnovillo@google.com> 739 740 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE 741 and -D_FILE_OFFSET_BITS=64. 742 * configure.ac: Add AC_SYS_LARGEFILE. 743 * configure: Regenerate. 744 * Makefile.in: Regenerate. 745 * lto-plugin.c: Fix copyright boilerplate. 746 7472009-10-02 Diego Novillo <dnovillo@google.com> 748 749 * Makefile.am (ACLOCAL_AMFLAGS): Define. 750 * aclocal.m4: Regenerate with aclocal-2.64 751 * acinclude.m4: Remove. 752 * Makefile.in: Regenerate with automake-1.11 753 * configure.ac (AC_PREREQ): Update to 2.64. 754 * configure: Regenerate. 755 7562009-10-02 Diego Novillo <dnovillo@google.com> 757 758 * Makefile.am (AM_CPPFLAGS): Remove -D_LARGEFILE_SOURCE 759 and -D_FILE_OFFSET_BITS=64. 760 * configure.ac: Add AC_SYS_LARGEFILE. 761 * configure: Regenerate. 762 * Makefile.in: Regenerate. 763 * lto-plugin.c: Fix copyright boilerplate. 764 7652009-10-02 Diego Novillo <dnovillo@google.com> 766 767 * Makefile.am (ACLOCAL_AMFLAGS): Define. 768 * aclocal.m4: Regenerate with aclocal-2.64 769 * acinclude.m4: Remove. 770 * Makefile.in: Regenerate with automake-1.11 771 * configure.ac (AC_PREREQ): Update to 2.64. 772 * configure: Regenerate. 773 7742009-10-02 Rafael Avila de Espindola <espindola@google.com> 775 776 * Makefile.am (liblto_plugin_la_SOURCES): Remove 777 $(top_srcdir)/../gcc/lto/common.c 778 * Makefile.in: Regenerate. 779 7802009-10-01 Rafael Avila de Espindola <espindola@google.com> 781 782 * lto-plugin.c (pass_through_items): New. 783 (num_pass_through_items): New. 784 (all_symbols_read_handler): Update to use the -pass-through option. 785 (process_option): Replace -libgcc with -pass-through. 786 7872009-09-30 Rafael Avila de Espindola <espindola@google.com> 788 789 * lto-plugin.c (onload): Return a ld_plugin_status. Don't require 790 register_cleanup to be set. 791 7922009-09-30 Rafael Avila de Espindola <espindola@google.com> 793 794 * Makefile.am: Remove all reference to ltosymtab. 795 * Makefile.in: Regenerate. 796 * lto-symtab.c: Remove. 797 7982009-05-21 Diego Novillo <dnovillo@google.com> 799 800 * configure.ac: Remove call to AC_CHECK_GELF. 801 Call AC_ARG_VAR for LIBELFLIBS and LIBELFINC. 802 * acinclude.m4: Do not include ../config/libelf.m4 803 * Makefile.am (LIBELFLIBS): Define. 804 (LIBELFINC): Define. 805 (AM_CPPFLAGS): Add $(LIBELFINC). 806 (ltosymtab_LDADD): Add $(LIBELFLIBS). 807 (liblto_plugin_la_LIBADD): Add $(LIBELFLIBS) 808 * lto-plugin.c: Always include <gelf.h> 809 * lto-symtab.c: Likewise. 810 * configure: Regenerate. 811 * Makefile.in: Regenerate. 812 8132009-03-23 Rafael Avila de Espindola <espindola@google.com> 814 815 * lto-plugin.c (libgcc_filename): New. 816 (all_symbols_read_handler): Pass libgcc to the linker. 817 (all_symbols_read_handler): Parse -libgcc 818 8192009-02-05 Rafael Avila de Espindola <espindola@google.com> 820 821 * Makefile.am (liblto_plugin_la_LIBADD): Link with libiberty. 822 * Makefile.in: Regenerate. 823 * lto-plugin.c (add_output_files): Argument is now a FILE. 824 (exec_lto_wrapper): Use writeargv and pex. 825 8262009-02-04 Rafael Avila de Espindola <espindola@google.com> 827 828 Revert: 829 2009-02-04 Rafael Avila de Espindola <espindola@google.com> 830 * lto-plugin.c (exec_lto_wrapper): Use writeargv. 831 832 8332009-02-04 Rafael Avila de Espindola <espindola@google.com> 834 835 * lto-plugin.c (exec_lto_wrapper): Use writeargv. 836 8372009-01-29 Rafael Avila de Espindola <espindola@google.com> 838 839 * lto-plugin.c: Include libiberty.h. 840 (exec_lto_wrapper, claim_file_handler): Use asprintf instead of 841 snprintf. 842 8432009-01-29 Rafael Avila de Espindola <espindola@google.com> 844 845 * lto-plugin.c (exec_lto_wrapper): Write argv to a file. Pass that 846 file to lto-wrapper. 847 8482009-01-28 Rafael Avila de Espindola <espindola@google.com> 849 850 * lto-plugin.c (plugin_file_info): Remove fd and elf. 851 (parse_table_entry): strdup entry->name and entry->comdat_key. 852 (free_1): Free name and comdat_key. Don't close the file. Don't call 853 elf_end. 854 (claim_file_handler): Always call elf_end. 855 8562008-12-23 Rafael Avila de Espindola <espindola@google.com> 857 858 * Makefile.am (AM_CPPFLAGS): Add -D_LARGEFILE_SOURCE 859 -D_FILE_OFFSET_BITS=64 860 * Makefile.in: Regenerate 861 8622008-12-22 Rafael Avila de Espindola <espindola@google.com> 863 864 * Makefile.am (gcc_version, target_noncanonical, libexecsubdir): New. 865 (lib_LTLIBRARIES): Rename to libexecsub_LTLIBRARIES. 866 * Makefile.in: Regenerate. 867 * acinclude.m4: Include ../config/acx.m4 and ../lt~obsolete.m4 868 * configure: Regenerate. 869 * configure.ac: Add AC_SUBST(target_noncanonical). 870 8712008-12-08 Rafael Avila de Espindola <espindola@google.com> 872 873 * lto-plugin.c: Include stdbool.h. 874 (debug, nop): Declare as bool. 875 8762008-12-08 Rafael Avila de Espindola <espindola@google.com> 877 878 * lto-plugin.c (nop): New. 879 (use_original_files): New. 880 (all_symbols_read_handler): Call use_original_files if nop is true. 881 (process_option): Parse the -nop option. 882 8832008-12-08 Rafael Avila de Espindola <espindola@google.com> 884 885 * lto-plugin.c (debug): New. 886 (exec_lto_wrapper): Print argv if debug is true. 887 (process_option): Process the -debug command line option. 888 8892008-12-03 Rafael Avila de Espindola <espindola@google.com> 890 891 * lto-plugin.c (process_option): The argument is now a single option, 892 not a space separated list. 893 8942008-12-02 Rafael Avila de Espindola <espindola@google.com> 895 896 * lto-plugin.c: Include sys/types.h and sys/wait.h 897 (output_files, num_output_files, lto_wrapper_argv, 898 lto_wrapper_num_args): New. 899 (free_2): Free output_files. 900 (write_resolution): Disable. 901 (add_output_files): New. 902 (exec_lto_wrapper): New. 903 (all_symbols_read_handler): Run lto-wrapper. 904 (claim_file_handler): Free lto_file.name and call elf_end. 905 (process_option): New. 906 9072008-11-26 Rafael Espindola <espindola@google.com> 908 909 * lto-plugin.c (add_input_file): New. 910 (get_section): Return NULL if get_section fails. 911 (write_resolution): New. 912 (all_symbols_read_handler): Call add_input_file. 913 (claim_file_handler): Unlink the correct file. 914 (onload): Record add_input_file. 915 9162008-09-23 Rafael Espindola <espindola@google.com> 917 918 * Makefile.am (ltosymtab_SOURCES, liblto_plugin_la_SOURCES): 919 Update the location of common.c. 920 * Makefile.in: Regenerate. 921 * common.c: Moved to gcc/lto. 922 * common.h: Moved to gcc/lto. 923 * lto-plugin.c: Update the location of common.h. 924 * lto-symtab.c: Update the location of common.h. 925 9262008-09-23 Rafael Espindola <espindola@google.com> 927 928 * common.c: Include common.h. 929 (lto_kind_str, lto_visibility_str, lto_resolution_str): Use explicit 930 sizes. 931 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): Use 932 explicit sizes. 933 9342008-09-23 Rafael Espindola <espindola@google.com> 935 936 * lto-plugin.c (plugin_file_info): Add temp. 937 (cleanup_handler): Only delete temporary files. 938 (claim_file_handler): Initialize lto_file.temp. 939 9402008-09-23 Rafael Espindola <espindola@google.com> 941 942 * plugin-api.h: Moved to include. 943 9442008-09-23 Rafael Espindola <espindola@google.com> 945 946 * lto-plugin.c (all_symbols_read_handler): Print resolution in a new 947 format. 948 9492008-09-22 Rafael Espindola <espindola@google.com> 950 951 * plugin-api.h: Copy from binutils' cvs. 952 9532008-09-22 Rafael Espindola <espindola@google.com> 954 955 * lto-symtab.c (get_symbols, add_symbols): Update signature. 956 * plugin-api.h: Copy from binutils' cvs. 957 9582008-09-22 Rafael Espindola <espindola@google.com> 959 960 * common.h (lto_kind_str, lto_visibility_str, lto_resolution_str): 961 Make extern 962 9632008-09-10 Rafael Espindola <espindola@google.com> 964 965 * lto-plugin.c (onload): add missing break statements and asserts. 966 * lto-symtab.c (claim_file_handler): Make it static. 967 (all_symbols_read_handler): Make it static. 968 (all_file_handles): Make it static. 969 (num_file_handles): Make it static. 970 (register_claim_file): Make it static. 971 (register_object): Indent properly. 972 9732008-09-10 Rafael Avila de Espindola <espindola@google.com> 974 975 * Makefile.am (ltosymtab_LDADD): Add -lelf. 976 * Makefiel.in: Regenerate. 977 * lto-plugin.c: Include ar.h. 978 (claim_file_handler): Handle file->offset != 0. 979 * lto-symtab.c: Include gelf.h. 980 (all_file_handles): Change type. 981 (register_object): New. 982 (register_file): Add support for archives. 983 (resolve): Update to new type of all_file_handles. 984 (print): Update to new type of all_file_handles. 985 (free_all): Update to new type of all_file_handles. 986 (main): Update to new type of all_file_handles. 987 9882008-09-10 Rafael Avila de Espindola <espindola@google.com> 989 990 * lto-plugin.c (get_string_table): Remove. 991 (get_section): Use elf_strptr instead of get_string_table. 992 9932008-09-08 Doug Kwan <dougkwan@google.com> 994 995 * lto-plugin.c (all_symbols_read_handler): Widen fprintf arguments 996 to 64-bit to fix a 32-bit bootstrap failure due to format warnings. 997 9982008-09-08 Rafael Avila de Espindola <espindola@google.com> 999 1000 * Makefile.am (ltosymtab_SOURCES): add common.c. 1001 (ltosymtab_CFLAGS): New. 1002 (liblto_plugin_la_SOURCES): Add common.c. 1003 * Makefile.in: Regenerate. 1004 * common.c: New. 1005 * common.h: New. 1006 * lto-plugin.c: Include stdio.h, inttypes.h and common.h. 1007 (plugin_symtab): New. 1008 (plugin_file_info): New. 1009 (register_all_symbols_read): New. 1010 (get_symbols): New. 1011 (claimed_files): New. 1012 (num_claimed_files): New. 1013 (translate): Don't drop the slot number. 1014 (free_1): New. 1015 (free_2): New. 1016 (all_symbols_read_handler): New. 1017 (claim_file_handler): Record every claimed file. 1018 (onload): Handle LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and 1019 LDPT_GET_SYMBOLS. 1020 * lto-symtab.c: Include stdlib.h, string.h and common.h. 1021 (current_file_handle): Remove. 1022 (ld_plugin_all_symbols_read_handler): New. 1023 (plugin_handle): New. 1024 (file_handle): New. 1025 (all_file_handles): New. 1026 (num_file_handles): New. 1027 (get_symbols): New. 1028 (register_all_symbols_read): New. 1029 (add_symbols): Don't print the symbols, just record them. 1030 (ld_plugin_tv): Add LDPT_REGISTER_ALL_SYMBOLS_READ_HOOK and 1031 LDPT_GET_SYMBOLS. 1032 (load_plugin): Use plugin_handle. 1033 (register_file): Add the file handle to all_file_handles. 1034 (resolve): New. 1035 (print): New. 1036 (unload_plugin): New. 1037 (free_all): New. 1038 (main): Call all_symbols_read_handler and free resources. 1039 10402008-09-03 Rafael Avila de Espindola <espindola@google.com> 1041 1042 * Makefile.am (AM_CFLAGS): New. 1043 (ltosymtab_LDADD): Remove -lelf. Add -ldl. 1044 (lib_LTLIBRARIES): New. 1045 (liblto_plugin_la_SOURCES): New. 1046 (liblto_plugin_la_LIBADD): New. 1047 * Makefile.in: Regenerate. 1048 * acinclude.m4: Don't include ../config/acx.m4 and 1049 ../config/no-executables.m4. 1050 Include ../ltsugar.m4, ../ltoptions.m4, ../ltversion.m4 and 1051 ../libtool.m4. 1052 * aclocal.m4: Regenerate. 1053 * configure: Regenerate. 1054 * configure.ac: Use AM_PROG_LIBTOOL. 1055 * lto-plugin.c: New. 1056 * lto-symtab.c: Rewrite to use the plugin. 1057 * plugin-api.h: New. 1058 10592008-08-25 Rafael Avila de Espindola <espindola@google.com> 1060 1061 * configure: Regenerate. 1062 * configure.ac: Use AC_CHECK_GELF. 1063 * lto-symtab.c: Include gelf.h. 1064 (get_string_table): Use size independent API. 1065 (printTable): Use lld to print 64 bit integers. 1066 10672008-08-22 Rafael Avila de Espindola <espindola@google.com> 1068 1069 * lto-symtab.c (parse_table_entry): Assert entry->kind and 1070 entry->visibility are valid. 1071 10722008-07-22 Rafael Avila de Espindola <espindola@google.com> 1073 * lto-symtab.c (table_entry): Add comdat. 1074 (parse_table_entry): Read comdat. 1075 10762008-08-21 Rafael Espindola <espindola@google.com> 1077 1078 * Makefile.am: New. 1079 * Makefile.in: New. 1080 * acinclude.m4: New. 1081 * aclocal.m4: New. 1082 * configure: New. 1083 * configure.ac: New. 1084 * lto-symtab.c: New. 1085