OSDN Git Service

pf3gnuchains/gcc-fork.git
11 years ago * config/interix.opt: New.
jsm28 [Fri, 17 Dec 2010 16:45:18 +0000 (16:45 +0000)]
* config/interix.opt: New.
* config/interix.h (LINK_SPEC): Don't handle -soname*.
* config.gcc (i[34567]86-*-interix3*): Use interix.opt.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167992 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-12-17 Andrew Stubbs <ams@codesourcery.com>
ams [Fri, 17 Dec 2010 16:30:37 +0000 (16:30 +0000)]
2010-12-17  Andrew Stubbs  <ams@codesourcery.com>

gcc/
* config/arm/arm.md (maddhisi4, *maddhidi4): Use the canonical
operand order for plus.
Drop redundant % from constraints.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167991 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/spu/t-spu-elf (LIB2FUNCS_EXCLUDE): Add _floattisf and
uweigand [Fri, 17 Dec 2010 14:10:02 +0000 (14:10 +0000)]
* config/spu/t-spu-elf (LIB2FUNCS_EXCLUDE): Add _floattisf and
_floatunstisf.
* config/spu/spu.md ("floattisf2"): New expander.
("floatunstisf2"): New insn pattern and splitter.
("cgt_ti_m1"): New insn pattern.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167984 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * ja.po: Update.
jsm28 [Fri, 17 Dec 2010 14:01:47 +0000 (14:01 +0000)]
* ja.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167983 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * ja.po: Update.
jsm28 [Fri, 17 Dec 2010 14:00:25 +0000 (14:00 +0000)]
* ja.po: Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167982 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/
bernds [Fri, 17 Dec 2010 13:48:40 +0000 (13:48 +0000)]
gcc/
* config/arm/arm.c (arm_select_cc_mode): Before calling
arm_select_dominance_cc_mode for AND or IOR operations, ensure
that op is NE or EQ.

gcc/testsuite/
* gcc.c-torture/compile/20101217-1.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167981 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR middle-end/46761
amonakov [Fri, 17 Dec 2010 12:54:59 +0000 (12:54 +0000)]
PR middle-end/46761
* graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Prefer
to use unadjusted UB.

testsuite:
* gcc.dg/graphite/pr46761.c: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167980 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-12-17 Janus Weil <janus@gcc.gnu.org>
janus [Fri, 17 Dec 2010 12:31:54 +0000 (12:31 +0000)]
2010-12-17  Janus Weil  <janus@gcc.gnu.org>
    Tobias Burnus <burnus@gcc.gnu.org>

PR fortran/46849
* resolve.c (resolve_symbol): Remove symbols that wrongly ended up
in a local BLOCK namespace.

2010-12-17  Janus Weil  <janus@gcc.gnu.org>

PR fortran/46849
* gfortran.dg/block_9.f08: New.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167978 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-12-17 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 17 Dec 2010 11:51:16 +0000 (11:51 +0000)]
2010-12-17  Paolo Carlini  <paolo.carlini@oracle.com>

* aclocal.m4: Regenerate.
* Makefile.in: Likewise.
* testsuite/Makefile.in: Likewise.
* libsupc++/Makefile.in: Likewise.
* include/Makefile.in: Likewise.
* po/Makefile.in: Likewise.
* doc/Makefile.in: Likewise.
* src/Makefile.in: Likewise.
* python/Makefile.in: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167977 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix for PR debug/45088
dodji [Fri, 17 Dec 2010 10:39:21 +0000 (10:39 +0000)]
Fix for PR debug/45088

gcc/

* dwarf2out.c (gen_type_die_with_usage): Do not try to emit debug
info for a redundant typedef that has DECL_ORIGINAL_TYPE set. Use
that underlying type instead.

gcc/testsuite/

