aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-12-16testsuite_iterators.h: Guard move.h includes.Benjamin Kosnik28-41/+109
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
2010-12-16re PR tree-optimization/43655 (-ftree-ter causes FAIL: ↵Jakub Jelinek4-1/+49
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
2010-12-16Fix PR46404: call scev_reset to reset the number of iterations as well.Sebastian Pop4-1/+38
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
2010-12-16PR libgcj/46774: Create dynamic ProtectionDomain instances which check the ↵Andrew John Hughes3-7/+21
system policy. 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
2010-12-16sh.h (OUTPUT_ADDR_CONST_EXTRA): Remove.Anatoly Sokolov3-109/+119
* 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
2010-12-16t-spu-elf (LIB2_SIDITI_CONV_FUNC): Define.Ulrich Weigand3-3/+20
* 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
2010-12-16re PR debug/46893 (ICE: in trunc_int_for_mode, at explow.c:56 with -O -g)Jakub Jelinek4-2/+27
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
2010-12-16Make main return 0.H.J. Lu2-0/+7
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
2010-12-16re PR target/46883 (GCC ICE with error: unrecognizable insn)Chung-Lin Tang4-4/+33
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
2010-12-16Don't crash on recursive consts.Ian Lance Taylor2-4/+51
From-SVN: r167899
2010-12-16Rework handling of recursive function types.Ian Lance Taylor1-4/+10
From-SVN: r167898
2010-12-16Don't crash when copying a call with no arguments.Ian Lance Taylor1-1/+4
From-SVN: r167897
2010-12-16re PR lto/46976 (FAIL: gcc.dg/lto/pr46940_0.c)Jan Hubicka2-2/+8
PR lto/46976 * gcc.dg/lto/pr46940_0.c: Fix commit. From-SVN: r167896
2010-12-16re PR c++/39859 (duplicated and unhelpful error for "c:n" (parser))Nathan Froyd5-11/+132
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
2010-12-16re PR c++/46852 (ICE: tree check: expected class ‘type’, have ↵Nathan Froyd4-1/+20
‘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
2010-12-16re PR tree-optimization/46939 (http://blog.regehr.org/archives/320 example 6)Jan Hubicka4-5/+161
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
2010-12-16Don't crash on invalid tuple assignment.Ian Lance Taylor2-18/+24
From-SVN: r167892
2010-12-16Check for errors from Gogo::call_builtin.Ian Lance Taylor4-5/+59
From-SVN: r167891
2010-12-16Daily bump.GCC Administrator1-1/+1
From-SVN: r167890
2010-12-16Don't crash with go or defer of bad call.Ian Lance Taylor1-1/+7
From-SVN: r167886
2010-12-16config.gcc (powerpc-*-lynxos*): Don't add lynx.opt to extra_options twice.Joseph Myers2-1/+5
* config.gcc (powerpc-*-lynxos*): Don't add lynx.opt to extra_options twice. From-SVN: r167885
2010-12-16Don't crash on Sizeof of undefined type.Ian Lance Taylor1-1/+2
From-SVN: r167884
2010-12-15Don't crash on Sizeof of undefined type.Ian Lance Taylor1-1/+1
From-SVN: r167883
2010-12-15Don't crash on tuple initialization from erroneous channel.Ian Lance Taylor1-1/+4
From-SVN: r167882
2010-12-15Don't crash on empty struct created due to recursive reference.Ian Lance Taylor1-1/+7
From-SVN: r167881
2010-12-15tm.texi.in (US_SOFTWARE_GOFAST): Don't document.Joseph Myers14-301/+92
* doc/tm.texi.in (US_SOFTWARE_GOFAST): Don't document. * doc/tm.texi: Regenerate. * system.h (US_SOFTWARE_GOFAST): Poison. * config.gcc (enable_gofast): Don't handle. * config/gofast.h: Remove. * config/mips/t-gofast: Remove. * config/fp-bit.c (US_SOFTWARE_GOFAST): Don't handle. * config/fp-bit.h (US_SOFTWARE_GOFAST): Don't handle. * config/mips/elforion.h: Don't mention GOFAST in comment. * config/mips/mips.c: Don't include gofast.h. (mips_init_libfuncs): Don't call gofast_maybe_init_libfuncs. * config/mips/t-sr71k (dp-bit.c, fp-bit.c): Don't define US_SOFTWARE_GOFAST. * config/sparc/sparc.c: Don't include gofast.h. (sparc_init_libfuncs): Don't call gofast_maybe_init_libfuncs. * config/spu/t-spu-elf (dp-bit.c, fp-bit.c): Don't undefine US_SOFTWARE_GOFAST. From-SVN: r167880
2010-12-15Tweak handling of invalid function signature for function literal.Ian Lance Taylor1-4/+1
From-SVN: r167879
2010-12-15Check for pointer to error type when looking for method.Ian Lance Taylor1-1/+1
From-SVN: r167878
2010-12-15Permit _ as a result variable name.Ian Lance Taylor2-7/+14
From-SVN: r167877
2010-12-15Add testcase for PR46404.Sebastian Pop2-0/+18
2010-12-15 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/46404 * gcc.dg/graphite/pr46404.c: New. From-SVN: r167876
2010-12-15Fix test for invalid type in anonymous field.Ian Lance Taylor1-2/+4
From-SVN: r167875
2010-12-15Add statements to type switch even if there are no valid types.Ian Lance Taylor1-0/+2
From-SVN: r167874
2010-12-15Check errors in binary comparisons and builtin calls.Ian Lance Taylor1-1/+14
From-SVN: r167872
2010-12-15re PR fortran/46945 (gfortran.dg/unpack_zerosize_1.f90 FAILs with -ftree-vrp ↵Jakub Jelinek4-27/+45
-fno-tree-ccp -fno-tree-fre) PR fortran/46945 * trans-array.c (gfc_array_init_size): Perform stride overflow checking and multiplication by element_size in size_type_node instead of sizetype, return value with size_type_node type instead of sometimes with sizetype and sometimes with gfc_array_index_type. * gfortran.dg/pr46945.f90: New test. From-SVN: r167871
2010-12-15Push hash table identity check down to subtypes.Ian Lance Taylor3-88/+81
From-SVN: r167870
2010-12-15In libobjc/: 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>Nicola Pero3-6/+31
In libobjc/: 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com> * objc/message.h (objc_super): When using the modern API, do not define Super and Super_t, and always use 'super_class' for the super class field. (objc_msg_lookup_super): Updated prototype to use 'struct objc_super *' instead of 'Super_t'. * sendmsg.c (objc_msg_lookup_super): Updated prototype to use 'struct objc_super *' instead of 'Super_t'. From-SVN: r167869
2010-12-15Use a different identity function for Types in hash tables.Ian Lance Taylor2-9/+39
From-SVN: r167866
2010-12-15re PR debug/46815 (Invalid DW_AT_location for a retval instance of a class ↵Jakub Jelinek4-0/+54
that has a virtual function) PR debug/46815 * cp-gimplify.c (cp_genericize): When changing RESULT_DECL into invisible reference, change also DECL_VALUE_EXPR of NRV optimized variable. * g++.dg/guality/pr46815.C: New test. From-SVN: r167865
2010-12-15In libobjc/: 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>Nicola Pero2-34/+91
In libobjc/: 2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com> * objc/message.h: Update comments, reindented code and moved deprecated types and functions at the end of the file. No code changes. From-SVN: r167864
2010-12-15Better error message for malloc() failureJanne Blomqvist3-5/+12
From-SVN: r167863
2010-12-15re PR c++/42083 ([C++0x] ICE on invalid with "tree check: expected ↵Paolo Carlini4-3/+32
aggr_init_expr, have error_mark in build_value_init") /cp 2010-12-15 Paolo Carlini <paolo.carlini@oracle.com> PR c++/42083 * init.c (build_value_init): Check build_special_member_call return value for error_mark_node. /testsuite 2010-12-15 Paolo Carlini <paolo.carlini@oracle.com> PR c++/42083 * g++.dg/cpp0x/lambda/lambda-ice2.C: New. From-SVN: r167862
2010-12-15PR 28105 Remove size<0 checks before calling malloc/reallocJanne Blomqvist2-70/+17
From-SVN: r167860
2010-12-15Revert last change.Rainer Orth3-9/+10
From-SVN: r167859
2010-12-15tree.c (get_file_function_name): Avoid using random seed on GLOBAL_sub_I and ↵Jan Hubicka2-2/+11
GLOBAL_sub_D. * tree.c (get_file_function_name): Avoid using random seed on GLOBAL_sub_I and GLOBAL_sub_D. From-SVN: r167858
2010-12-15Correct PR number in gfortran.dg/debug/pr46756.f.H.J. Lu2-1/+5
2010-12-15 H.J. Lu <hongjiu.lu@intel.com> * gfortran.dg/debug/pr46756.f: Correct PR number. From-SVN: r167857
2010-12-15Move gfortran.dg/debug/pr46576.f to gfortran.dg/debug/pr46756.f.H.J. Lu3-3/+3
From-SVN: r167856
2010-12-15re PR tree-optimization/46053 (g++.dg/torture/pr45699.C FAILs with ↵Martin Jambor17-101/+563
-fno-early-inlining) 2010-12-15 Martin Jambor <mjambor@suse.cz> PR tree-optimization/46053 PR middle-end/46287 PR middle-end/46242 * cgraph.h (cgraph_indirect_call_info): New field thunk_delta. * gimple.h (gimple_fold_obj_type_ref): Declaration removed. (gimple_fold_call): Declare. (gimple_adjust_this_by_delta): Likewise. * cgraph.c (cgraph_make_edge_direct): New parameter delta. Updated all users. (cgraph_clone_edge): Create a copy of indirect_info also for direct edges. * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Adjust this parameters. * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Renamed to gimple_get_virt_mehtod_for_binfo, new parameter delta. Do not search through thunks, in fact bail out if we encounter one, check that BINFO_VIRTUALS is not NULL. (gimple_adjust_this_by_delta): New function. (gimple_fold_obj_type_ref): Removed. (gimple_fold_obj_type_ref_call): New function. (fold_gimple_call): Renamed to gimple_fold_call, made external. Updated users. Call gimple_fold_obj_type_ref_call instead of gimple_fold_obj_type_ref. * ipa-cp.c (ipcp_process_devirtualization_opportunities): Process thunk deltas. (ipcp_discover_new_direct_edges): Likewise. * ipa-prop.c (ipa_make_edge_direct_to_target): New parameter delta. Updated callers. (ipa_write_indirect_edge_info): Stream thunk_delta. (ipa_read_indirect_edge_info): Likewise. * tree-ssa-ccp.c (ccp_fold_stmt): Use gimple_fold_call instead of gimple_fold_obj_type_ref. * testsuite/g++.dg/ipa/pr46053.C: New test. * testsuite/g++.dg/ipa/pr46287-1.C: Likewise. * testsuite/g++.dg/ipa/pr46287-2.C: Likewise. * testsuite/g++.dg/ipa/pr46287-3.C: Likewise. * testsuite/g++.dg/torture/covariant-1.C: Likewise. * testsuite/g++.dg/torture/pr46287.C: Likewise. From-SVN: r167855
2010-12-15re PR rtl-optimization/46649 (ICE: in move_bb_info, at sel-sched-ir.c:5080 ↵Alexander Monakov4-3/+23
with -fschedule-insns -fselective-scheduling) PR rtl-optimization/46649 * sel-sched-ir.c (purge_empty_blocks): Unconditionally skip the first basic block in the region. testsuite: * g++.dg/opt/pr46649.C: New. From-SVN: r167854
2010-12-15vstring.h (operator+(__versa_string<>&&, const __versa_string<>&), [...]): Add.Paolo Carlini3-0/+155
2010-12-15 Paolo Carlini <paolo.carlini@oracle.com> * include/ext/vstring.h (operator+(__versa_string<>&&, const __versa_string<>&), operator+(const __versa_string<>&, __versa_string<>&&), operator+(__versa_string<>&&, __versa_string<>&&), operator+(const _CharT*, __versa_string<>&&), operator+(_CharT, __versa_string<>&&), operator+(__versa_string<>&&, const _CharT*), operator+(__versa_string<>&&, _CharT)): Add. * testsuite/ext/vstring/operators/1.cc: New. From-SVN: r167853
2010-12-15stormy16.h (LINK_SPEC, WCHAR_TYPE): Define.Joseph Myers3-1/+13
* config/stormy16/stormy16.h (LINK_SPEC, WCHAR_TYPE): Define. * config.gcc (xstormy16-*-elf): Don't use svr4.h. From-SVN: r167852