- 10 Nov, 2010 40 commits
-
-
unordered_map (unordered_map<>::_M_profile_size): Simplify, don't take a __new_size argument; adjust all callers. 2010-11-10 François Dumont <francois.cppdevs@free.fr> * include/profile/unordered_map (unordered_map<>::_M_profile_size): Simplify, don't take a __new_size argument; adjust all callers. From-SVN: r166560
François Dumont committed -
2010-11-10 François Dumont <francois.cppdevs@free.fr> * MAINTAINERS (Write After Approval): Add myself. From-SVN: r166559
François Dumont committed -
re PR c++/46065 (ICE: tree check: expected tree that contains 'decl minimal' structure, have 'tree_list' in poplevel_named_label_1, at cp/decl.c:477) gcc/cp/ PR c++/46065 * decl.c (poplevel_named_label_1): Use TREE_CHAIN if necessary. gcc/testsuite/ PR c++/46065 * g++.dg/pr46065.C: New test. From-SVN: r166558
Nathan Froyd committed -
PR tree-optimize/33172 PR tree-optimize/43411 * gcc.dg/tree-ssa/pr33172.c: New testcase. * g++.dg/tree-ssa/pr43411.C: New testcase. From-SVN: r166557
Jan Hubicka committed -
PR tree-optimize/46228 * doc/invoke.texi (comdat-sharing-probability): Document. * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param. From-SVN: r166556
Jan Hubicka committed -
PR tree-optimize/46228 * doc/invoke.texi (comdat-sharing-probability): Document. * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param. * g++.dg/tree-ssa/pr46228.C: New testcase. From-SVN: r166555
Jan Hubicka committed -
PR target/46417 * config/spu/spu.c (spu_expand_insv): Remove unused variables. (spu_split_store): Use aform. (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED. From-SVN: r166554
Joern Rennecke committed -
PR tree-optimize/46228 * cgraph.c (cgraph_propagate_frequency): Fix typo. From-SVN: r166553
Jan Hubicka committed -
gcc/ 2010-11-10 H.J. Lu <hongjiu.lu@intel.com> PR tree-optimization/46414 * tree-inline.c (estimate_move_cost): Check preferred vector mode for vector type. gcc/testsuite/ 2010-11-10 H.J. Lu <hongjiu.lu@intel.com> PR tree-optimization/46414 * gcc.target/i386/recip-vec-sqrtf-avx.c: Updated for loop unrolling. From-SVN: r166552
H.J. Lu committed -
2010-11-10 Paolo Carlini <paolo.carlini@oracle.com> PR libstdc++/44436 (partial) PR libstdc++/46148 * include/bits/stl_tree.h (_Rb_tree<>::_M_insert_, _M_insert_lower, _M_insert_equal_lower, _M_insert_unique, _M_insert_equal, _M_insert_unique_, _M_insert_equal_): Templatize in C++0x mode, use _GLIBCXX_FORWARD throughout. * include/bits/stl_map.h (map<>::insert(_Pair&&), insert(const_iterator, _Pair&&), operator[](key_type&&): Add. * include/bits/stl_set.h (set<>::insert(value_type&&), insert(const_iterator, value_type&&)): Likewise. * include/bits/stl_multimap.h (multimap<>::insert(_Pair&&), insert(const_iterator, _Pair&&)): Likewise. * include/bits/stl_multiset.h (multiset<>::insert(value_type&&), insert(const_iterator, value_type&&)): Likewise. * include/debug/set.h: Adjust. * include/debug/multiset.h: Likewise. * include/debug/map.h: Likewise. * include/debug/multimap.h: Likewise. * include/profile/set.h: Likewise. * include/profile/multiset.h: Likewise. * include/profile/map.h: Likewise. * include/profile/multimap.h: Likewise. * testsuite/23_containers/multimap/modifiers/insert/1.cc: New. * testsuite/23_containers/multimap/modifiers/insert/2.cc: Likewise. * testsuite/23_containers/multimap/modifiers/insert/3.cc: Likewise. * testsuite/23_containers/multimap/modifiers/insert/4.cc: Likewise. * testsuite/23_containers/set/modifiers/insert/2.cc: Likewise. * testsuite/23_containers/set/modifiers/insert/3.cc: Likewise. * testsuite/23_containers/multiset/modifiers/insert/3.cc: Likewise. * testsuite/23_containers/multiset/modifiers/insert/4.cc: Likewise. * testsuite/23_containers/map/modifiers/insert/2.cc: Likewise. * testsuite/23_containers/map/modifiers/insert/3.cc: Likewise. * testsuite/23_containers/map/modifiers/insert/4.cc: Likewise. * testsuite/23_containers/map/modifiers/insert/5.cc: Likewise. * testsuite/23_containers/map/element_access/2.cc: Likewise. * testsuite/23_containers/map/element_access/46148.cc: Likewise. * include/bits/hashtable.h: Trivial naming changes. From-SVN: r166551
Paolo Carlini committed -
2010-11-10 Tobias Burnus <burnus@net-b.de> PR fortran/46411 * intrinsic.c (gfc_intrinsic_sub_interface): Check for attr.pure and not for attr.elemental. * intrinsic.texi (move_alloc): Document as being pure. 2010-11-10 Tobias Burnus <burnus@net-b.de> PR fortran/46411 * gfortran.dg/intrinsic_7.f90: New. From-SVN: r166550
Tobias Burnus committed -
From-SVN: r166549
Rainer Orth committed -
* g++.dg/abi/rtti3.C: Scan for .weakext on alpha*-dec-osf*. * g++.dg/abi/thunk4.C: Likewise. * g++.dg/opt/combine.C: Add dg-require-visibility. * g++.dg/other/anon5.C: Skip on alpha*-dec-osf*. * g++.dg/warn/miss-format-1.C: XFAIL scanf attribute warning on alpha*-dec-osf*. * g++.dg/warn/pr31246.C: XFAIL on alpha*-dec-osf*. * g++.dg/warn/weak1.C: Skip on alpha*-dec-osf*. * g++.old-deja/g++.eh/badalloc1.C [!STACK_SIZE && __osf__]: Use large arena_size. * gcc.dg/attr-weakref-1.c: Skip on alpha*-dec-osf*. * gcc.dg/intmax_t-1.c: Likewise. From-SVN: r166548
Rainer Orth committed -
2010-11-10 Tobias Burnus <burnus@net-b.de> PR fortran/46244 * resolve.c (resolve_fl_derived): Don't allow CLASS in sequence/BIND(C) types. 2010-11-10 Tobias Burnus <burnus@net-b.de> PR fortran/46244 * gfortran.dg/class_30.f90: New. From-SVN: r166547
Tobias Burnus committed -
2010-11-10 Tobias Burnus <burnus@net-b.de> PR fortran/46223 * gfortran.dg/bessel_7.f90: Bump allowed precision to avoid failure on s390. From-SVN: r166546
Tobias Burnus committed -
PR target/46415 * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype. (mmix_dbx_register_number): Likewise. * config/mmix/mmix.c: Include df.h . (mmix_local_alignment): Change argument basic_align and return type to unsigned. (mmix_dbx_register_number): Change argument and return type to unsigned. (mmix_expand_prologue): Use add_reg_note. From-SVN: r166545
Joern Rennecke committed -
2010-11-10 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/45971 * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR for phi nodes analyzable by scev. * gcc.dg/vect/O3-pr45971.c: New. From-SVN: r166544
Sebastian Pop committed -
re PR tree-optimization/44964 (ICE: SIGSEGV in gimple_default_def (tree-dfa.c:539) with -fkeep-inline-functions) 2010-11-10 Richard Guenther <rguenther@suse.de> PR tree-optimization/44964 * ipa-inline.c (cgraph_flatten): Check that SSA form matches. * gcc.dg/pr44964.c: New testcase. From-SVN: r166543
Richard Guenther committed -
From-SVN: r166537
Eric Botcazou committed -
From-SVN: r166536
H.J. Lu committed -
2010-11-10 Martin Jambor <mjambor@suse.cz> PR tree-optimization/46351 PR tree-optimization/46377 * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with aggregate bit-fields. * testsuite/gnat.dg/opt10.adb: New file. * testsuite/gnat.dg/opt10_pkg.ads: Likewise. * testsuite/gnat.dg/opt11.adb: Likewise. * testsuite/gnat.dg/opt11.ads: Likewise. From-SVN: r166535
Martin Jambor committed -
* doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove. * doc/tm.texi: Regenerate. * opts-common.c (tm.h): Don't include. (target_option_translations): Remove. (decode_cmdline_options_to_array): Don't handle translating options. * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison. * config/darwin-driver.c: Don't condition includes on CROSS_DIRECTORY_STRUCTURE. (darwin_default_min_version): Make static. (darwin_driver_init): New. Call darwin_default_min_version if not CROSS_DIRECTORY_STRUCTURE. * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove. (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define. (ASM_SPEC): Add %{static}. (darwin_default_min_version): Don't declare. (darwin_driver_init): Declare. (GCC_DRIVER_HOST_INITIALIZATION): Define to call darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE. * config/darwin.opt (all_load, allowable_client, arch_errors_fatal, bind_at_load, bundle, bundle_loader, dead_strip, dependency-file, dylib_file, dynamic, dynamiclib, exported_symbols_list, filelist, findirect-virtual-calls, flat_namespace, force_cpusubtype_ALL, force_flat_namespace, framework, fterminated-vtables, gfull, gused, image_base, init, install_name, multi_module, multiply_defined, multiply_defined_unused, no_dead_strip_inits_and_terms, seg_addr_table, seg_addr_table_filename, segaddr, segs_read_only_addr, segs_read_write_addr, single_module, umbrella, unexported_symbols_list, weak_reference_mismatches, Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle, Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace, Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module, Zno_dead_strip_inits_and_terms, Zsingle_module): New. * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC. (ASM_SPEC): Add %{static}. (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove. * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove. (DRIVER_SELF_SPECS): Handle options formerly in TARGET_OPTION_TRANSLATE_TABLE. * config/mep/mep.opt (mfar): New. * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove. (DRIVER_SELF_SPECS): Define. Handle options formerly in TARGET_OPTION_TRANSLATE_TABLE. * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec. (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove. * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec, ffix-and-continue, findirect-data): New. * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove. * config/rx/rx.opt (nofpu): Make into alias of mnofpu. (mnofpu): Define mask and use Report here. From-SVN: r166534
Joseph Myers committed -
* gcc-interface/trans.c (gigi): Don't set 'pure' flag on SJLJ routines. * gcc-interface/utils2.c (compare_arrays): Add LOC parameter. Set it directly on all the comparison expressions. (build_binary_op): Pass input_location to compare_arrays. From-SVN: r166533
Eric Botcazou committed -
* gcc-interface/trans.c (lvalue_required_p) <N_Type_Conversion>): Look through it for elementary types as well. <N_Unchecked_Type_Conversion>: Adjust to above change. <N_Allocator>: Likewise. (gnat_to_gnu): Do not attempt to rewrite boolean literals. From-SVN: r166532
Eric Botcazou committed -
2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * gcc/config/s390/s390.c (s390_emit_prologue): Report the stack size if -fstack-usage is used. 2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * gcc.dg/stack-usage-1.c: Define SIZE for s390 and s390x. From-SVN: r166531
Andreas Krebbel committed -
decl.c (gnat_to_gnu_entity): Do not set DECL_ARTIFICIAL on the reused DECL node coming from a renamed object. * gcc-interface/decl.c (gnat_to_gnu_entity): Do not set DECL_ARTIFICIAL on the reused DECL node coming from a renamed object. Set DECL_IGNORED_P on the DECL node built for renaming entities if they don't need debug info. From-SVN: r166530
Eric Botcazou committed -
PR target/46407 * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon. * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp with ATTRIBUTE_UNUSED. (valid_psw_flag): Constify parameter which. (rx_memory_move_cost): Change type of parameter regclass to reg_class_t. From-SVN: r166529
Joern Rennecke committed -
2010-11-10 Paolo Carlini <paolo.carlini@oracle.com> * include/bits/hashtable.h (_Hashtable<>::_Insert_Conv_Type, _Hashtable<>::_Insert_Return_Type): Change to private. From-SVN: r166528
Paolo Carlini committed -
2010-11-10 Richard Guenther <rguenther@suse.de> PR tree-optimization/46398 * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs. * gcc.dg/torture/pr46398.c: New testcase. From-SVN: r166527
Richard Biener committed -
PR middle-end/44766 * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst. From-SVN: r166526
Joern Rennecke committed -
2010-11-10 Jonathan Wakely <jwakely.gcc@gmail.com> * include/bits/unique_ptr.h: Use static_assert in constexpr constructors. * testsuite/20_util/unique_ptr/cons/ptr_deleter_neg.cc: Remove xfails. * testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust dg-error line number. From-SVN: r166525
Jonathan Wakely committed -
PR rtl-optimization/44764 * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED. From-SVN: r166524
Joern Rennecke committed -
PR target/44760 * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon. (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to GP_REG_OR_PSEUDO_STRICT_P. * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for unexpected alternative. (*movsf_internal): Likewise. (indirect_jump): Replace call to non-existant function with call to internal_error. (tablejump): Likewise. * config/iq2000/iq2000.c: Include df.h . (iq2000_function_arg_advance): Use CONST_CAST2. (compute_frame_size, iq2000_expand_prologue): Remove unused variables. (iq2000_can_eliminate): Call leaf_function_p instead of testing for a non-zero function address. (iq2000_initial_elimination_offset): Add gcc_unreachable for unexpected value of FROM. (symbolic_expression_p): Delete. (iq2000_function_value): Constify func. (expand_one_builtin): Use expand_normal. (iq2000_print_operand): Don't print VALUE if calculating it failed. From-SVN: r166523
Joern Rennecke committed -
2010-11-09 Jerry DeLisle <jvdelisle@gcc.gnu.org> Mikael Morin <mikael@gcc.gnu.org> PR fortran/46331 * intrinsic.c: Correctly set the pure attributes for intrinsic functions. * expr.c (check_specification_function): Remove this function and move its code into gfc_is_constant_expr. (gfc_is_constant_expr): Change the order of checks by checking for non-constant arguments first. Then, check for initialization functions, followed by intrinsics. Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org> From-SVN: r166520
Jerry DeLisle committed -
2010-11-09 Laurynas Biveinis <laurynas.biveinis@gmail.com> PR/46268 * doc/gty.texi (GTY Options): Clarify that variable_size produces allocators taking size in bytes, compare with length option. Add size calculation example. (Invoking the garbage collector): Ensure that sentences are followed by two spaces. Describe that pointer fields must be initialized at ggc_collect call. (Troubleshooting): New section. From-SVN: r166519
Laurynas Biveinis committed -
2010-11-09 Jerry DeLisle <jvdelisle@gcc.gnu.org> * gfortran.dg/open_dev_null.f90: New test. From-SVN: r166518
Jerry DeLisle committed -
PR tree-optimization/40436 * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin. * tree-inline.c (estimate_num_insns): Inexpensive builtins are like normal instructions; be sure bultin is not implemented in this file; compute non-zero return cost. (init_inline_once): Reduce builtin_call_cost to 1; set return cost. * tree-inline.h (eni_weights_d): Add return cost. From-SVN: r166517
Jan Hubicka committed -
c-parser.c (c_parser_struct_declaration): Handle declaration specifiers followed by CPP_CLOSE_BRACE. * c-parser.c (c_parser_struct_declaration): Handle declaration specifiers followed by CPP_CLOSE_BRACE. testsuite: * gcc.dg/struct-semi-4.c: New test. From-SVN: r166516
Joseph Myers committed -
* exgettext: Look for .cc files. Look in subdirectories of language subdirectories. * EXCLUDES: Update comment. From-SVN: r166515
Ian Lance Taylor committed -
From-SVN: r166514
GCC Administrator committed
-