- 29 Mar, 2011 2 commits
-
-
From-SVN: r171648
GCC Administrator committed -
PR c++/48313 * pt.c (maybe_adjust_types_for_deduction): Handle T&& deduction from overloaded function. From-SVN: r171643
Jason Merrill committed
-
- 28 Mar, 2011 38 commits
-
-
PR debug/48253 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label, dw_fde_hot_section_end_label, dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label, cold_in_std_section, dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields. Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section fields. (output_fde): Use dw_fde_second_{begin,end} if second is true, otherwise dw_fde_{begin,end}. (output_call_frame_info): Test dw_fde_second_begin != NULL instead of dw_fde_switched_sections. (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct fields, initialize new fields. Initialize in_std_section unconditionally from the first partition. (dwarf2out_end_epilogue): Don't override dw_fde_end when dw_fde_second_begin is non-NULL. (dwarf2out_switch_text_section): Stop initializing removed dw_fde_struct fields, initialize new fields, initialize also dw_fde_end here. Set dw_fde_switch_cfi even when dwarf2out_do_cfi_asm (). Call var_location_switch_text_section. (struct var_loc_list_def): Add last_before_switch field. (arange_table, arange_table_allocated, arange_table_in_use, ARANGE_TABLE_INCREMENT, add_arange): Removed. (size_of_aranges): Count !in_std_section and !second_in_std_section hunks in fdes, instead of looking at arange_table_in_use. (output_aranges): Add aranges_length argument, don't call size_of_aranges here. Instead of using aranges_table* emit ranges for fdes when !in_std_section resp. !second_in_std_section. (dw_loc_list): Break ranges crossing section switch. (convert_cfa_to_fb_loc_list): Likewise. If switched sections, use dw_fde_second_end instead of dw_fde_end as end of last range. (gen_subprogram_die): Don't call add_arange. Use dw_fde_{begin,end} for first partition and if switched section dw_fde_second_{begin,end} for the second. (var_location_switch_text_section_1, var_location_switch_text_section): New functions. (dwarf2out_begin_function): Initialize cold_text_section even when function_section () isn't text_section. (prune_unused_types): Don't walk arange_table. (dwarf2out_finish): Don't needlessly test flag_reorder_blocks_and_partition when testing cold_text_section_used. If info_section_emitted, call size_of_aranges and if it indicates non-empty .debug_aranges, call output_aranges with the computed size. Stop using removed dw_fde_struct fields, use dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end} for second. From-SVN: r171642
Jakub Jelinek committed -
From-SVN: r171641
Ian Lance Taylor committed -
PR debug/48203 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only create ENTRY_VALUE if incoming or address of incoming's MEM is a hard REG. * dwarf2out.c (mem_loc_descriptor): Don't emit DW_OP_GNU_entry_value of DW_OP_fbreg. * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup on ENTRY_VALUE is able to find the canonical parameter VALUE. * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use rtx_equal_p instead of rtx_equal_for_cselib_1 to compare ENTRY_VALUE_EXPs. (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP is a REG_P or MEM_P with REG_P address, compute hash directly instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP. (preserve_only_constants): Don't clear VALUES forwaring ENTRY_VALUE to some other VALUE. * gcc.dg/pr48203.c: New test. From-SVN: r171640
Jakub Jelinek committed -
From-SVN: r171639
Ian Lance Taylor committed -
From-SVN: r171638
Ian Lance Taylor committed -
From-SVN: r171637
Ian Lance Taylor committed -
From-SVN: r171634
Ian Lance Taylor committed -
From-SVN: r171633
Ian Lance Taylor committed -
gcc/ 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org> * builtins.c (expand_builtin_memset_args): Use gen_int_mode instead of GEN_INT. From-SVN: r171632
Richard Sandiford committed -
From-SVN: r171631
Ian Lance Taylor committed -
A named interface type can't have named methods anyhow. From-SVN: r171630
Ian Lance Taylor committed -
cfgexpand.c (expand_gimple_cond): Always set the source location and block before expanding the statement. * cfgexpand.c (expand_gimple_cond): Always set the source location and block before expanding the statement. (expand_gimple_stmt_1): Likewise. Set them here... (expand_gimple_stmt): ...and not here. Tidy. * cfglayout.c (curr_insn_locator): Return 0 if the current location is unknown. From-SVN: r171629
Eric Botcazou committed -
* Makefile.in: New rule for cprop.o. * gcse.c: Move constant/copy propagation to cprop.c. (compute_local_properties): Only handle expression tables. (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise. (one_pre_gcse_pass, one_code_hoisting_pass): Likewise. (hash_set, insert_set_in_table, gcse_constant_p, lookup_set, next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set, mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem, compute_cprop_data, find_used_regs, try_replace_reg, find_avail_set, cprop_jump, constprop_register, cprop_insn, local_cprop_find_used_regs, do_local_cprop, local_cprop_pass, fis_get_condition, implicit_set_cond_p, find_implicit_sets, find_bypass_set, reg_killed_on_edge, bypass_block, bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): Move to... * cprop.c: ...here. New file, constant/copy propagation for RTL moved from gcse.c to here with minor cleanups in duplicated code. From-SVN: r171627
Steven Bosscher committed -
2011-03-28 H.J. Lu <hongjiu.lu@intel.com> * config/i386/i386.c (flag_opts): Fix a typo in -mavx256-split-unaligned-store. From-SVN: r171626
H.J. Lu committed -
* config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE, LIBCALL_VALUE): Remove macros. * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define. (h8300_function_value, h8300_libcall_value, h8300_function_value_regno_p): New functions. From-SVN: r171625
Anatoly Sokolov committed -
* config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro. From-SVN: r171624
Anatoly Sokolov committed -
PR go/48312 Fix fd_select.go for changes in FD handling. We have to wake up the goroutine waiting in select each time we change the set of descriptors we are waiting for, unlike epoll. From-SVN: r171623
Ian Lance Taylor committed -
* tree-ssa-threadupdate.c (redirect_edges): Call create_edge_and_update_destination_phis as needed. (create_edge_and_update_destination_phis): Accept new BB argument. All callers updated. (thread_block): Do not update the profile when threading around intermediate blocks. (thread_single_edge): Likewise. (determine_bb_domination_status): If BB is not a successor of the loop header, return NONDOMINATING. (register_jump_thread): Note when we register a jump thread around an intermediate block. * tree-ssa-threadedge.c (thread_around_empty_block): New function. (thread_across_edge): Use it. * gcc.dg/tree-ssa/ssa-dom-thread-3.c: New test. From-SVN: r171622
Jeff Law committed -
From-SVN: r171621
Ian Lance Taylor committed -
* gcc.dg/stack-usage-1.c (SIZE): Provide proper values for __PPC64__ and __PPC__ && __ALTIVEC__. From-SVN: r171620
Peter Bergner committed -
From-SVN: r171619
Ian Lance Taylor committed -
2011-03-26 Dominique d'Humieres <dominiq@lps.ens.fr> PR testsuite/48238 * gcc.dg/debug/dwarf2/pr47939-1.c: Generalize scan-assembler regex. * gcc.dg/debug/dwarf2/pr47939-2.c: Likewise. * gcc.dg/debug/dwarf2/pr47939-3.c: Likewise. * gcc.dg/debug/dwarf2/pr47939-4.c: Likewise. From-SVN: r171615
Dominique d'Humieres committed -
Core 1232 * call.c (build_array_conv): New. (implicit_conversion): Use it. From-SVN: r171614
Jason Merrill committed -
* call.c (reference_binding): Allow direct binding to an array rvalue. From-SVN: r171613
Jason Merrill committed -
Core 898 * parser.c (cp_parser_compound_statement): Add function_body parm. Complain about non-body compound-stmt in constexpr fn. (cp_parser_primary_expression, cp_parser_statement): Adjust. (cp_parser_implicitly_scoped_statement): Adjust. (cp_parser_function_body, cp_parser_try_block): Adjust. (cp_parser_handler, cp_parser_objc_synchronized_statement): Adjust. (cp_parser_objc_try_catch_finally_statement): Adjust. From-SVN: r171612
Jason Merrill committed -
Core 898 * semantics.c (constexpr_fn_retval): New. Allow using-declaration and using-definition. (register_constexpr_fundef): Call it. From-SVN: r171611
Jason Merrill committed -
* except.c (build_noexcept_spec): Call cxx_constant_value after converting to bool. From-SVN: r171609
Jason Merrill committed -
2011-03-28 Tristan Gingold <gingold@adacore.com> * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion when for_return is 2. From-SVN: r171608
Tristan Gingold committed -
* var-tracking.c (canonicalize_values_mark): Delete unused lhs assignment. (canonicalize_values_star, set_variable_part): Likewise. (clobber_variable_part, delete_variable_part): Likewise. From-SVN: r171606
Jeff Law committed -
From-SVN: r171605
Steven Bosscher committed -
2011-03-28 H.J. Lu <hongjiu.lu@intel.com> PR testsuite/48276 * gcc.target/i386/pr47502-2.c: Add -fno-pic. From-SVN: r171604
H.J. Lu committed -
* configure.ac (i[[3456789]]86-*-msdosdjgpp*): Don't disable libffi on host. (x86_64-*-mingw*, i[[3456789]]86-*-mingw32*): Don't disable newlib on host. (c54x*-*-* | tic54x-*-*): Don't disable newlib on host. * configure: Regenerate. From-SVN: r171603
Joseph Myers committed -
2011-03-28 Martin Jambor <mjambor@suse.cz> * tree-inline.c (expand_call_inline): Do not check that destination node is analyzed. (optimize_inline_calls): Assert that destination node is analyzed. * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do not call tree_lowering_passes. * cgraph.h (cgraph_analyze_function): Declare. * cgraphunit.c (cgraph_analyze_function): Make public. From-SVN: r171602
Martin Jambor committed -
* config/sparc/sparc-opts.h: New. * config/sparc/sparc.c (sparc_handle_option, sparc_select, sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove. (sparc_option_override): Store processor_type enumeration rather than string in cpu_default. Remove name and enumeration from cpu_table. Directly default -mcpu then default -mtune from -mcpu without using sparc_select. Use target_flags_explicit instead of fpu_option_set. * config/sparc/sparc.h (enum processor_type): Move to sparc-opts.h. (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove. * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New HeaderInclude entry. (mcpu=, mtune=): Use Var and Enum. (sparc_processor_type): New Enum and EnumValue entries. From-SVN: r171601
Joseph Myers committed -
* configure.ac: Add support for *-*-dragonfly* * configure: Regenerate. From-SVN: r171600
John Marino committed -
2011-03-28 Kai Tietz <ktietz@redhat.com> * gcc-interface/Makefile.in (SO_LIB): Handle multilib build for native windows targets. (EH_MECHANISM): Make sure we use gcc's exception mechanism for all native windows target. * system-mingw.ads (System): Change ZCX_By_Default default to True. From-SVN: r171599
Kai Tietz committed -
PR target/48245 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC. Co-Authored-By: Iain Sandoe <iains@gcc.gnu.org> From-SVN: r171598
Rainer Orth committed -
2011-03-28 Kai Tietz <ktietz@redhat.com> * raise-gcc.c (PERSONALITY_FUNCTION): Add prototype to prevent warning. From-SVN: r171594
Kai Tietz committed
-