jsm28 [Wed, 15 Dec 2010 22:55:53 +0000 (22:55 +0000)]
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167880
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Wed, 15 Dec 2010 22:42:30 +0000 (22:42 +0000)]
Tweak handling of invalid function signature for function literal.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167879
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Wed, 15 Dec 2010 22:32:03 +0000 (22:32 +0000)]
Check for pointer to error type when looking for method.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167878
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Wed, 15 Dec 2010 22:08:44 +0000 (22:08 +0000)]
Permit _ as a result variable name.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167877
138bc75d-0d04-0410-961f-
82ee72b054a4
spop [Wed, 15 Dec 2010 22:00:59 +0000 (22:00 +0000)]
Add testcase for PR46404.
2010-12-15 Sebastian Pop <sebastian.pop@amd.com>
PR tree-optimization/46404
* gcc.dg/graphite/pr46404.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167876
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Wed, 15 Dec 2010 21:50:51 +0000 (21:50 +0000)]
Fix test for invalid type in anonymous field.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167875
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Wed, 15 Dec 2010 21:39:40 +0000 (21:39 +0000)]
Add statements to type switch even if there are no valid types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167874
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Wed, 15 Dec 2010 20:35:57 +0000 (20:35 +0000)]
Check errors in binary comparisons and builtin calls.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167872
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 15 Dec 2010 20:20:10 +0000 (20:20 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167871
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Wed, 15 Dec 2010 19:47:44 +0000 (19:47 +0000)]
Push hash table identity check down to subtypes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167870
138bc75d-0d04-0410-961f-
82ee72b054a4
nicola [Wed, 15 Dec 2010 19:47:18 +0000 (19:47 +0000)]
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'.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167869
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Wed, 15 Dec 2010 18:33:34 +0000 (18:33 +0000)]
Use a different identity function for Types in hash tables.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167866
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Wed, 15 Dec 2010 17:50:34 +0000 (17:50 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167865
138bc75d-0d04-0410-961f-
82ee72b054a4
nicola [Wed, 15 Dec 2010 17:43:01 +0000 (17:43 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167864
138bc75d-0d04-0410-961f-
82ee72b054a4
jb [Wed, 15 Dec 2010 17:42:09 +0000 (17:42 +0000)]
Better error message for malloc() failure
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167863
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Wed, 15 Dec 2010 17:35:04 +0000 (17:35 +0000)]
/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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167862
138bc75d-0d04-0410-961f-
82ee72b054a4
jb [Wed, 15 Dec 2010 17:15:25 +0000 (17:15 +0000)]
PR 28105 Remove size<0 checks before calling malloc/realloc
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167860
138bc75d-0d04-0410-961f-
82ee72b054a4
ro [Wed, 15 Dec 2010 16:56:26 +0000 (16:56 +0000)]
Revert last change.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167859
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Wed, 15 Dec 2010 15:34:36 +0000 (15:34 +0000)]
* tree.c (get_file_function_name): Avoid using random seed on GLOBAL_sub_I
and GLOBAL_sub_D.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167858
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Wed, 15 Dec 2010 15:16:31 +0000 (15:16 +0000)]
Correct PR number in gfortran.dg/debug/pr46756.f.
2010-12-15 H.J. Lu <hongjiu.lu@intel.com>
* gfortran.dg/debug/pr46756.f: Correct PR number.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167857
138bc75d-0d04-0410-961f-
82ee72b054a4
hjl [Wed, 15 Dec 2010 15:14:44 +0000 (15:14 +0000)]
Move gfortran.dg/debug/pr46576.f to gfortran.dg/debug/pr46756.f.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167856
138bc75d-0d04-0410-961f-
82ee72b054a4
jamborm [Wed, 15 Dec 2010 13:19:46 +0000 (13:19 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167855
138bc75d-0d04-0410-961f-
82ee72b054a4
amonakov [Wed, 15 Dec 2010 13:08:41 +0000 (13:08 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167854
138bc75d-0d04-0410-961f-
82ee72b054a4
paolo [Wed, 15 Dec 2010 12:59:05 +0000 (12:59 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167853
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Wed, 15 Dec 2010 12:55:45 +0000 (12:55 +0000)]
* config/stormy16/stormy16.h (LINK_SPEC, WCHAR_TYPE): Define.
* config.gcc (xstormy16-*-elf): Don't use svr4.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167852
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Wed, 15 Dec 2010 12:54:46 +0000 (12:54 +0000)]
* config/rx/rx.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
* config.gcc (rx-*-elf*): Don't use svr4.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167851
138bc75d-0d04-0410-961f-
82ee72b054a4
ro [Wed, 15 Dec 2010 10:29:01 +0000 (10:29 +0000)]
* Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
(liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty.
(liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty.
* Makefile.in: Regenerate.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167850
138bc75d-0d04-0410-961f-
82ee72b054a4
davek [Wed, 15 Dec 2010 09:59:24 +0000 (09:59 +0000)]
* decl.c (java_init_decl_processing): Initialise integer_three_node.
* lang.c (put_decl_node): Handle nested function decls.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167849
138bc75d-0d04-0410-961f-
82ee72b054a4
davek [Wed, 15 Dec 2010 09:51:26 +0000 (09:51 +0000)]
PR testsuite/46938
* gcc.dg/pr43157.c: Add dg-require-linker-plugin directive.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167848
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Wed, 15 Dec 2010 06:25:38 +0000 (06:25 +0000)]
Check for errors when converting array index to GENERIC.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167846
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Wed, 15 Dec 2010 06:16:31 +0000 (06:16 +0000)]
Don't crash on undefined anonymous field.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167845
138bc75d-0d04-0410-961f-
82ee72b054a4
spop [Wed, 15 Dec 2010 05:04:50 +0000 (05:04 +0000)]
Fix PR46845: handle scop parameters before scev analysis.
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167844
138bc75d-0d04-0410-961f-
82ee72b054a4
spop [Wed, 15 Dec 2010 05:04:40 +0000 (05:04 +0000)]
Fix PR46928: handle "A[p] == A[p]" in data dep analysis with p a parameter 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167843
138bc75d-0d04-0410-961f-
82ee72b054a4
spop [Wed, 15 Dec 2010 05:04:30 +0000 (05:04 +0000)]
Fix PR45948: add ssa defs from builtin partitions to the last partition.
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167842
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Wed, 15 Dec 2010 02:32:24 +0000 (02:32 +0000)]
* config/arc/arc.h (LIB_SPEC): Define.
* config.gcc (arc-*-elf*): Don't use svr4.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167840
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Wed, 15 Dec 2010 02:07:07 +0000 (02:07 +0000)]
2010-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/46951
* testsuite/30_threads/future/members/45133.cc: Fix dg-options.
* testsuite/30_threads/shared_future/members/45133.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167839
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Wed, 15 Dec 2010 01:45:57 +0000 (01:45 +0000)]
Don't store error types in the Type-to-GENERIC hash table.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167838
138bc75d-0d04-0410-961f-
82ee72b054a4
nicola [Wed, 15 Dec 2010 01:35:20 +0000 (01:35 +0000)]
In libobjc/:
2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
* ivars.c (class_addIvar): Use the 'size' argument instead of
trying to calculate it using objc_sizeof_type().
* objc/runtime.h (class_addIvar): Updated comments.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167837
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Wed, 15 Dec 2010 01:05:10 +0000 (01:05 +0000)]
Don't get confused by error types in traversal.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167836
138bc75d-0d04-0410-961f-
82ee72b054a4
nicola [Wed, 15 Dec 2010 00:47:16 +0000 (00:47 +0000)]
2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
* sendmsg.c: Reindented some code and tidied up comments. No
actual code changes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167835
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Wed, 15 Dec 2010 00:35:17 +0000 (00:35 +0000)]
PR c++/46930
* decl.c (grokdeclarator): Reject uninitialized constexpr
static data member.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167834
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Wed, 15 Dec 2010 00:18:50 +0000 (00:18 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167833
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Wed, 15 Dec 2010 00:15:55 +0000 (00:15 +0000)]
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167829
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Wed, 15 Dec 2010 00:09:12 +0000 (00:09 +0000)]
Don't crash building initializer of invalid array.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167828
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Tue, 14 Dec 2010 23:56:00 +0000 (23:56 +0000)]
Don't crash on invalid slice composite literal.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167827
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Tue, 14 Dec 2010 23:45:50 +0000 (23:45 +0000)]
Fix comparison of string and interface types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167826
138bc75d-0d04-0410-961f-
82ee72b054a4
nicola [Tue, 14 Dec 2010 23:36:36 +0000 (23:36 +0000)]
2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
* objc/Object.h: Moved all the methods, with the exception of
-class and -isEqual:, into ...
* objc/deprecated/Object.h: here.
* Object.m: Moved all the methods, with the exception of -class
and -isEqual: into the 'Deprecated' category.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167825
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Tue, 14 Dec 2010 23:34:14 +0000 (23:34 +0000)]
Don't try to build unary and binary expressions with invalid types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167824
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Tue, 14 Dec 2010 23:27:17 +0000 (23:27 +0000)]
2010-12-14 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/45133
* include/std/future (__basic_future::wait): Throw if not valid.
(__basic_future::wait_for): Likewise.
(__basic_future::wait_until): Likewise.
(__basic_future::_M_get_result): Likewise.
* testsuite/30_threads/future/members/45133.cc: New.
* testsuite/30_threads/shared_future/members/45133.cc: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167823
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Tue, 14 Dec 2010 23:22:23 +0000 (23:22 +0000)]
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167822
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Tue, 14 Dec 2010 23:10:22 +0000 (23:10 +0000)]
Don't crash on invalid closure.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167821
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Tue, 14 Dec 2010 22:58:23 +0000 (22:58 +0000)]
Don't crash on invalid parameters/results.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167820
138bc75d-0d04-0410-961f-
82ee72b054a4
redi [Tue, 14 Dec 2010 22:13:26 +0000 (22:13 +0000)]
2010-12-14 Jonathan Wakely <jwakely.gcc@gmail.com>
PR libstdc++/46910
* include/bits/shared_ptr_base.h (_Sp_counted_deleter): Do not
derive from _Sp_counted_ptr.
* testsuite/20_util/shared_ptr/cons/46910.cc: New.
* testsuite/20_util/shared_ptr/cons/43820.cc: Adjust.
* testsuite/20_util/weak_ptr/comparison/cmp_neg.cc: Adjust.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167819
138bc75d-0d04-0410-961f-
82ee72b054a4
nicola [Tue, 14 Dec 2010 21:57:31 +0000 (21:57 +0000)]
2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
* objects.c (object_copy): Do not #undef as we are no longer
including objc/objc-api.h.
* selector.c: Include objc/runtime.h and
objc-private/module-abi-8.h. Do not include objc/objc-api.h and
objc/encoding.h. Updated
(__objc_register_selectors_from_class): Use struct
objc_method_list * instead of MethodList_t.
(__objc_register_selectors_from_list): Use Method instead of
Method_t.
(struct objc_method_description_list): Do not define here.
(__objc_register_instance_methods_to_class): Use struct
objc_method_list * instead of MethodList_t and Method instead of
Method_t.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167818
138bc75d-0d04-0410-961f-
82ee72b054a4
nicola [Tue, 14 Dec 2010 20:56:30 +0000 (20:56 +0000)]
Indented two lines that I missed in last commit. No code changes
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167817
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Tue, 14 Dec 2010 20:54:45 +0000 (20:54 +0000)]
Check for duplicate methods.
Don't get into an endless loop given invalid recursive types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167816
138bc75d-0d04-0410-961f-
82ee72b054a4
nicola [Tue, 14 Dec 2010 20:52:10 +0000 (20:52 +0000)]
2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
* selector.c: Reindented some code and tidied up comments. No
actual code changes.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167815
138bc75d-0d04-0410-961f-
82ee72b054a4
froydnj [Tue, 14 Dec 2010 20:31:22 +0000 (20:31 +0000)]
gcc/cp/
PR c++/45330
* cp-tree.h (suggest_alternatives_for): Add location_t parameter.
* name-lookup.c (suggest_alternatives_for): Likewise. Adjust.
* lex.c (unqualified_name_lookup_error): Adjust call to it.
* semantics.c (qualified_name_lookup_error): Move to...
* error.c (qualified_name_lookup_error): ...here. Call.
suggest_alternatives_for.
gcc/testsuite/
PR c++/45330
* g++.dg/lookup/suggestions1.C: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167814
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Tue, 14 Dec 2010 20:09:01 +0000 (20:09 +0000)]
* config.gcc (sparc-*-elf*, sparc-*-rtems*, sparc-*-linux*,
sparc-*-netbsdelf*, sparc*-*-solaris2*, sparc-wrs-vxworks,
sparc64-*-elf*, sparc64-*-rtems*, sparc64-*-linux*,
sparc64-*-netbsd*, sparc64-*-openbsd*): Don't use svr4.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167813
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Tue, 14 Dec 2010 19:35:58 +0000 (19:35 +0000)]
Don't crash on erroneous receiver or parameters.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167812
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Tue, 14 Dec 2010 19:27:07 +0000 (19:27 +0000)]
Correct handling of undefined name as key in map composite literal.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167810
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Tue, 14 Dec 2010 18:52:09 +0000 (18:52 +0000)]
Insert semicolon at EOF if necessary.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167809
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Tue, 14 Dec 2010 17:57:20 +0000 (17:57 +0000)]
Correct protection against recursive types.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167807
138bc75d-0d04-0410-961f-
82ee72b054a4
burnus [Tue, 14 Dec 2010 17:09:33 +0000 (17:09 +0000)]
2010-12-14 Tobias Burnus <burnus@net-b.de>
PR fortran/46937
* trans-types.c (create_fn_spec): "."-annotate derived types
with (proc-)pointer components.
2010-12-14 Tobias Burnus <burnus@net-b.de>
PR fortran/46937
* gfortran.dg/pointer_intent_4.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167806
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Tue, 14 Dec 2010 16:00:33 +0000 (16:00 +0000)]
* config/arm/arm.c (arm_expand_prologue): Report the static stack
size if -fstack-usage is used.
(thumb1_expand_prologue): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167805
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Tue, 14 Dec 2010 14:11:16 +0000 (14:11 +0000)]
PR debug/46885
* tree-ssa-loop-manip.c (canonicalize_loop_ivs): Use gsi_last_bb
instead of gsi_last_nondebug_bb if bump_in_latch.
* gcc.dg/autopar/pr46885.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167801
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Tue, 14 Dec 2010 14:09:59 +0000 (14:09 +0000)]
PR tree-optimization/46909
* gimple-fold.c (and_var_with_comparison_1): Save partial
result even in the is_and case, if both partial results
are the same, return it.
(or_var_with_comparison_1): Use is_or predicate instead of
innercode == TRUTH_OR_EXPR test. Save partial result
even in the is_or case, if both partial results are the
same, return it. In the !is_or case when both partial
results are the same, return the partial result instead
of boolean_true_node.
* gcc.c-torture/execute/pr46909-1.c: New test.
* gcc.c-torture/execute/pr46909-2.c: New test.
* gcc.dg/pr46909.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167800
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Tue, 14 Dec 2010 13:59:20 +0000 (13:59 +0000)]
PR fortran/46874
* trans-openmp.c (gfc_trans_omp_array_reduction): Handle allocatable
dummy variables.
* libgomp.fortran/allocatable6.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167799
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Tue, 14 Dec 2010 13:56:25 +0000 (13:56 +0000)]
PR fortran/46874
* trans-openmp.c (gfc_trans_omp_array_reduction): Handle allocatable
dummy variables.
* libgomp.fortran/allocatable6.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167798
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Tue, 14 Dec 2010 13:07:05 +0000 (13:07 +0000)]
PR middle-end/46667
* varasm.c (assemble_start_function): Do not call resolve_unique_section.
* cfgexpand.c (gimple_expand_cfg): Resolve it here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167795
138bc75d-0d04-0410-961f-
82ee72b054a4
amonakov [Tue, 14 Dec 2010 12:43:47 +0000 (12:43 +0000)]
PR rtl-optimization/46875
* sched-vis.c (print_pattern): Dump "sequence" for ADDR_VECs.
* sel-sched-ir.c (bb_has_removable_jump_to_p): Forbid table jumps.
testsuite:
* gcc.dg/pr46875.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167794
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Tue, 14 Dec 2010 10:57:11 +0000 (10:57 +0000)]
* g++.dg/other/first-global.C: Update regexp to match new
names of ctors.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167791
138bc75d-0d04-0410-961f-
82ee72b054a4
kaushikp [Tue, 14 Dec 2010 07:03:36 +0000 (07:03 +0000)]
* config/h8300/h8300.md (define_split) : Add condition for
"and with single_zero" splitter to handle 16-bit const operands.
* config/h8300/h8300.md (define_split) : Add condition for
"ior with single_one" splitter to handle 16-bit const operands.
* config/h8300/h8300.md (define_split) : Add condition for
"xor with single_one" splitter to handle 16-bit const operands.
* testsuite/gcc.dg/h8300-bit-insn-ice.c: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167789
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Tue, 14 Dec 2010 05:54:33 +0000 (05:54 +0000)]
Don't incorrectly parse expression as type switch.
Improve error reporting of invalid type assertions.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167787
138bc75d-0d04-0410-961f-
82ee72b054a4
kaushikp [Tue, 14 Dec 2010 05:28:02 +0000 (05:28 +0000)]
* MAINTAINERS: Added myself to MAINTAINERS (write after approval)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167786
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Tue, 14 Dec 2010 05:19:51 +0000 (05:19 +0000)]
Better error message if malloc gets a SIGSEGV.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167785
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Tue, 14 Dec 2010 05:16:18 +0000 (05:16 +0000)]
Release cache while holding thread lock.
Don't bother to hold thread lock while allocating cache.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167784
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Tue, 14 Dec 2010 01:26:47 +0000 (01:26 +0000)]
This time really commit
PR middle-end/45388
* decl2.c (start_objects): Do not generate collect2 recognicable name
for static ctor.
* ipa.c (cgraph_build_static_cdtor_1): Break out from ... ; add FINAL parameter.
(cgraph_build_static_cdtor): ... here.
(build_cdtor): Use cgraph_build_static_cdtor_1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167781
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Tue, 14 Dec 2010 00:26:29 +0000 (00:26 +0000)]
* config/m32c/m32c.h (ENDFILE_SPEC, LINK_SPEC, SIZE_TYPE,
PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
* config.gcc (m32c-*-rtems*, m32c-*-elf*): Don't use svr4.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167780
138bc75d-0d04-0410-961f-
82ee72b054a4
bernds [Tue, 14 Dec 2010 00:23:40 +0000 (00:23 +0000)]
gcc/
PR rtl-optimization/44374
Reapply patch with fixes.
* basic-block.h (enum bb_flags): Add BB_MODIFIED.
* df-core.c (df_set_bb_dirty): Set it.
* ifcvt.c (find_memory): Remove function.
(dead_or_predicable): Use can_move_insns_across.
* df.h (can_move_insns_across): Declare function.
* cfgcleanup.c (block_was_dirty): New static variable.
(flow_find_head_matching_sequence): Test for epilogue notes.
(try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
than df_get_bb_dirty.
(try_head_merge_bb): New static function.
(try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
is set.
* df-problems.c: Include "target.h"
(df_simulate_find_uses): New static function.
(MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
(find_memory, find_memory_store): New static functions.
(can_move_insns_across): New function.
* Makefile.in (df-problems.o): Update dependencies.
gcc/testsuite/
PR rtl-optimization/44374
Reapply patch with fixes.
* gcc.target/arm/headmerge-1.c: New test.
* gcc.target/arm/headmerge-2.c: New test.
* gcc.target/i386/headmerge-1.c: New test.
* gcc.target/i386/headmerge-2.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167779
138bc75d-0d04-0410-961f-
82ee72b054a4
gccadmin [Tue, 14 Dec 2010 00:17:44 +0000 (00:17 +0000)]
Daily bump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167778
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Mon, 13 Dec 2010 23:59:50 +0000 (23:59 +0000)]
* config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
(DBX_REGISTER_NUMBER): Undefine.
* config/xtensa/linux.h (SIZE_TYPE, PTRDIFF_TYPE): Define.
(DBX_REGISTER_NUMBER): Undefine.
* config.gcc (xtensa*-*-elf*, xtensa*-*-linux*): Don't use svr4.h.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167774
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Mon, 13 Dec 2010 23:11:53 +0000 (23:11 +0000)]
* gospec.c (lang_specific_driver): Add a -o option if not linking
and there is no -o option already.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167773
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Mon, 13 Dec 2010 21:49:00 +0000 (21:49 +0000)]
* de.po: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167772
138bc75d-0d04-0410-961f-
82ee72b054a4
jsm28 [Mon, 13 Dec 2010 21:47:47 +0000 (21:47 +0000)]
* de.po, sv.po: Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167771
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Mon, 13 Dec 2010 20:46:58 +0000 (20:46 +0000)]
PR c++/46873
PR c++/46877
* semantics.c (build_data_member_initialization): Handle
cv-qualified data member.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167770
138bc75d-0d04-0410-961f-
82ee72b054a4
jason [Mon, 13 Dec 2010 20:46:34 +0000 (20:46 +0000)]
foo
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167769
138bc75d-0d04-0410-961f-
82ee72b054a4
burnus [Mon, 13 Dec 2010 19:44:38 +0000 (19:44 +0000)]
2010-12-13 Tobias Burnus <burnus@net-b.de>
PR fortran/46625
* gdtoa/gdtoaimp.h: Mangle internal functions by
prefixing them with __quadmath. Don't use gdtoa's strcp(y).
* gdtoa/g_Qfmt.c (g_Qfmt): Use strcpy instead of strcp.
* gdtoa/misc.c (strcpy): Renamed from strcp and only use
if NO_STRING_H is set.
* quadmath-imp.h (__quadmath_rem_pio2q,
* __quadmath_kernel_sincosq
__quadmath_kernel_sinq, __quadmath_kernel_cosq): Added
__quadmath prefix to internal functions.
* math/cosq.c (cosq): Ditto.
* math/sinq.c (cosq): Ditto.
* math/tanq.c (tanq,__quadmath_kernel_tanq): Ditto.
* math/rem_pio2q.c (rem_pio2, __quadmath_kernel_rem_pio2):
* Ditto.
* math/sinq_kernel.c (__quadmath_kernel_sinq): Ditto.
* math/cosq_kernel.c (__quadmath_kernel_cosq): Ditto.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167768
138bc75d-0d04-0410-961f-
82ee72b054a4
janus [Mon, 13 Dec 2010 19:17:46 +0000 (19:17 +0000)]
2010-12-13 Janus Weil <janus@gcc.gnu.org>
PR fortran/46201
* trans-expr.c (gfc_conv_procedure_call): Handle procedure pointer
components called on a dimensionful base object.
2010-12-13 Janus Weil <janus@gcc.gnu.org>
PR fortran/46201
* gfortran.dg/proc_ptr_comp_27.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167767
138bc75d-0d04-0410-961f-
82ee72b054a4
ian [Mon, 13 Dec 2010 18:34:45 +0000 (18:34 +0000)]
PR bootstrap/46650
* system.h: Include cstring for cxx bootstrap.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167764
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Mon, 13 Dec 2010 18:10:49 +0000 (18:10 +0000)]
* gcc-interface/decl.c (gnat_to_gnu_entity) <E_General_Access_Type>:
Build a stub DECL for the dummy fat pointer type in the unconstrained
array case.
* gcc-interface/utils.c (update_pointer_to): Set the DECL_ORIGINAL_TYPE
for all the variants in the fat pointer case.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167758
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Mon, 13 Dec 2010 17:51:47 +0000 (17:51 +0000)]
* gcc-interface/trans.c (can_be_lower_p): New predicate.
(Loop_Statement_to_gnu): Do not generate the entry condition if we know
that it will be true.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167757
138bc75d-0d04-0410-961f-
82ee72b054a4
asharif [Mon, 13 Dec 2010 17:43:07 +0000 (17:43 +0000)]
Removed testcase that was failing on i386.
* testsuite/gcc.target/i386/max-stack-align.c. Removed testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167756
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Mon, 13 Dec 2010 17:37:20 +0000 (17:37 +0000)]
PR lto/46879
* lto-streamer-out.c (output_gimple_stmt): Never replace first
GIMPLE_DEBUG argument with MEM_REF.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167755
138bc75d-0d04-0410-961f-
82ee72b054a4
jakub [Mon, 13 Dec 2010 17:36:26 +0000 (17:36 +0000)]
PR debug/46867
* var-tracking.c (emitted_notes, string_pointer_flags): Removed.
(emit_note_insn_var_location): Remove ENABLE_RTL_CHECKING verification.
(vt_emit_notes): Don't initialize and destroy emitted_notes.
* gcc.dg/pr46867.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167754
138bc75d-0d04-0410-961f-
82ee72b054a4
hubicka [Mon, 13 Dec 2010 17:29:14 +0000 (17:29 +0000)]
PR middle-end/45388
* decl2.c (start_objects): Do not generate collect2 recognicable name
for static ctor.
* ipa.c (cgraph_build_static_cdtor_1): Break out from ... ; add FINAL parameter.
(cgraph_build_static_cdtor): ... here.
(build_cdtor): Use cgraph_build_static_cdtor_1.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167753
138bc75d-0d04-0410-961f-
82ee72b054a4
froydnj [Mon, 13 Dec 2010 16:23:50 +0000 (16:23 +0000)]
gcc/
PR target/46040
* config.gcc (arm*-*-linux-*eabi): Use bpabi-lib.h.
(arm*-*-uclinux*eabi, arm*-*-eabi*): Likewise.
libgcc/
PR target/46040
* config/arm/bpabi.h: Rename to...
* config/arm/bpabi-lib.h: ...this.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167751
138bc75d-0d04-0410-961f-
82ee72b054a4
janus [Mon, 13 Dec 2010 16:16:06 +0000 (16:16 +0000)]
2010-12-13 Janus Weil <janus@gcc.gnu.org>
PR fortran/46841
* trans-expr.c (gfc_trans_subcomponent_assign): Handle array-valued
procedure pointer components.
2010-12-13 Janus Weil <janus@gcc.gnu.org>
PR fortran/46841
* gfortran.dg/proc_ptr_comp_26.f90: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167750
138bc75d-0d04-0410-961f-
82ee72b054a4
ro [Mon, 13 Dec 2010 11:59:22 +0000 (11:59 +0000)]
* config/abi/post/solaris2.8/baseline_symbols.txt: Regenerate.
* config/abi/post/solaris2.8/sparcv9/baseline_symbols.txt: Likewise.
* config/abi/post/solaris2.10/baseline_symbols.txt: Likewise.
* config/abi/post/solaris2.10/amd64/baseline_symbols.txt: Likewise.
* config/abi/post/solaris2.10/sparcv9/baseline_symbols.txt: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167748
138bc75d-0d04-0410-961f-
82ee72b054a4
ebotcazou [Mon, 13 Dec 2010 11:35:10 +0000 (11:35 +0000)]
* gnat.dg/pack9.adb: XFAIL everywhere.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167747
138bc75d-0d04-0410-961f-
82ee72b054a4