1. 16 Dec, 2010 28 commits
    • darwin.opt (dylinker, [...]): New Driver options. · 391fbfb8
      	* config/darwin.opt (dylinker, headerpad_max_install_names,
      	keep_private_externs, nofixprebinding, nomultidefs, noprebind,
      	noseglinkedit, object, prebind, prebind_all_twolevel_modules,
      	preload, private_bundle, pthread, seglinkedit, twolevel_namespace,
      	twolevel_namespace_hints, whatsloaded, whyload, y, Mach, X): New
      	Driver options.
      	* config/darwin.h (LINK_SPEC): Remove '*' after
      	headerpad_max_install_names.
      
      From-SVN: r167963
      Joseph Myers committed
    • Fix PR46924: Do not detect reductions outside the current SESE region. · a30e5345
      2010-12-16  Sebastian Pop  <sebastian.pop@amd.com>
      
      	PR tree-optimization/46924
      	* graphite-sese-to-poly.c (detect_commutative_reduction): Do not
      	detect reductions outside the current SESE region.
      	* sese.h (stmt_in_sese_p): New.
      	(defined_in_sese_p): Call stmt_in_sese_p.
      
      	* gcc.dg/graphite/pr46924.c: New.
      
      From-SVN: r167962
      Sebastian Pop committed
    • In libobjc/: 2010-12-16 Nicola Pero <nicola.pero@meta-innovation.com> · 114dae43
      In libobjc/:
      2010-12-16  Nicola Pero  <nicola.pero@meta-innovation.com>
      
      	* sendmsg.c: Include objc/runtime.h instead of objc/objc-api.h.
      	Include objc-private/module-abi-8.h and objc-private/selector.h
      	instead of objc/encoding.h.
      	(objc_msg_lookup_super): Use super->super_class instead of
      	super->class.
      	(method_get_first_argument, method_get_next_argument): Declare
      	locally.
      	(class_get_instance_method): Declare before using.
      	(objc_msg_sendv): Use 'struct objc_method' instead of 'Method'.
      	(__objc_init_dispatch_tables, __objc_send_initialize): Use
      	sel_registerName() instead of sel_register_name().
      	(__objc_forward): Use sel_getName() instead of sel_get_name().
      	(objc_get_uninstalled_dtable): Use 'void' as argument.
      	* objc-private/selector.h: New.
      
      From-SVN: r167961
      Nicola Pero committed
    • re PR tree-optimization/46966 (ICE: in execute_cse_reciprocals, at… · 7470b8fc
      re PR tree-optimization/46966 (ICE: in execute_cse_reciprocals, at tree-ssa-math-opts.c:474 with -floop-interchange -fno-tree-copy-prop -fno-tree-loop-im)
      
      	PR tree-optimization/46966
      	* graphite-sese-to-poly.c (build_scop_drs): Call free_gimple_bb for
      	for bbs that are removed from SCOP_BBS vector.
      
      	* gcc.dg/graphite/pr46966.c: New test.
      
      From-SVN: r167960
      Jakub Jelinek committed
    • tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to… · 9c8cbc74
      tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to get_ref_base_and_extent returns -1 as the max size.
      
      	* tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to
      	get_ref_base_and_extent returns -1 as the max size.
      
      From-SVN: r167958
      Eric Botcazou committed
    • Support for LEON processor · 07981468
      	Support for LEON processor
      	* config.gcc (sparc-*-elf*): Deal with sparc-leon specifically.
      	(sparc-*-linux*): Likewise.
      	(sparc-*-rtems*): Remove Solaris left-overs.
      	(sparc*-*-*): Remove obsolete sparc86x setting.
      	(sparc-leon*): Default to --with-cpu=v8 and --with-tune=leon.
      	* doc/invoke.texi (SPARC Options): Document -mcpu/-mtune=leon.
      	* config/sparc/sparc.h (TARGET_CPU_leon): Define.
      	(TARGET_CPU_sparc86x): Delete.
      	(TARGET_CPU_cypress): Define as alias to TARGET_CPU_v7.
      	(TARGET_CPU_f930): Define as alias to TARGET_CPU_sparclite.
      	(TARGET_CPU_f934): Likewise.
      	(TARGET_CPU_tsc701): Define as alias to TARGET_CPU_sparclet.
      	(CPP_CPU_SPEC): Add entry for -mcpu=leon.
      	(enum processor_type): Add PROCESSOR_LEON.  Reorganize.
      	* config/sparc/sparc.c (leon_costs): New cost array.
      	(sparc_option_override): Add entry for TARGET_CPU_leon and -mcpu=leon.
      	Initialize cost array to leon_costs if -mtune=leon.
      	* config/sparc/sparc.md (cpu attribute): Add leon.  Reorganize.
      	Include leon.md scheduling description.
      	* config/sparc/leon.md: New file.
      	* config/sparc/t-elf: Do not assemble Solaris startup files.
      	* config/sparc/t-leon: New file.
      	* config/sparc/t-leon3: Likewise.
      
      Co-Authored-By: Eric Botcazou <ebotcazou@adacore.com>
      
      From-SVN: r167957
      Konrad Eisele committed
    • testsuite_iterators.h: Guard move.h includes. · cb2168c9
      2010-11-16  Benjamin Kosnik  <bkoz@redhat.com>
      
      	* testsuite/util/testsuite_iterators.h: Guard move.h includes.
      	* testsuite/util/testsuite_allocator.h: Same.
      
      	* testsuite/20_util/temporary_buffer.cc: Use typedef, qualify.
      
      	* testsuite/ext/pb_ds/regression/hash_data_map_rand.cc: Define
      	PB_DS_REGRESSION in the source file.
      	* testsuite/ext/pb_ds/regression/trie_data_map_rand.cc: Same.
      	* testsuite/ext/pb_ds/regression/list_update_no_data_map_rand.cc: Same.
      	* testsuite/ext/pb_ds/regression/tree_no_data_map_rand.cc: Same.
      	* testsuite/ext/pb_ds/regression/list_update_data_map_rand.cc: Same.
      	* testsuite/ext/pb_ds/regression/hash_no_data_map_rand.cc: Same.
      	* testsuite/ext/pb_ds/regression/priority_queue_rand.cc: Same.
      	* testsuite/ext/pb_ds/regression/tree_data_map_rand.cc: Same.
      	* testsuite/ext/pb_ds/regression/trie_no_data_map_rand.cc: Same.
      
      	* testsuite/21_strings/c_strings/wchar_t/3_neg.cc: Move to this.
      	Use _neg suffix.
      	* testsuite/21_strings/c_strings/wchar_t/3.cc: ...from this.
      	* testsuite/21_strings/c_strings/char/3_neg.cc: Same.
      	* testsuite/21_strings/c_strings/char/3.cc: Same.
      	* testsuite/ext/slist/23781_neg.cc: Same.
      	* testsuite/ext/slist/23781.cc: Same.
      	* testsuite/ext/profile/mutex_extensions.cc: Same.
      	* testsuite/ext/profile/mutex_extensions_neg.cc: Same.
      	* testsuite/tr1/2_general_utilities/shared_ptr/cons/43820.cc: Same.
      	* testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc: Same.
      	* testsuite/tr1/6_containers/tuple/comparison_operators/35480_neg.cc:
      	Same.
      	* testsuite/tr1/6_containers/tuple/comparison_operators/35480.cc: Same.
      	* testsuite/23_containers/multimap/23781_neg.cc: Same.
      	* testsuite/23_containers/multimap/23781.cc: Same.
      	* testsuite/23_containers/set/23781_neg.cc: Same.
      	* testsuite/23_containers/set/23781.cc: Same.
      	* testsuite/23_containers/multiset/23781_neg.cc: Same.
      	* testsuite/23_containers/multiset/23781.cc: Same.
      	* testsuite/23_containers/list/23781_neg.cc: Same.
      	* testsuite/23_containers/list/23781.cc: Same.
      	* testsuite/23_containers/map/23781_neg.cc: Same.
      	* testsuite/23_containers/map/23781.cc: Same.
      	* testsuite/20_util/duration/cons/dr974_neg.cc: Same.
      	* testsuite/20_util/duration/cons/dr974.cc: Same.
      	* testsuite/20_util/tuple/comparison_operators/35480_neg.cc: Same.
      	* testsuite/20_util/tuple/comparison_operators/35480.cc: Same.
      	* testsuite/20_util/shared_ptr/cons/43820_neg.cc: Same.
      	* testsuite/20_util/shared_ptr/cons/43820.cc: Same.
      	* testsuite/20_util/unique_ptr/cons/pointer_array_convertible_neg.cc:
      	Same.
      	* testsuite/20_util/unique_ptr/cons/pointer_array_convertible.cc: Same.
      
      From-SVN: r167956
      Benjamin Kosnik committed
    • re PR tree-optimization/43655 (-ftree-ter causes FAIL:… · bcdae749
      re PR tree-optimization/43655 (-ftree-ter causes FAIL: g++.old-deja/g++.law/temps5.C execution test)
      
      	PR tree-optimization/43655
      	* tree-ssa-ter.c (is_replaceable_p): Don't use
      	gimple_references_memory_p for -O0, instead check for load
      	by looking at rhs.
      
      	* g++.dg/opt/pr43655.C: New test.
      
      From-SVN: r167955
      Jakub Jelinek committed
    • Fix PR46404: call scev_reset to reset the number of iterations as well. · 94406344
      2010-12-16  Sebastian Pop  <sebastian.pop@amd.com>
      
      	PR tree-optimization/46404
      	* graphite-clast-to-gimple.c (gloog): Call scev_reset.
      
      	* gcc.dg/graphite/pr46404-1.c: New.
      
      From-SVN: r167954
      Sebastian Pop committed
    • PR libgcj/46774: Create dynamic ProtectionDomain instances which check the system policy. · ffafe01a
      2010-12-13  Andrew John Hughes  <ahughes@redhat.com>
      
      	PR libgcj/46774
      	* libjava/java/security/VMAccessController.java:
      	(DEFAULT_CONTEXT): Create ProtectionDomain with
      	four argument constructor (arguments are the same
      	as those implied by the two argument constructor).
      	(getContext()): Create ProtectionDomain instances
      	with four argument constructor using a null Principal
      	array (as before) but including the classloader, which
      	was always null before.
      
      From-SVN: r167952
      Andrew John Hughes committed
    • sh.h (OUTPUT_ADDR_CONST_EXTRA): Remove. · ef875e12
      	* config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
      	* config/sh/sh.c (sh_asm_output_addr_const_extra): New function.
      	(TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
      
      From-SVN: r167951
      Anatoly Sokolov committed
    • t-spu-elf (LIB2_SIDITI_CONV_FUNC): Define. · a4b56e02
      	* config/spu/t-spu-elf (LIB2_SIDITI_CONV_FUNC): Define.
      	* config/spu/spu.h (MIN_UNITS_PER_WORD): Do not define.
      	(LIBGCC2_UNITS_PER_WORD): Define if not already defined.
      
      From-SVN: r167950
      Ulrich Weigand committed
    • re PR debug/46893 (ICE: in trunc_int_for_mode, at explow.c:56 with -O -g) · 9712cba0
      	PR debug/46893
      	* cfgexpand.c (expand_debug_expr): If GET_MODE (op0) is VOIDmode,
      	use TYPE_MODE (TREE_TYPE (tem)) instead of mode1.
      
      	* gcc.dg/pr46893.c: New test.
      
      From-SVN: r167949
      Jakub Jelinek committed
    • Make main return 0. · 8f2cbdca
      2010-12-16  H.J. Lu  <hongjiu.lu@intel.com>
      
      	PR lto/46976
      	* gcc.dg/lto/pr46940_1.c (main): Return 0.
      
      From-SVN: r167903
      H.J. Lu committed
    • re PR target/46883 (GCC ICE with error: unrecognizable insn) · 5acb7dec
      2010-12-16  Chung-Lin Tang  <cltang@codesourcery.com>
      
      	PR target/46883
      	* config/arm/arm.md
      	(zero_extendhisi2 for register input splitter): Change
      	"register_operand" to "s_register_operand".
      	(zero_extendqisi2 for register input splitter): Same.
      
      	testsuite/
      	* gcc.target/arm/pr46883.c: New testcase.
      
      From-SVN: r167900
      Chung-Lin Tang committed
    • Don't crash on recursive consts. · f80d990e
      From-SVN: r167899
      Ian Lance Taylor committed
    • Rework handling of recursive function types. · a2c76d48
      From-SVN: r167898
      Ian Lance Taylor committed
    • Don't crash when copying a call with no arguments. · 7892de0c
      From-SVN: r167897
      Ian Lance Taylor committed
    • re PR lto/46976 (FAIL: gcc.dg/lto/pr46940_0.c) · f7480e3b
      	PR lto/46976
      	* gcc.dg/lto/pr46940_0.c: Fix commit.
      
      From-SVN: r167896
      Jan Hubicka committed
    • re PR c++/39859 (duplicated and unhelpful error for "c:n" (parser)) · 782d1c33
      gcc/cp/
      	PR c++/39859
      	PR c++/44522
      	PR c++/44523
      	* parser.c (struct cp_parser): Add colon_corrects_to_scope_p field.
      	(cp_parser_new): Initialize it.
      	(cp_parser_nested_name_specifier_opt): Auto-correct colons to
      	scopes if we are able to.
      	(cp_parser_question_colon_clause): Disallow colon correction.
      	(cp_parser_label_for_labeled_statement): Likewise.
      	(cp_parser_range_for): Likewise.
      	(cp_parser_enum_specifier): Likewise.
      	(cp_parser_class_head): Likewise.
      	(cp_parser_member_declaration): Likewise.
      
      gcc/testsuite/
      	PR c++/39859
      	PR c++/44522
      	PR c++/44523
      	* g++.dg/parse/colon-autocorrect-1.C: New testcase.
      	* g++.dg/parse/colon-autocorrect-2.C: New testcase.
      
      From-SVN: r167895
      Nathan Froyd committed
    • re PR c++/46852 (ICE: tree check: expected class ‘type’, have ‘exceptional’… · b2d49fe5
      re PR c++/46852 (ICE: tree check: expected class ‘type’, have ‘exceptional’ (error_mark) in cp_parser_class_specifier, at cp/parser.c:16947)
      
      gcc/cp/
      	PR c++/46852
      	* parser.c (cp_parser_class_specifier): Check for TYPE_P.
      
      gcc/testsuite/
      	PR c++/46852
      	* g++.dg/pr46852.C: New test.
      
      From-SVN: r167894
      Nathan Froyd committed
    • re PR tree-optimization/46939 (http://blog.regehr.org/archives/320 example 6) · 5210bbc5
      	PR middle-end/46939
      	* predic.c (predict_paths_leading_to_edge): New function.
      	(apply_return_prediction): Use it.
      	(predict_paths_for_bb): Do not special case abnormals.
      	* gcc.target/i386/pr46939.c: New testcase.
      
      From-SVN: r167893
      Jan Hubicka committed
    • Don't crash on invalid tuple assignment. · 7a2d845d
      From-SVN: r167892
      Ian Lance Taylor committed
    • Check for errors from Gogo::call_builtin. · faff9b04
      From-SVN: r167891
      Ian Lance Taylor committed
    • Daily bump. · 0c5be64e
      From-SVN: r167890
      GCC Administrator committed
    • Don't crash with go or defer of bad call. · 4955456b
      From-SVN: r167886
      Ian Lance Taylor committed
    • config.gcc (powerpc-*-lynxos*): Don't add lynx.opt to extra_options twice. · 183d062a
      	* config.gcc (powerpc-*-lynxos*): Don't add lynx.opt to
      	extra_options twice.
      
      From-SVN: r167885
      Joseph Myers committed
    • Don't crash on Sizeof of undefined type. · cf15c419
      From-SVN: r167884
      Ian Lance Taylor committed
  2. 15 Dec, 2010 12 commits