Skip to content
Snippets Groups Projects
  1. Oct 10, 2009
  2. Oct 09, 2009
    • Janus Weil's avatar
      re PR fortran/41585 ([OOP] Reject CLASS(T) as component of "TYPE :: T") · 619dd721
      Janus Weil authored
      2009-10-09  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/41585
      	* decl.c (build_struct): Bugfix for CLASS components.
      
      
      2009-10-09  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/41585
      	* gfortran.dg/class_2.f03: Extended test case.
      
      From-SVN: r152608
      619dd721
    • Richard Guenther's avatar
      re PR lto/41638 (Back-end builtins are mishandled) · e9e4b3a8
      Richard Guenther authored
      2009-10-09  Richard Guenther  <rguenther@suse.de>
      
      	PR lto/41638
      	* target-def.h (TARGET_BUILTIN_DECL): Define.
      	(TARGET_INITIALIZER): Add TARGET_BUILTIN_DECL.
      	* target.h (struct gcc_target): Add builtin_decl target hook.
      	* doc/tm.texi (TARGET_BUILTIN_DECL): Document.
      
      	* lto-streamer-in.c (lto_get_builtin_tree): Fix handling of
      	target builtins.
      	* lto-streamer-out.c (lto_output_tree_pointers): Use sorry,
      	not gcc_unreachable.
      	(lto_output_builtin_tree): Sorry if the target does not support
      	streaming target builtins.
      
      	* config/rs6000/rs6000.c (TARGET_BUILTIN_DECL): Define.
      	(rs6000_builtin_decl): New function.
      	* config/i386/i386.c (TARGET_BUILTIN_DECL): Define.
      	(ix86_builtin_decl): New function.
      
      From-SVN: r152606
      e9e4b3a8
    • Tobias Burnus's avatar
      re PR fortran/41582 ([OOP] Allocation of abstract types requires a type spec or a SOURCE) · d0a9804e
      Tobias Burnus authored
      2009-10-09  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/41582
              * decl.c (encapsulate_class_symbol): Save attr.abstract.
              * resolve.c (resolve_allocate_expr): Reject class allocate
              without typespec or source=.
              * trans-stmt.c (gfc_trans_allocate): Change gfc_warning
              into gfc_error for "not yet implemented".
      
      2009-10-09  Tobias Burnus  <burnus@net-b.de>
      
              PR fortran/41582
              * gfortran.dg/class_allocate_1.f03: Modify code such that
              it compiles with the gfc_warning->gfc_error change.
              * gfortran.dg/class_allocate_1.f03: New test.
      
      From-SVN: r152601
      d0a9804e
    • Janus Weil's avatar
      re PR fortran/41579 ([OOP] Nesting of SELECT TYPE) · 7431bf06
      Janus Weil authored
      2009-10-09  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/41579
      	* gfortran.h (gfc_select_type_stack): New struct, to be used as a stack
      	for SELECT TYPE statements.
      	(select_type_stack): New global variable.
      	(type_selector,select_type_tmp): Removed.
      	* match.c (type_selector,type_selector): Removed.
      	(select_type_stack): New variable, serving as a stack for
      	SELECT TYPE statements.
      	(select_type_push,select_type_set_tmp): New functions.
      	(gfc_match_select_type): Call select_type_push.
      	(gfc_match_type_is): Call select_type_set_tmp.
      	* parse.c (select_type_pop): New function.
      	(parse_select_type_block): Call select_type_pop.
      	* symbol.c (select_type_insert_tmp): New function.
      	(gfc_find_sym_tree): Call select_type_insert_tmp.
      
      
      2009-10-09  Janus Weil  <janus@gcc.gnu.org>
      
      	PR fortran/41579
      	* gfortran.dg/select_type_6.f03: New test.
      
      From-SVN: r152600
      7431bf06
    • Jakub Jelinek's avatar
      re PR preprocessor/41445 (Debug information is wrong with and without --save-temps.) · 21ece9b2
      Jakub Jelinek authored
      	PR preprocessor/41445
      	* c-ppoutput.c (do_line_change): New function.
      	(cb_line_change): Use it.
      	(scan_translation_unit): Call do_line_change if
      	avoid_paste or PREV_WHITE and token location is on a different line
      	than print.src_line.
      
      	* gcc.dg/cpp/separate-1.c: Adjust.
      	* gcc.dg/cpp/spacing1.c: Add -P to dg-options.
      	* gcc.dg/debug/dwarf2/pr41445-1.c: New test.
      	* gcc.dg/debug/dwarf2/pr41445-2.c: New test.
      	* gcc.dg/debug/dwarf2/pr41445-3.c: New test.
      	* gcc.dg/debug/dwarf2/pr41445-4.c: New test.
      	* gcc.dg/debug/dwarf2/pr41445-5.c: New test.
      	* gcc.dg/debug/dwarf2/pr41445-6.c: New test.
      
      From-SVN: r152599
      21ece9b2
    • Jakub Jelinek's avatar
      re PR debug/40521 (-g causes GCC to generate .eh_frame) · 9c1e641a
      Jakub Jelinek authored
      	PR debug/40521
      	* dwarf2out.c (dwarf2out_init): Test whether
      	HAVE_GAS_CFI_SECTIONS_DIRECTIVE is non-zero instead of checking
      	it is defined.
      
      From-SVN: r152598
      9c1e641a
    • Jakub Jelinek's avatar
      re PR rtl-optimization/41646 (Reload ICE due to combiner extending life time of a hard register) · 78441afb
      Jakub Jelinek authored
      	PR rtl-optimization/41646
      	* calls.c (expand_call): For BLKmode types returned in registers
      	avoid likely spilled hard regs in copy_blkmode_from_reg generated
      	insns.
      
      	* gcc.c-torture/compile/pr41646.c: New test.
      
      From-SVN: r152597
      78441afb
    • Richard Guenther's avatar
      re PR tree-optimization/41634 (ICE in dom) · aabf6a03
      Richard Guenther authored
      2009-10-09  Richard Guenther  <rguenther@suse.de>
      
      	PR tree-optimization/41634
      	* tree-ssa-dom.c (remove_local_expressions_from_table): Assert
      	we remove the correct elements.
      	(optimize_stmt): Make sure to update stmt operands before
      	optimizing redundancies.
      
      	* gcc.c-torture/compile/pr41634.c: New testcase.
      
      From-SVN: r152596
      aabf6a03
    • Cary Coutant's avatar
      Updated commit entry for r152577 (added entry for xcoff_debug_hooks in · 38265b74
      Cary Coutant authored
      dbxout.c).
      
      From-SVN: r152595
      38265b74
    • Uros Bizjak's avatar
      sfp-machine.h (__FP_FRAC_SUB_4): Change operand constraint of y0 to "g". · dfb3b0e3
      Uros Bizjak authored
      	* config/i386/32/sfp-machine.h (__FP_FRAC_SUB_4): Change operand
      	constraint of y0 to "g".
      
      From-SVN: r152594
      dfb3b0e3
    • Rafael Avila de Espindola's avatar
      plugin-api.h (ld_plugin_add_input_library): Change argument name to libname. · 63f72e39
      Rafael Avila de Espindola authored
      2009-10-09  Rafael Espindola  <espindola@google.com>
      
      	* plugin-api.h (ld_plugin_add_input_library): Change argument name to
      	libname.
      
      From-SVN: r152592
      63f72e39
    • Andreas Krebbel's avatar
      s390.md ("prefetch"): Remove stcmh for prefetching. · 22d72dbc
      Andreas Krebbel authored
      2009-10-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
      
      	* config/s390/s390.md ("prefetch"): Remove stcmh for prefetching.
      
      From-SVN: r152590
      22d72dbc
    • Paolo Carlini's avatar
      numeric (__adjacent_difference_switch): Fix typo. · 6aa7cd49
      Paolo Carlini authored
      2009-10-09  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/parallel/numeric (__adjacent_difference_switch): Fix typo.
      	* include/parallel/for_each_selectors.h
      	(__adjacent_difference_selector): Likewise.
      
      From-SVN: r152589
      6aa7cd49
    • Richard Guenther's avatar
      re PR driver/41637 (testsuite (-flto/-fwhopr) leaves does not clean up in /tmp) · b1b07c92
      Richard Guenther authored
      2009-10-09  Richard Guenther  <rguenther@suse.de>
      
      	PR driver/41637
      	* lto-wrapper.c (ltrans_output_file, flto_out, args_name): New
      	globals.
      	(lto_wrapper_exit): New function.
      	(fatal): Use it.
      	(fatal_perror): Likewise.
      	(fork_execute): Use global args_name, do not free it.
      	(run_gcc): Use global ltrans_output_file, flto_out, do not free them.
      	* lto-streamer.h: Remove duplicate prototypes.
      
      	PR lto/41635
      	PR lto/41636
      	lto/
      	* lto.c (read_cgraph_and_symbols): Do not assert we can open
      	a file.
      	* lto-elf.c (init_shdr##BITS): Fix i18n problems.
      	(init_ehdr##BITS): Likewise.
      
      From-SVN: r152588
      b1b07c92
    • Richard Guenther's avatar
      cgraph.c (cgraph_create_edge): Check for NULL call_stmt before calling stmt_can_throw_external. · 9f3f7d13
      Richard Guenther authored
      2009-10-09  Richard Guenther  <rguenther@suse.de>
      
      	* cgraph.c (cgraph_create_edge): Check for NULL call_stmt
      	before calling stmt_can_throw_external.
      
      From-SVN: r152587
      9f3f7d13
    • Uros Bizjak's avatar
      block_2.f08: Cleanup "original" tree dump. · af2efb2b
      Uros Bizjak authored
      	* gfortran.dg/block_2.f08: Cleanup "original" tree dump.
      
      From-SVN: r152586
      af2efb2b
    • Eric Botcazou's avatar
      re PR tree-optimization/40071 (ICE (aliasing assert) in vectorizable_store at... · 3f49ba3f
      Eric Botcazou authored
      re PR tree-optimization/40071 (ICE (aliasing assert) in vectorizable_store at tree-vect-stmts.c:3117)
      
      	PR tree-optimization/40071
      	* tree-vect-data-refs.c (vect_create_data_ref_ptr): Build a ref-all
      	pointer if the original data reference doesn't conflict with the
      	created vector data reference.  Fix long line.
      
      From-SVN: r152585
      3f49ba3f
    • Uros Bizjak's avatar
      i386.md (any_div): New code iterator. · 85760734
      Uros Bizjak authored
      	* config/i386/i386.md (any_div): New code iterator.
      	(u): Handle div and udiv.
      	(sgnprefix): Ditto.
      	(<u>divqi3): Macroize insn from divqi3 and udivqi using and_div
      	code iterator.
      	(lfloor<MODEF:mode><SWI48:mode>2): Macroize insn from
      	lfloor<mode>{si,di}2 patterns using SWI48 mode iterator.
      	(lceil<MODEF:mode><SWI48:mode>2): Macroize insn from
      	lceil<mode>{si,di}2 patterns using SWI48 mode iterator.
      
      From-SVN: r152584
      85760734
    • GCC Administrator's avatar
      Daily bump. · bfcd7d74
      GCC Administrator authored
      From-SVN: r152583
      bfcd7d74
  3. Oct 08, 2009
    • Doug Kwan's avatar
      re PR rtl-optimization/41574 (Distribute floating point expressions causes bad code [4.4 only]) · 88beb54d
      Doug Kwan authored
      2009-10-08  Doug Kwan  <dougkwan@google.com>
      
      	PR rtl-optimization/41574
      	* gcc.dg/pr41574.c: New test.
      
      From-SVN: r152580
      88beb54d
    • Joseph Myers's avatar
      lto-elf.c (init_shdr##BITS, [...]): Remove trailing "." from diagnostics. · 3c2e7d45
      Joseph Myers authored
      	* 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
      3c2e7d45
    • Joseph Myers's avatar
      * gcc.c (main): Remove trailing "." from diagnostics. · 23cd46a1
      Joseph Myers authored
      From-SVN: r152578
      23cd46a1
    • Cary Coutant's avatar
      Add support for debugging with ICF (Identical Code Folding). · 77831620
      Cary Coutant authored
      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
      77831620
    • Alexandre Oliva's avatar
      re PR debug/41353 (VTA missed-debug issues) · 968e5728
      Alexandre Oliva authored
      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
      968e5728
    • Janis Johnson's avatar
      rs6000.c (rs6000_delegitimize_address): Remove. · 42ccb890
      Janis Johnson authored
      * config/rs6000/rs6000.c (rs6000_delegitimize_address): Remove.
      (TARGET_DELEGITIMIZE_ADDRESS): Likewise.
      
      From-SVN: r152571
      42ccb890
    • Jan Hubicka's avatar
      Fix 41626 from Jan Hubicka · 625f802c
      Jan Hubicka authored
      From-SVN: r152569
      625f802c
    • Anatoly Sokolov's avatar
      * config/avr/avr.c (last_insn_address) Remove variable. · 007a178c
      Anatoly Sokolov authored
      	(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
      007a178c
    • Adam Nemet's avatar
      combine.c (label_tick_ebb_start): Fix comment. · e3104f55
      Adam Nemet authored
      	* 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
      e3104f55
    • Paolo Carlini's avatar
      bitmap_allocator.h: Minor clean-ups. · a020110e
      Paolo Carlini authored
      2009-10-08  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* include/ext/bitmap_allocator.h: Minor clean-ups.
      
      From-SVN: r152566
      a020110e
    • Jason Merrill's avatar
      re PR c++/36816 ([c++0x] error deducing template argument taking the address... · f7d5a7cd
      Jason Merrill authored
      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
      f7d5a7cd
    • Jason Merrill's avatar
      re PR c++/37177 ([c++0x] ICE on decltype(rel_ops::operator><int>);) · ccb05613
      Jason Merrill authored
      	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
      ccb05613
    • Michael Matz's avatar
      re PR middle-end/41573 (segfault in trunk related to strings) · 6728ee79
      Michael Matz authored
      	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
      6728ee79
    • Richard Guenther's avatar
      gimple.c (free_gimple_type_tables): New function. · 0d0bfe17
      Richard Guenther authored
      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
      0d0bfe17
    • Mark Heffernan's avatar
      2009-10-07 Mark Heffernan <meheff@google.com> · 90e1a349
      Mark Heffernan authored
      	* ipa-prop.c (ipa_print_node_params) Only print
      	names of named arguments.
      
      From-SVN: r152561
      90e1a349
    • Daniel Gutson's avatar
      argv.c (consume_whitespace): New function. · 70277b30
      Daniel Gutson authored
      
      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: default avatarDaniel Jacobowitz <dan@codesourcery.com>
      Co-Authored-By: default avatarPedro Alves <pedro@codesourcery.com>
      
      From-SVN: r152560
      70277b30
    • Paolo Carlini's avatar
      gnu.ver: Adjust exports. · 38bf8621
      Paolo Carlini authored
      2009-10-08  Paolo Carlini  <paolo.carlini@oracle.com>
      
      	* config/abi/pre/gnu.ver: Adjust exports.
      
      From-SVN: r152559
      38bf8621
    • Rafael Avila de Espindola's avatar
      lto-plugin.c (add_input_library): New. · d520c7fb
      Rafael Avila de Espindola authored
      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
      d520c7fb
Loading