aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
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-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-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-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-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
2010-12-15rx.h (WCHAR_TYPE, [...]): Define.Joseph Myers3-1/+10
* config/rx/rx.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define. * config.gcc (rx-*-elf*): Don't use svr4.h. From-SVN: r167851
2010-12-15decl.c (java_init_decl_processing): Initialise integer_three_node.Dave Korn3-1/+9
* decl.c (java_init_decl_processing): Initialise integer_three_node. * lang.c (put_decl_node): Handle nested function decls. From-SVN: r167849
2010-12-15re PR testsuite/46938 (FAIL: gcc.dg/pr43157.c (test for excess errors))Dave Korn2-0/+6
PR testsuite/46938 * gcc.dg/pr43157.c: Add dg-require-linker-plugin directive. From-SVN: r167848
2010-12-15Check for errors when converting array index to GENERIC.Ian Lance Taylor1-0/+12
From-SVN: r167846
2010-12-15Don't crash on undefined anonymous field.Ian Lance Taylor1-10/+20
From-SVN: r167845
2010-12-15Fix PR46845: handle scop parameters before scev analysis.Sebastian Pop4-3/+33
2010-12-14 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/46845 * sese.c (scalar_evolution_in_region): Handle scop parameters before scev analysis. * gcc.dg/graphite/id-pr46845.c: New. From-SVN: r167844
2010-12-15Fix PR46928: handle "A[p] == A[p]" in data dep analysis with p a parameter ↵Sebastian Pop4-2/+64
of the loop. 2010-12-14 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/46928 * tree-data-ref.c (analyze_overlapping_iterations): Handle "A[p] == A[p]" in data dependence analysis with p a parameter of the loop. * gcc.dg/tree-ssa/ldist-17.c: New. From-SVN: r167843
2010-12-15Fix PR45948: add ssa defs from builtin partitions to the last partition.Sebastian Pop4-0/+135
2010-12-14 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/45948 * tree-loop-distribution.c (ssa_name_has_uses_outside_loop_p): New. (stmt_has_scalar_dependences_outside_loop): New. (stmt_generated_in_another_partition): New. (add_scalar_computations_to_partition): New. (rdg_build_partitions): Call add_scalar_computations_to_partition. * gcc.dg/tree-ssa/ldist-pr45948.c: New. From-SVN: r167842
2010-12-15arc.h (LIB_SPEC): Define.Joseph Myers3-1/+9
* config/arc/arc.h (LIB_SPEC): Define. * config.gcc (arc-*-elf*): Don't use svr4.h. From-SVN: r167840
2010-12-15Don't store error types in the Type-to-GENERIC hash table.Ian Lance Taylor1-0/+11
From-SVN: r167838
2010-12-15Don't get confused by error types in traversal.Ian Lance Taylor1-0/+2
From-SVN: r167836
2010-12-14re PR c++/46930 ([C++0x] ICE with static constexpr data member)Jason Merrill6-4/+34
PR c++/46930 * decl.c (grokdeclarator): Reject uninitialized constexpr static data member. From-SVN: r167834
2010-12-15Daily bump.GCC Administrator1-1/+1
From-SVN: r167833
2010-12-15elf.h (LIB_SPEC): Define.Joseph Myers3-8/+15
* config/sh/elf.h (LIB_SPEC): Define. * config.gcc (sh-*-elf* | sh[12346l]*-*-elf* | sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | sh-*-linux* | sh[2346lbe]*-*-linux* | sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | sh64-*-netbsd* | sh64l*-*-netbsd*, sh-*-rtems*, sh-wrs-vxworks): Don't use svr4.h. From-SVN: r167829
2010-12-15Don't crash building initializer of invalid array.Ian Lance Taylor1-0/+5
From-SVN: r167828
2010-12-14Don't crash on invalid slice composite literal.Ian Lance Taylor1-0/+7
From-SVN: r167827
2010-12-14Fix comparison of string and interface types.Ian Lance Taylor1-9/+7
From-SVN: r167826
2010-12-14Don't try to build unary and binary expressions with invalid types.Ian Lance Taylor1-22/+20
From-SVN: r167824
2010-12-14re PR lto/46940 (asm aliases with linker plugin segfaults)Jan Hubicka5-2/+48
PR lto/46940 PR lto/44463 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Construct nodes for aliases when they are used. * gcc.dg/lto/pr46940_0.c: New testcase. * gcc.dg/lto/pr46940_1.c: New testcase. From-SVN: r167822