* g++.dg/debug/dwarf2/self-ref-1.C: New test.
* g++.dg/debug/dwarf2/self-ref-2.C: Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167976 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoRework locking code to split stack much less.
ian [Fri, 17 Dec 2010 06:42:06 +0000 (06:42 +0000)]
Rework locking code to split stack much less.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167973 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoUpdate to current master source.
ian [Fri, 17 Dec 2010 06:37:06 +0000 (06:37 +0000)]
Update to current master source.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167972 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDon't split stack in bytes.IndexByte.
ian [Fri, 17 Dec 2010 06:36:10 +0000 (06:36 +0000)]
Don't split stack in bytes.IndexByte.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167971 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoAvoid always splitting the stack when calling append and copy.
ian [Fri, 17 Dec 2010 06:33:41 +0000 (06:33 +0000)]
Avoid always splitting the stack when calling append and copy.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167970 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Fri, 17 Dec 2010 00:18:28 +0000 (00:18 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167968 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR middle-end/44563
hubicka [Fri, 17 Dec 2010 00:08:02 +0000 (00:08 +0000)]
PR middle-end/44563
* ipa-inline.c: Update doplevel comment.
(cgraph_estimate_size_after_inlining): Remove times attribute.
(cgraph_mark_inline_edge): Update.
(cgraph_mark_inline): Remove.
(cgraph_estimate_growth): Update.
(cgraph_check_inline_limits): Remove one only argument.
(cgraph_edge_badness): Update.
(cgraph_decide_recursive_inlining): Update.
(cgraph_decide_inlining_of_small_function): Fix handling of tree_can_inline_p
and call_stmt_cannot_inline_p.
(cgraph_flatten): Likewise.
(cgraph_decide_inlining): Update.
(cgraph_decide_inlining_incrementally): Fix handling of call_stmt_cannot_inline_p.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167964 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/darwin.opt (dylinker, headerpad_max_install_names,
jsm28 [Thu, 16 Dec 2010 23:37:23 +0000 (23:37 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167963 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix PR46924: Do not detect reductions outside the current SESE region.
spop [Thu, 16 Dec 2010 22:54:17 +0000 (22:54 +0000)]
Fix PR46924: Do not detect reductions outside the current SESE region.

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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167962 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoIn libobjc/:
nicola [Thu, 16 Dec 2010 22:52:48 +0000 (22:52 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167961 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR tree-optimization/46966
jakub [Thu, 16 Dec 2010 22:45:42 +0000 (22:45 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167960 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * tree-ssa-sccvn.c (vn_reference_lookup_3): Always punt if the call to
ebotcazou [Thu, 16 Dec 2010 22:35:35 +0000 (22:35 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167958 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago Support for LEON processor
ebotcazou [Thu, 16 Dec 2010 22:28:45 +0000 (22:28 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167957 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-11-16 Benjamin Kosnik <bkoz@redhat.com>
bkoz [Thu, 16 Dec 2010 22:02:38 +0000 (22:02 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167956 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR tree-optimization/43655
jakub [Thu, 16 Dec 2010 21:44:02 +0000 (21:44 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167955 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoFix PR46404: call scev_reset to reset the number of iterations as well.
spop [Thu, 16 Dec 2010 20:05:18 +0000 (20:05 +0000)]
Fix PR46404: call scev_reset to reset the number of iterations as well.

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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167954 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoPR libgcj/46774: Create dynamic ProtectionDomain instances which check the system...
gandalf [Thu, 16 Dec 2010 19:48:07 +0000 (19:48 +0000)]
PR libgcj/46774: Create dynamic ProtectionDomain instances which check the 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167952 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/sh/sh.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
aesok [Thu, 16 Dec 2010 18:41:56 +0000 (18:41 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167951 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config/spu/t-spu-elf (LIB2_SIDITI_CONV_FUNC): Define.
uweigand [Thu, 16 Dec 2010 18:12:23 +0000 (18:12 +0000)]
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167950 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR debug/46893
jakub [Thu, 16 Dec 2010 17:14:30 +0000 (17:14 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167949 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoMake main return 0.
hjl [Thu, 16 Dec 2010 12:15:18 +0000 (12:15 +0000)]
Make main return 0.

2010-12-16  H.J. Lu  <hongjiu.lu@intel.com>

PR lto/46976
* gcc.dg/lto/pr46940_1.c (main): Return 0.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167903 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago2010-12-16 Chung-Lin Tang <cltang@codesourcery.com>
cltang [Thu, 16 Dec 2010 05:10:18 +0000 (05:10 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167900 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDon't crash on recursive consts.
ian [Thu, 16 Dec 2010 04:47:18 +0000 (04:47 +0000)]
Don't crash on recursive consts.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167899 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoRework handling of recursive function types.
ian [Thu, 16 Dec 2010 02:24:10 +0000 (02:24 +0000)]
Rework handling of recursive function types.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167898 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDon't crash when copying a call with no arguments.
ian [Thu, 16 Dec 2010 01:47:10 +0000 (01:47 +0000)]
Don't crash when copying a call with no arguments.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167897 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR lto/46976
hubicka [Thu, 16 Dec 2010 01:47:08 +0000 (01:47 +0000)]
PR lto/46976
* gcc.dg/lto/pr46940_0.c: Fix commit.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167896 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/cp/
froydnj [Thu, 16 Dec 2010 01:36:09 +0000 (01:36 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167895 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agogcc/cp/
froydnj [Thu, 16 Dec 2010 01:33:03 +0000 (01:33 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167894 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago PR middle-end/46939
hubicka [Thu, 16 Dec 2010 01:27:23 +0000 (01:27 +0000)]
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167893 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDon't crash on invalid tuple assignment.
ian [Thu, 16 Dec 2010 01:26:35 +0000 (01:26 +0000)]
Don't crash on invalid tuple assignment.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167892 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoCheck for errors from Gogo::call_builtin.
ian [Thu, 16 Dec 2010 00:44:14 +0000 (00:44 +0000)]
Check for errors from Gogo::call_builtin.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167891 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDaily bump.
gccadmin [Thu, 16 Dec 2010 00:17:16 +0000 (00:17 +0000)]
Daily bump.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167890 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDon't crash with go or defer of bad call.
ian [Thu, 16 Dec 2010 00:15:16 +0000 (00:15 +0000)]
Don't crash with go or defer of bad call.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167886 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * config.gcc (powerpc-*-lynxos*): Don't add lynx.opt to
jsm28 [Thu, 16 Dec 2010 00:04:17 +0000 (00:04 +0000)]
* config.gcc (powerpc-*-lynxos*): Don't add lynx.opt to
extra_options twice.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167885 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDon't crash on Sizeof of undefined type.
ian [Thu, 16 Dec 2010 00:02:33 +0000 (00:02 +0000)]
Don't crash on Sizeof of undefined type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167884 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDon't crash on Sizeof of undefined type.
ian [Wed, 15 Dec 2010 23:56:51 +0000 (23:56 +0000)]
Don't crash on Sizeof of undefined type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167883 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDon't crash on tuple initialization from erroneous channel.
ian [Wed, 15 Dec 2010 23:50:02 +0000 (23:50 +0000)]
Don't crash on tuple initialization from erroneous channel.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167882 138bc75d-0d04-0410-961f-82ee72b054a4

11 years agoDon't crash on empty struct created due to recursive reference.
ian [Wed, 15 Dec 2010 23:40:15 +0000 (23:40 +0000)]
Don't crash on empty struct created due to recursive reference.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167881 138bc75d-0d04-0410-961f-82ee72b054a4

11 years ago * doc/tm.texi.in (US_SOFTWARE_GOFAST): Don't document.
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

11 years agoTweak handling of invalid function signature for function literal.
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

11 years agoCheck for pointer to error type when looking for method.
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

11 years agoPermit _ as a result variable name.
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

11 years agoAdd testcase for PR46404.
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

11 years agoFix test for invalid type in anonymous field.
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

11 years agoAdd statements to type switch even if there are no valid types.
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

11 years agoCheck errors in binary comparisons and builtin calls.
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

11 years ago PR fortran/46945
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

11 years agoPush hash table identity check down to subtypes.
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

11 years agoIn libobjc/:
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

11 years agoUse a different identity function for Types in hash tables.
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

11 years ago PR debug/46815
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

11 years agoIn libobjc/:
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

11 years agoBetter error message for malloc() failure
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

11 years ago/cp
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

11 years agoPR 28105 Remove size<0 checks before calling malloc/realloc
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

11 years ago Revert last change.
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

11 years ago * tree.c (get_file_function_name): Avoid using random seed on GLOBAL_sub_I
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

11 years agoCorrect PR number in gfortran.dg/debug/pr46756.f.
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

11 years agoMove gfortran.dg/debug/pr46576.f to gfortran.dg/debug/pr46756.f.
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

11 years ago2010-12-15 Martin Jambor <mjambor@suse.cz>
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

11 years ago PR rtl-optimization/46649
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

11 years ago2010-12-15 Paolo Carlini <paolo.carlini@oracle.com>
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

11 years ago * config/stormy16/stormy16.h (LINK_SPEC, WCHAR_TYPE): Define.
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

11 years ago * config/rx/rx.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
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

11 years ago * Makefile.am (liblto_plugin_la_DEPENDENCIES): Define.
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

11 years ago * decl.c (java_init_decl_processing): Initialise integer_three_node.
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

11 years ago PR testsuite/46938
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

11 years agoCheck for errors when converting array index to GENERIC.
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

11 years agoDon't crash on undefined anonymous field.
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

11 years agoFix PR46845: handle scop parameters before scev analysis.
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

11 years agoFix PR46928: handle "A[p] == A[p]" in data dep analysis with p a parameter of the...
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

11 years agoFix PR45948: add ssa defs from builtin partitions to the last partition.
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

11 years ago * config/arc/arc.h (LIB_SPEC): Define.
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

11 years ago2010-12-15 Jonathan Wakely <jwakely.gcc@gmail.com>
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

11 years agoDon't store error types in the Type-to-GENERIC hash table.
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

11 years agoIn libobjc/:
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

11 years agoDon't get confused by error types in traversal.
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

11 years ago2010-12-15 Nicola Pero <nicola.pero@meta-innovation.com>
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

11 years ago PR c++/46930
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

11 years agoDaily bump.
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

11 years ago * config/sh/elf.h (LIB_SPEC): Define.
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

11 years agoDon't crash building initializer of invalid array.
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

11 years agoDon't crash on invalid slice composite literal.
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

11 years agoFix comparison of string and interface types.
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

11 years ago2010-12-14 Nicola Pero <nicola.pero@meta-innovation.com>
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

11 years agoDon't try to build unary and binary expressions with invalid types.
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

11 years ago2010-12-14 Jonathan Wakely <jwakely.gcc@gmail.com>
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

11 years ago PR lto/46940
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

11 years agoDon't crash on invalid closure.
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

11 years agoDon't crash on invalid parameters/results.
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

11 years ago2010-12-14 Jonathan Wakely <jwakely.gcc@gmail.com>
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