1. 10 Oct, 2009 2 commits
  2. 09 Oct, 2009 19 commits
  3. 08 Oct, 2009 19 commits
    • re PR rtl-optimization/41574 (Distribute floating point expressions causes bad code [4.4 only]) · 88beb54d
      2009-10-08  Doug Kwan  <dougkwan@google.com>
      
      	PR rtl-optimization/41574
      	* gcc.dg/pr41574.c: New test.
      
      From-SVN: r152580
      Doug Kwan committed
    • lto-elf.c (init_shdr##BITS, [...]): Remove trailing "." from diagnostics. · 3c2e7d45
      	* lto-elf.c (init_shdr##BITS, lto_elf_begin_section_with_type,
      	init_ehdr##BITS, lto_elf_file_close): Remove trailing "." from
      	diagnostics.
      	* lto-lang.c (lto_post_options): Remove trailing "." from
      	diagnostics.
      
      From-SVN: r152579
      Joseph Myers committed
    • * gcc.c (main): Remove trailing "." from diagnostics. · 23cd46a1
      From-SVN: r152578
      Joseph Myers committed
    • Add support for debugging with ICF (Identical Code Folding). · 77831620
      gcc/ChangeLog:
      	Add support for debugging with ICF (Identical Code Folding).
      	* calls.c (debug.h): New #include.
      	(emit_call_1): Call virtual_call_token debug hook.
      	* common.opt (-fenable-icf-debug): New option.
      	* dwarf2out.c (dwarf2_debug_hooks): Add entries for new hooks (two
      	locations in the source).
      	(poc_label_num): New variable.
      	(dcall_entry, vcall_entry): New typedefs.
      	(dcall_table, vcall_table): New variables.
      	(struct vcall_insn): New type.
      	(vcall_insn_table): New variable.
      	(DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION): New macros.
      	(size_of_dcall_table): New function.
      	(output_dcall_table): New function.
      	(size_of_vcall_table): New function.
      	(output_vcall_table): New function.
      	(dwarf2out_direct_call): New function.
      	(vcall_insn_table_hash): New function.
      	(vcall_insn_table_eq): New function.
      	(dwarf2out_virtual_call_token): New function.
      	(dwarf2out_virtual_call): New function.
      	(dwarf2out_init): Allocate new tables and sections.
      	(prune_unused_types): Mark DIEs referenced from direct call table.
      	(dwarf2out_finish): Output direct and virtual call tables.
      	* final.c (final_scan_insn): Call direct_call and virtual_call
      	debug hooks.
      	* debug.h (struct gcc_debug_hooks): Add direct_call,
      	virtual_call_token, virtual_call hooks.
      	(debug_nothing_uid): New function.
      	* debug.c (do_nothing_debug_hooks): Add dummy entries for new hooks.
      	(debug_nothing_uid): New function.
      	* dbxout.c (dbx_debug_hooks): Add dummy entries for new hooks.
      	* sdbout.c (sdb_debug_hooks): Likewise.
      	* vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
      	* doc/invoke.texi (-fenable-icf-debug): New option.
      
      gcc/testsuite/ChangeLog:
      	Add support for debugging with ICF (Identical Code Folding).
      	* g++.dg/debug/dwarf2/icf.C: New test.
      
      From-SVN: r152577
      Cary Coutant committed
    • re PR debug/41353 (VTA missed-debug issues) · 968e5728
      PR debug/41353
      * regmove.c (regmove_backward_pass): Replace src with dst in the
      debug insn, and check for dst before rather than after.
      
      From-SVN: r152573
      Alexandre Oliva committed
    • rs6000.c (rs6000_delegitimize_address): Remove. · 42ccb890
      * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
      (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
      
      From-SVN: r152571
      Janis Johnson committed
    • Fix 41626 from Jan Hubicka · 625f802c
      From-SVN: r152569
      Jan Hubicka committed
    • * config/avr/avr.c (last_insn_address) Remove variable. · 007a178c
      	(expand_prologue): Don't initialise last_insn_address variable.
      	(final_prescan_insn): Don't output insn size.
      	* config/avr/avr.opt (msize): Remove switch.
      	* doc/invoke.texi (AVR Options): Remove documentation of -msize
      	switch.
      
      From-SVN: r152568
      Anatoly Sokolov committed
    • combine.c (label_tick_ebb_start): Fix comment. · e3104f55
      	* combine.c (label_tick_ebb_start): Fix comment.
      	(combine_instructions): Set label_tick and label_tick_ebb_start before
      	calling setup_incoming_promotions.  Start them from 1.  Increment
      	label_tick instead of deriving it from the BB index.  Rather than
      	comparing ticks use the block from the previous iteration to decide
      	whether to start a new EBB.  Remove empty lines before function.
      
      testsuite/
      	* gcc.target/mips/truncate-6.c: New test.
      
      From-SVN: r152567
      Adam Nemet committed
    • bitmap_allocator.h: Minor clean-ups. · a020110e
      2009-10-08  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/ext/bitmap_allocator.h: Minor clean-ups.
      
      From-SVN: r152566
      Paolo Carlini committed
    • re PR c++/36816 ([c++0x] error deducing template argument taking the address of… · f7d5a7cd
      re PR c++/36816 ([c++0x] error deducing template argument taking the address of rvalue reference template)
      
      	PR c++/36816
      	* pt.c (maybe_adjust_types_for_deduction): Do rvalue ref adjustment
      	even when DEDUCE_EXACT.
      
      From-SVN: r152565
      Jason Merrill committed
    • re PR c++/37177 ([c++0x] ICE on decltype(rel_ops::operator><int>);) · ccb05613
      	PR c++/37177
      	* pt.c (resolve_nondeduced_context): New.
      	* cvt.c (convert_to_void): Call it.
      	* semantics.c (finish_decltype_type): Likewise.
      	* typeck.c (decay_conversion): Here too.
      	* pt.c (tsubst_decl): Don't clobber input_location.
      	Don't register a bad specialization.
      
      From-SVN: r152564
      Jason Merrill committed
    • re PR middle-end/41573 (segfault in trunk related to strings) · 6728ee79
      	PR middle-end/41573
      	* builtins.c (fold_builtin_isascii): Use fold_build2.
      	(fold_builtin_isdigit): Ditto.
      	* except.c (duplicate_eh_regions_1): Tolerate NULL labels.
      	* tree-cfg.c (struct rus_data, remove_useless_stmts_warn_notreached,
      	remove_useless_stmts_cond, remove_useless_stmts_tf,
      	remove_useless_stmts_tc, remove_useless_stmts_bind,
      	remove_useless_stmts_goto, remove_useless_stmts_label,
      	remove_useless_stmts_1, remove_useless_stmts,
      	pass_remove_useless_stmts): Remove.
      	* tree-pass.h (pass_remove_useless_stmts): Don't declare.
      	* passes.c (init_optimization_passes): Don't add
      	pass_remove_useless_stmts.
      	* tree-eh.c (lower_eh_constructs_2): Handle empty cleanups.
      	* tree.c (free_lang_data_in_decl): Don't clear DECL_INITIAL of
      	static constants.
      	* lto-symtab.c (lto_symtab_register_decl): Accepts DECL_INITIAL
      	for static constants.
      	* lto-streamer-out.c (output_gimple_stmt): Handle GIMPLE_NOP.
      	* lto-streamer-in.c (input_gimple_stmt): Handle GIMPLE_NOP.
      
      testsuite/
      	* gcc.dg/tree-ssa/foldstring-1.c: Use fre dump.
      	* gcc.dg/tree-ssa/useless-1.c: Use gimple dump.
      	* gcc.dg/pr41573.c: New test.
      
      From-SVN: r152563
      Michael Matz committed
    • gimple.c (free_gimple_type_tables): New function. · 0d0bfe17
      2009-10-08  Richard Guenther  <rguenther@suse.de>
      
      	* gimple.c (free_gimple_type_tables): New function.
      	* gimple.h (free_gimple_type_tables): Declare.
      
      	lto/
      	* lto.c (read_cgraph_and_symbols): Free the gimple type merging
      	hash tables.
      
      From-SVN: r152562
      Richard Guenther committed
    • 2009-10-07 Mark Heffernan <meheff@google.com> · 90e1a349
      	* ipa-prop.c (ipa_print_node_params) Only print
      	names of named arguments.
      
      From-SVN: r152561
      Mark Heffernan committed
    • argv.c (consume_whitespace): New function. · 70277b30
      2009-10-08  Daniel Gutson  <dgutson@codesourcery.com>
              Daniel Jacobowitz  <dan@codesourcery.com>
              Pedro Alves  <pedro@codesourcery.com>
      
              libiberty/
              * argv.c (consume_whitespace): New function.
              (only_whitespace): New function.
              (buildargv): Always use ISSPACE by calling consume_whitespace.
              (expandargv): Skip empty files.  Do not stop at the first empty
              argument (calling only_whitespace)..
              * testsuite/test-expandargv.c: (test_data): Test empty lines
              and empty arguments.
              (run_tests): Fix false positives due to shorter arguments.
      
      
      Co-Authored-By: Daniel Jacobowitz <dan@codesourcery.com>
      Co-Authored-By: Pedro Alves <pedro@codesourcery.com>
      
      From-SVN: r152560
      Daniel Gutson committed
    • gnu.ver: Adjust exports. · 38bf8621
      2009-10-08  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* config/abi/pre/gnu.ver: Adjust exports.
      
      From-SVN: r152559
      Paolo Carlini committed
    • lto-plugin.c (add_input_library): New. · d520c7fb
      2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
      
      	* lto-plugin.c (add_input_library): New.
      	(all_symbols_read_handler): Use add_input_library for items that
      	start with -l.
      	(process_option): Fit in 80 columns.
      	(onload): Handle LDPT_ADD_INPUT_LIBRARY.
      
      2009-10-08  Rafael Avila de Espindola  <espindola@google.com>
      
      	* gcc.c (LINK_COMMAND_SPEC): Pass libc with -pass-through if it is
      	being statically linked.
      
      From-SVN: r152558
      Rafael Avila de Espindola committed