platform/upstream/linaro-gcc.git
10 years ago PR plugins/59335
jakub [Tue, 15 Apr 2014 08:02:46 +0000 (08:02 +0000)]
PR plugins/59335
* Makefile.in (PLUGIN_HEADERS): Add various headers that have been
added in 4.9.

* Make-lang.h (CP_PLUGIN_HEADERS): Add type-utils.h.

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

10 years ago * cfgloop.h (struct loop): Move force_vectorize down.
ebotcazou [Tue, 15 Apr 2014 08:01:01 +0000 (08:01 +0000)]
* cfgloop.h (struct loop): Move force_vectorize down.
* gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
(gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
* lto-streamer-in.c (input_cfg): Read dont_vectorize field.
* lto-streamer-out.c (output_cfg): Write dont_vectorize field.
* tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
* tree-core.h (enum annot_expr_kind): Add new kind values.
* tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
* tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
kinds.
* tree.def (ANNOTATE_EXPR): Tweak comment.
ada/
* gcc-interface/trans.c (gnat_gimplify_stmt): Propagate loop hints.

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

10 years ago2014-04-15 Max Ostapenko <m.ostapenko@partner.samsung.com>
chefmax [Tue, 15 Apr 2014 07:31:51 +0000 (07:31 +0000)]
2014-04-15  Max Ostapenko  <m.ostapenko@partner.samsung.com>

* c-c++-common/asan/null-deref-1.c: Change regexp to pass test
under qemu-arm.
* c-c++-common/ubsan/div-by-zero-1.c: Likewise.
* c-c++-common/ubsan/div-by-zero-2.c: Likewise.
* c-c++-common/ubsan/div-by-zero-3.c: Likewise.
* c-c++-common/ubsan/load-bool-enum.c (foo): Likewise.
* c-c++-common/ubsan/null-1.c: Likewise.
* c-c++-common/ubsan/null-10.c: Likewise.
* c-c++-common/ubsan/null-11.c: Likewise.
* c-c++-common/ubsan/null-2.c: Likewise.
* c-c++-common/ubsan/null-3.c: Likewise.
* c-c++-common/ubsan/null-4.c: Likewise.
* c-c++-common/ubsan/null-5.c: Likewise.
* c-c++-common/ubsan/null-6.c: Likewise.
* c-c++-common/ubsan/null-7.c: Likewise.
* c-c++-common/ubsan/null-8.c: Likewise.
* c-c++-common/ubsan/null-9.c: Likewise.
* c-c++-common/ubsan/overflow-add-2.c: Likewise.
* c-c++-common/ubsan/overflow-int128.c: Likewise.
* c-c++-common/ubsan/overflow-mul-2.c: Likewise.
* c-c++-common/ubsan/overflow-mul-4.c: Likewise.
* c-c++-common/ubsan/overflow-negate-1.c: Likewise.
* c-c++-common/ubsan/overflow-sub-2.c: Likewise.
* c-c++-common/ubsan/pr59333.c: Likewise.
* c-c++-common/ubsan/pr59667.c: Likewise.
* c-c++-common/ubsan/pr60613-2.c: Likewise.
* c-c++-common/ubsan/pr60636.c: Likewise.
* c-c++-common/ubsan/shift-1.c: Likewise.
* c-c++-common/ubsan/shift-2.c: Likewise.
* c-c++-common/ubsan/vla-1.c: Likewise.

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

10 years agoDaily bump.
gccadmin [Tue, 15 Apr 2014 00:16:39 +0000 (00:16 +0000)]
Daily bump.

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

10 years agoN3887 Consistent Metafunction Aliases
redi [Mon, 14 Apr 2014 23:17:52 +0000 (23:17 +0000)]
N3887 Consistent Metafunction Aliases

* include/std/tuple (tuple_element_t): Define.
* testsuite/20_util/tuple/tuple_element.cc: Change to compile-only
test.
* testsuite/20_util/tuple/tuple_element_t.cc: New.

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

10 years agoSync to current external repository.
ian [Mon, 14 Apr 2014 22:43:47 +0000 (22:43 +0000)]
Sync to current external repository.

user:        Ian Lance Taylor <iant@golang.org>
date:        Thu Apr 10 09:25:24 2014 -0700
files:       go/expressions.cc
description:
compiler: add checks for constant overflow

Prevent extremely large constants from eating all of memory.

user:        Chris Manghane <cmang@golang.org>
date:        Mon Apr 07 16:57:09 2014 -0700
files:       go/gogo-tree.cc go/gogo.cc go/gogo.h go/statements.cc
description:
compiler: Use backend interface for variable initialization.

user:        Chris Manghane <cmang@golang.org>
date:        Thu Apr 03 19:56:05 2014 -0700
files:       go/backend.h go/gogo-tree.cc go/gogo.cc go/gogo.h
description:
compiler: Use backend interface to build function code.

changeset:   1269:6e30875d539e
user:        Chris Manghane <cmang@golang.org>
date:        Wed Apr 02 13:16:00 2014 -0700
files:       go/backend.h go/gogo-tree.cc go/gogo.cc go/gogo.h
description:
compiler: Use backend interface for building function defer wrappers.

user:        Chris Manghane <cmang@golang.org>
date:        Mon Mar 31 12:42:49 2014 -0700
files:       go/expressions.cc go/gogo-tree.cc go/gogo.cc go/gogo.h
description:
compiler: Use backend interface for memory allocation.

user:        Chris Manghane <cmang@golang.org>
date:        Thu Mar 27 14:22:49 2014 -0700
files:       go/backend.h go/expressions.cc go/expressions.h
description:
compiler: Use backend interface for fixed array construction.

user:        Chris Manghane <cmang@golang.org>
date:        Mon Mar 17 21:25:04 2014 -0700
files:       go/expressions.cc
description:
compiler: Check for loops in self-referential array types. Fixes issue 7525.

user:        Chris Manghane <cmang@golang.org>
date:        Mon Mar 17 14:31:59 2014 -0700
files:       go/gogo.cc go/parse.cc
description:
compiler: Don't declare blank labels. Fixes issue 7539.

user:        Chris Manghane <cmang@golang.org>
date:        Mon Mar 17 13:12:32 2014 -0700
files:       go/backend.h go/expressions.cc go/expressions.h go/runtime.def
description:
compiler: Use backend interface for call expressions.

user:        Chris Manghane <cmang@golang.org>
date:        Wed Mar 12 13:34:27 2014 -0700
files:       go/expressions.cc go/expressions.h go/gogo-tree.cc go/statements.cc
description:
compiler: Use backend interface map construction.

user:        Chris Manghane <cmang@golang.org>
date:        Tue Mar 11 12:53:06 2014 -0700
files:       go/backend.h go/expressions.cc go/gogo-tree.cc go/gogo.h
description:
compiler: Use backend interface for string expressions.

user:        Chris Manghane <cmang@golang.org>
date:        Sat Mar 08 15:56:59 2014 -0800
files:       go/backend.h go/expressions.cc go/expressions.h
description:
compiler: Use backend interface for array and string indexing.

user:        Chris Manghane <cmang@golang.org>
date:        Fri Mar 07 16:02:18 2014 -0800
files:       go/expressions.cc
description:
compiler: Use backend interface for constant expressions.

user:        Chris Manghane <cmang@golang.org>
date:        Thu Mar 06 16:00:18 2014 -0800
files:       go/expressions.cc
description:
compiler: Use backend interface for struct construction.

user:        Chris Manghane <cmang@golang.org>
date:        Wed Mar 05 13:09:37 2014 -0800
files:       go/expressions.cc
description:
compiler: Use backend interface for type conversions.

user:        Chris Manghane <cmang@golang.org>
date:        Tue Mar 04 07:03:47 2014 -0800
files:       go/expressions.cc go/expressions.h go/gogo-tree.cc go/gogo.h go/runtime.def libgo/runtime/chan.c
description:
compiler: Use backend interface for channel receive.

user:        Chris Manghane <cmang@golang.org>
date:        Mon Mar 03 15:18:57 2014 -0800
files:       go/backend.h go/expressions.cc go/runtime.def
description:
compiler: Use backend interface for builtin calls.

user:        Chris Manghane <cmang@golang.org>
date:        Mon Mar 03 07:44:35 2014 -0800
files:       go/expressions.cc go/expressions.h go/types.cc go/types.h
description:
compiler: Use backend interface for string info.

user:        Chris Manghane <cmang@golang.org>
date:        Fri Feb 28 10:45:55 2014 -0800
files:       go/expressions.cc go/expressions.h go/gogo-tree.cc go/statements.cc
description:
compiler: Use backend interface for map indexing.

user:        Chris Manghane <cmang@golang.org>
date:        Wed Feb 26 14:13:10 2014 -0800
files:       go/expressions.cc go/expressions.h
description:
compiler: Use backend interface for slice value expressions.

user:        Chris Manghane <cmang@golang.org>
date:        Wed Feb 26 13:12:19 2014 -0800
files:       go/backend.h go/expressions.cc go/expressions.h go/gogo-tree.cc go/runtime.def go/statements.cc
description:
compiler: Use backend interface for interface values.

user:        Chris Manghane <cmang@golang.org>
date:        Mon Feb 24 12:30:13 2014 -0800
files:       go/expressions.cc go/expressions.h go/parse.cc go/statements.cc
description:
compiler: Change Heap_composite_expression to Heap_expression.

user:        Chris Manghane <cmang@golang.org>
date:        Thu Feb 20 19:47:06 2014 -0800
files:       go/expressions.cc go/expressions.h go/gogo-tree.cc go/gogo.cc go/gogo.h go/types.cc go/types.h
description:
compiler: Use backend interface for interface method table expressions.

user:        Chris Manghane <cmang@golang.org>
date:        Mon Feb 03 14:36:20 2014 -0800
files:       go/expressions.cc go/expressions.h
description:
compiler: Add compound expressions to the frontend.

* go-gcc.cc: Include "convert.h".
(Gcc_backend::string_constant_expression): New function.
(Gcc_backend::real_part_expression): Likewise.
(Gcc_backend::imag_part_expression): Likewise.
(Gcc_backend::complex_expression): Likewise.
(Gcc_backend::constructor_expression): Likewise.
(Gcc_backend::array_constructor_expression): Likewise.
(Gcc_backend::pointer_offset_expression): Likewise.
(Gcc_backend::array_index_expression): Likewise.
(Gcc_backend::call_expression): Likewise.
(Gcc_backend::exception_handler_statement): Likewise.
(Gcc_backend::function_defer_statement): Likewise.
(Gcc_backend::function_set_parameters): Likewise.
(Gcc_backend::function_set_body): Likewise.
(Gcc_backend::convert_expression): Handle various type
conversions.

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

10 years ago * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
hubicka [Mon, 14 Apr 2014 19:59:00 +0000 (19:59 +0000)]
* ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
cxa_pure_virtual).

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

10 years ago2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Mon, 14 Apr 2014 18:10:27 +0000 (18:10 +0000)]
2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>

* tree.h (TYPE_IDENTIFIER): Declare.
* tree.c (subrange_type_for_debug_p): Use it.
* godump.c (go_format_type): Likewise.
* dwarf2out.c (is_cxx_auto, modified_type_die,
gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
* dbxout.c (dbxout_type, dbxout_symbol): Likewise.

/cp
2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>

* cp-tree.h (TYPE_IDENTIFIER): Remove declaration.

/objcp
2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>

* objcp-decl.h (OBJC_TYPE_NAME, OBJC_SET_TYPE_NAME): Use
TYPE_IDENTIFIER.

/ada
2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>

* gcc-interface/decl.c (gnat_to_gnu_entity, components_to_record):
Use TYPE_IDENTIFIER.
* gcc-interface/utils.c (make_aligning_type, maybe_pad_type,
finish_record_type, rest_of_record_type_compilation): Likewise.

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

10 years ago PR lto/60820
hubicka [Mon, 14 Apr 2014 17:53:34 +0000 (17:53 +0000)]
PR lto/60820
* varpool.c (varpool_remove_node): Do not alter decls when streaming.

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

10 years ago * config/i386/i386.c (examine_argument): Return bool. Return true if
uros [Mon, 14 Apr 2014 17:49:36 +0000 (17:49 +0000)]
* config/i386/i386.c (examine_argument): Return bool.  Return true if
parameter should be passed in memory.
<case X86_64_COMPLEX_X87_CLASS>: Adjust.
(construct_container): Update calls to examine_argument.
(function_arg_advance_64): Ditto.
(return_in_memory_32): Merge with ix86_return_in_memory.
(return_in_memory_64): Ditto.
(return_in_memory_ms_64): Ditto.

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

10 years ago * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
hubicka [Mon, 14 Apr 2014 17:18:54 +0000 (17:18 +0000)]
* ipa-utils.c (ipa_merge_profiles): Merge profile_id.
* coverage.c (coverage_compute_profile_id): Handle externally visible
symbols.

* lto/lto-symtab.c (lto_cgraph_replace_node): Don't re-merge
tp_first_run.

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

10 years ago2014-04-14 Martin Jambor <mjambor@suse.cz>
jamborm [Mon, 14 Apr 2014 17:17:27 +0000 (17:17 +0000)]
2014-04-14  Martin Jambor  <mjambor@suse.cz>

* tree-sra.c (ipa_sra_preliminary_function_checks): Skip
DECL_DISREGARD_INLINE_LIMITS functions.

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

10 years agoRevert the last change on *fixuns_trunc<mode>_1
hjl [Mon, 14 Apr 2014 17:01:03 +0000 (17:01 +0000)]
Revert the last change on *fixuns_trunc<mode>_1

PR target/60827
* config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last
change.

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

10 years agoCheck optimize_insn_for_speed_p in *fixuns_trunc<mode>_1
hjl [Mon, 14 Apr 2014 16:49:24 +0000 (16:49 +0000)]
Check optimize_insn_for_speed_p in *fixuns_trunc<mode>_1

Since fixuns_trunc<mode>si2 expander checks optimize_insn_for_size_p
before generating *fixuns_trunc<mode>_1,  we should use
optimize_insn_for_speed_p in *fixuns_trunc<mode>_1 for consistency.

PR target/60827
* config/i386/i386.md (*fixuns_trunc<mode>_1): Check
optimize_insn_for_speed_p instead of
optimize_function_for_speed_p.

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

10 years ago PR libstdc++/60497
redi [Mon, 14 Apr 2014 15:32:58 +0000 (15:32 +0000)]
PR libstdc++/60497
* include/std/tuple (get): Qualify calls to prevent ADL.
* testsuite/20_util/tuple/60497.cc: New.

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

10 years ago * include/bits/allocator.h (operator==, operator!=): Add exception
redi [Mon, 14 Apr 2014 15:13:02 +0000 (15:13 +0000)]
* include/bits/allocator.h (operator==, operator!=): Add exception
specifications.

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

10 years agoLimit operations on vector::pointer to NullablePointer requirements.
redi [Mon, 14 Apr 2014 14:51:35 +0000 (14:51 +0000)]
Limit operations on vector::pointer to NullablePointer requirements.

* include/bits/stl_vector.h (_Vector_base::_Vector_impl,
_Vector_base::_M_allocate): NullablePointer requirements do not
include initialization from literal zero, use value-initialization.
* include/bits/vector.tcc (vector::_M_insert_aux,
vector::_M_explace_back_aux): Likewise for assignment.

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

10 years agogcc/
yufeng [Mon, 14 Apr 2014 14:40:02 +0000 (14:40 +0000)]
gcc/

* doc/invoke.texi (free): Document AArch64.

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

10 years ago * snames.ads-tmpl (Name_Ivdep): New pragma-related name.
ebotcazou [Mon, 14 Apr 2014 14:18:26 +0000 (14:18 +0000)]
* snames.ads-tmpl (Name_Ivdep): New pragma-related name.
* sem_prag.adb (Analyze_Pragma) <Pragma_Loop_Optimize>: Add support
for Ivdep hint.
* gnat_rm.texi (Implementation Defined Pragmas): Document new Ivdep
hint for Loop_Optimize.
* gnat_ugn.texi (Vectorization of loops): Mention new Ivdep hint.
* gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
with new Ivdep hint.
* gcc-interface/ada-tree.h (LOOP_STMT_IVDEP): New macro.
* gcc-interface/trans.c (Pragma_to_gnu) <Pragma_Loop_Optimize>: Deal
with new Ivdep hint.
(gnat_gimplify_stmt) <LOOP_STMT>: Propagate the loop hints.

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

10 years ago2014-04-14 Richard Biener <rguenther@suse.de>
rguenth [Mon, 14 Apr 2014 13:57:00 +0000 (13:57 +0000)]
2014-04-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/60042
* tree-ssa-pre.c (inhibit_phi_insertion): Remove.
(insert_into_preds_of_block): Do not prevent PHI insertion
for REFERENCE exprs here ...
(eliminate_dom_walker::before_dom_children): ... but prevent
their use here under similar conditions when applied to the
IL after PRE optimizations.

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

10 years ago2014-04-14 Richard Biener <rguenther@suse.de>
rguenth [Mon, 14 Apr 2014 13:55:46 +0000 (13:55 +0000)]
2014-04-14  Richard Biener  <rguenther@suse.de>

* passes.def: Move early points-to after early SRA.

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

10 years ago2014-04-14 Richard Biener <rguenther@suse.de>
rguenth [Mon, 14 Apr 2014 13:53:35 +0000 (13:53 +0000)]
2014-04-14  Richard Biener  <rguenther@suse.de>

* tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
check for which sign-changes we allow when forwarding
a converted value into a switch.

* g++.dg/tree-ssa/forwprop-switch.C: New testcase.

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

10 years ago * opt.ads (Suppress_Back_Annotation): Remove as unused.
ebotcazou [Mon, 14 Apr 2014 13:51:42 +0000 (13:51 +0000)]
* opt.ads (Suppress_Back_Annotation): Remove as unused.
* fe.h (Back_Annotate_Rep_Info): Likewise.
(Global_Discard_Names): Likewise.
(List_Representation_Info): Declare.
* types.h (Uint_Minus_1): Likewise.
* repinfo.ads: Document back-annotation change.
* gcc-interface/gigi.h (init_gnat_decl): Declare.
(destroy_gnat_decl): Likewise.
* gcc-interface/decl.c (annotate_value): Do not create the cache of
annotated values here but...
<CALL_EXPR>: Only inline the call if -gnatR3 is specified or we are
in ASIS mode.
(init_gnat_decl): ...here instead.  New function.
(destroy_gnat_decl): Likewise.
* gcc-interface/trans.c (gigi): Call {init|destroy}_gnat_decl.
* gcc-interface/utils.c (init_gnat_utils): Minor reformatting.

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

10 years ago * stor-layout.c (place_field): Finalize non-constant offset for the
ebotcazou [Mon, 14 Apr 2014 13:33:23 +0000 (13:33 +0000)]
* stor-layout.c (place_field): Finalize non-constant offset for the
field, if any.
ada/
* gcc-interface/decl.c (create_field_decl_from): Finalize non-constant
offset for the field, if any.

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

10 years agoSkip gcc.dg/lto/pr55113 on Solaris 10+/x86
ro [Mon, 14 Apr 2014 12:52:00 +0000 (12:52 +0000)]
Skip gcc.dg/lto/pr55113 on Solaris 10+/x86

* gcc.dg/lto/pr55113_0.c: Skip on i?86-*-solaris2.1[0-1]*.

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

10 years ago2014-04-14 Richard Biener <rguenther@suse.de>
rguenth [Mon, 14 Apr 2014 11:49:42 +0000 (11:49 +0000)]
2014-04-14  Richard Biener  <rguenther@suse.de>
Marc Glisse  <marc.glisse@inria.fr>

PR c/60819
c-family/
* c-common.c (convert_vector_to_pointer_for_subscript): Properly
apply may-alias the scalar pointer type when applicable.

* gcc.target/i386/vec-may_alias.c: New testcase.

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

10 years ago2014-04-14 Richard Biener <rguenther@suse.de>
rguenth [Mon, 14 Apr 2014 11:48:22 +0000 (11:48 +0000)]
2014-04-14  Richard Biener  <rguenther@suse.de>

* tree-switch-conversion.c (lshift_cheap_p): Get speed_p
as argument.
(expand_switch_using_bit_tests_p): Likewise.
(process_switch): Compute and pass on speed_p based on the
switch stmt.
* tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
optimize_bb_for_speed_p.

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

10 years ago * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
ebotcazou [Mon, 14 Apr 2014 10:42:12 +0000 (10:42 +0000)]
* cfgloop.h (struct loop): Rename force_vect into force_vectorize.
* function.h (struct function): Rename has_force_vect_loops into
has_force_vectorize_loops.
* lto-streamer-in.c (input_cfg): Adjust for renaming.
(input_struct_function_base): Likewise.
* lto-streamer-out.c (output_cfg): Likewise.
(output_struct_function_base): Likewise.
* omp-low.c (expand_omp_simd): Likewise.
* tree-cfg.c (move_sese_region_to_fn): Likewise.
* tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
(version_loop_for_if_conversion): Likewise.
(tree_if_conversion): Likewise.
(main_tree_if_conversion): Likewise.
(gate_tree_if_conversion): Likewise.
* tree-inline.c (copy_loops): Likewise.
* tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
* tree-ssa-loop.c (tree_loop_vectorize): Likewise.
* tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
* tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
* tree-vectorizer.c (vectorize_loops): Likewise.
* tree-vectorizer.h (unlimited_cost_model): Likewise.

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

10 years agoFix vect_widen_mult_si_to_di_pattern on non-x86/ia64 targets
ro [Mon, 14 Apr 2014 10:23:25 +0000 (10:23 +0000)]
Fix vect_widen_mult_si_to_di_pattern on non-x86/ia64 targets

* lib/target-supports.exp
(check_effective_target_vect_widen_mult_si_to_di_pattern):
Initialize et_vect_widen_mult_si_to_di_pattern_saved.
Fix formatting.

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

10 years ago2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Mon, 14 Apr 2014 09:29:09 +0000 (09:29 +0000)]
2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>

* pt.c (mark_template_parm): Use template_parm_level_and_index.

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

10 years ago2014-04-14 Richard Biener <rguenther@suse.de>
rguenth [Mon, 14 Apr 2014 08:35:22 +0000 (08:35 +0000)]
2014-04-14  Richard Biener  <rguenther@suse.de>

PR lto/60720
* lto-streamer-out.c (wrap_refs): New function.
(lto_output): Wrap symbol references in global initializes in
type-preserving MEM_REFs.

* gcc.dg/lto/pr60720_0.c: New testcase.
* gcc.dg/lto/pr60720_1.c: Likewise.

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

10 years ago2014-04-14 Christian Bruel <christian.bruel@st.com>
chrbr [Mon, 14 Apr 2014 08:31:34 +0000 (08:31 +0000)]
2014-04-14  Christian Bruel  <christian.bruel@st.com>

       * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.

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

10 years ago2014-04-14 Christian Bruel <christian.bruel@st.com>
chrbr [Mon, 14 Apr 2014 08:27:56 +0000 (08:27 +0000)]
2014-04-14  Christian Bruel  <christian.bruel@st.com>

       * config/sh/sh.md (setmemqi): New expand pattern.
       * config/sh/sh.h (CLEAR_RATIO): Define.
       * config/sh/sh-mem.cc (sh_expand_setmem): Define.
       * config/sh/sh-protos.h (sh_expand_setmem): Declare.

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

10 years ago2014-04-14 Richard Biener <rguenther@suse.de>
rguenth [Mon, 14 Apr 2014 08:11:08 +0000 (08:11 +0000)]
2014-04-14  Richard Biener  <rguenther@suse.de>

PR middle-end/55022
* fold-const.c (negate_expr_p): Don't negate directional rounding
division.
(fold_negate_expr): Likewise.

* gcc.dg/graphite/pr55022.c: New testcase.

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

10 years ago2014-04-14 Richard Biener <rguenther@suse.de>
rguenth [Mon, 14 Apr 2014 08:09:06 +0000 (08:09 +0000)]
2014-04-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/59817
PR tree-optimization/60453
* graphite-scop-detection.c (graphite_can_represent_scev): Complete
recursion to catch all CHRECs in the scalar evolution and restrict
the predicate for the remains appropriately.

* gfortran.dg/graphite/pr59817.f: New testcase.
* gcc.dg/graphite/pr59817-1.c: Likewise.
* gcc.dg/graphite/pr59817-2.c: Likewise.

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

10 years ago Revert:
jason [Mon, 14 Apr 2014 04:25:55 +0000 (04:25 +0000)]
Revert:
* lib/gcc-dg.exp (dg-build-dso): New.
(gcc-dg-test-1): Handle dg-do-what "dso".

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

10 years agoDaily bump.
gccadmin [Mon, 14 Apr 2014 00:17:13 +0000 (00:17 +0000)]
Daily bump.

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

10 years ago2014-04-13 Paul Thomas <pault@gcc.gnu.org>
pault [Sun, 13 Apr 2014 11:58:55 +0000 (11:58 +0000)]
2014-04-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/58085
PR fortran/60717
* trans.h: Add 'use_offset' bitfield to gfc_se.
* trans-array.c (gfc_conv_expr_descriptor): Use 'use_offset'
as a trigger to unconditionally recalculate the offset for
array slices and constant arrays.
trans-expr.c (gfc_conv_intrinsic_to_class): Use it.
trans-stmt.c (trans_associate_var): Ditto.
(gfc_conv_procedure_call): Ditto.

2014-04-13  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/60717
* gfortran.dg/unlimited_polymorphic_17.f90: New test.

PR fortran/58085
* gfortran.dg/associate_15.f90: New test.

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

10 years agoDaily bump.
gccadmin [Sun, 13 Apr 2014 00:17:14 +0000 (00:17 +0000)]
Daily bump.

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

10 years agogcc/c-family/
kyukhin [Sat, 12 Apr 2014 17:59:29 +0000 (17:59 +0000)]
gcc/c-family/
PR middle-end/60467
* cilk.c (cilk_set_spawn_marker): Remove FUNCTION_DECL
as possible argument for Cilk_spawn.

gcc/testsuite/
PR middle-end/60467
* c-c++-common/cilk-plus/CK/invalid_spawns.c: Add new invalid
case to check.

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

10 years agogcc/c/
kyukhin [Sat, 12 Apr 2014 17:57:15 +0000 (17:57 +0000)]
gcc/c/
PR middle-end/60469
* c-array-notation.c (fix_builtin_array_notation_fn): Use
create_tmp_var instead build_decl for creating temps.
(build_array_notation_expr): Likewise.
(fix_conditional_array_notations_1): Likewise.
(fix_array_notation_expr): Likewise.
(fix_array_notation_call_expr): Likewise.

gcc/testsuite/
PR middle-end/60469
* c-c++-common/cilk-plus/CK/pr60469.c: New test.

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

10 years agogcc/
rsandifo [Sat, 12 Apr 2014 10:40:10 +0000 (10:40 +0000)]
gcc/
2014-04-12  Catherine Moore  <clm@codesourcery.com>

* config/mips/constraints.md: Add new register constraint "kb".
* config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
(*movhi_internal): Likewise.
(*movqi_internal): Likewise.
* config/mips/mips.h (M16_STORE_REGS): New register class.
(REG_CLASS_NAMES): Add M16_STORE_REGS.
(REG_CLASS_CONTENTS): Likewise.
* config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.

gcc/testsuite/
* gcc.target/mips/umips-store16-1.c: New test.

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

10 years agoDaily bump.
gccadmin [Sat, 12 Apr 2014 00:16:54 +0000 (00:16 +0000)]
Daily bump.

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

10 years ago2014-04-11 Jerry DeLisle <jvdelisle@gcc.gnu>
jvdelisle [Sat, 12 Apr 2014 00:04:41 +0000 (00:04 +0000)]
2014-04-11  Jerry DeLisle  <jvdelisle@gcc.gnu>

PR libfortran/60810
io/unit.c (is_trim_ok): If internal unit is array, do not trim.

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

10 years ago2014-04-11 Tobias Burnus <burnus@net-b.de>
burnus [Fri, 11 Apr 2014 22:43:54 +0000 (22:43 +0000)]
2014-04-11  Tobias Burnus  <burnus@net-b.de>

        PR c/60194
gcc/
        * doc/invoke.texi (-Wformat-signedness): Document it.
        (Wformat=2): Mention that this enables -Wformat-signedness.

gcc/c-family/
        * c.opt (Wformat-signedness): Add
        * c-format.c(check_format_types): Use it.

gcc/testsuite/
        * * g++.dg/warn/warn_format_signedness.C: New.
        * gcc.dg/format/warn-signedness.c: New.

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

10 years ago2014-04-11 Tobias Burnus <burnus@net-b.de>
burnus [Fri, 11 Apr 2014 22:35:47 +0000 (22:35 +0000)]
2014-04-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/58880
        PR fortran/60495
        * resolve.c (gfc_resolve_finalizers): Ensure that vtables
        and finalization wrappers are generated.

2014-04-11  Tobias Burnus  <burnus@net-b.de>

        PR fortran/58880
        PR fortran/60495
        * gfortran.dg/finalize_25.f90: New.

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

10 years agoFix for PR other/60644.
bviyer [Fri, 11 Apr 2014 19:56:42 +0000 (19:56 +0000)]
Fix for PR other/60644.
+2014-04-11  Barry Tannenbaum  <barry.m.tannenbaum@intel.com>
+
+       PR other/60644
+       * runtime/os-unix.c: Replaced all occurrances of ANDROID with
+       __ANDROID__.
+       * runtime/bug.h: Likewise.
+       * include/cilk/metaprogramming.h: Likewise.
+       * include/cilk/reducer_min_max.h: Likewise.
+

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

10 years ago2014-04-11 Marc Glisse <marc.glisse@inria.fr>
glisse [Fri, 11 Apr 2014 19:23:49 +0000 (19:23 +0000)]
2014-04-11  Marc Glisse  <marc.glisse@inria.fr>

PR libstdc++/59434
* include/bits/stl_iterator.h (move_iterator::reference,
move_iterator::operator*): Implement LWG 2106.
* testsuite/24_iterators/move_iterator/dr2106.cc: New file.

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

10 years ago * lto.c: Include ipa-inline.h
hubicka [Fri, 11 Apr 2014 19:22:20 +0000 (19:22 +0000)]
* lto.c: Include ipa-inline.h
(do_whole_program_analysis): Free inline summary after partitioning.

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

10 years ago2014-04-11 Marc Glisse <marc.glisse@inria.fr>
glisse [Fri, 11 Apr 2014 18:57:59 +0000 (18:57 +0000)]
2014-04-11  Marc Glisse  <marc.glisse@inria.fr>

* include/std/complex (__complex_exp, pow): Specify the template
parameter in calls to std::polar, for expression templates.

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

10 years agogcc:
amylaar [Fri, 11 Apr 2014 18:40:04 +0000 (18:40 +0000)]
gcc:
        * common/config/epiphany/epiphany-common.c
        (epiphany_option_optimization_table): Enable section anchors by
        default at -O1 or higher.
        * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
        (TARGET_MIN_ANCHOR_OFFSET): Likewise.
        (epiphany_rtx_costs) <SET>: For binary operators, the set as such
        carries no extra cost.
        (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
        * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
        * config/epiphany/predicates.md (memclob_operand): New predicate.
        * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
        Use memclob_operand predicate and X constraint for operand 3.
gcc/testsuite:
        * gcc.target/epiphany/t1068-2.c: New file.

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

10 years ago gcc:
amylaar [Fri, 11 Apr 2014 18:29:30 +0000 (18:29 +0000)]
gcc:
            * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
            with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
            its operands.
    gcc/testsuite:
            * gcc.target/epiphany/btst-1.c: New test.

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

10 years agogcc/testsuite:
amylaar [Fri, 11 Apr 2014 18:27:45 +0000 (18:27 +0000)]
gcc/testsuite:
        PR rtl-optimization/60651
        * gcc.target/epiphany/mode-switch.c: New test.

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

10 years ago PR c++/57926
jason [Fri, 11 Apr 2014 18:25:13 +0000 (18:25 +0000)]
PR c++/57926
* c-common.c (sync_resolve_size, get_atomic_generic_size): Call
default_conversion for an array argument.

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

10 years ago * parser.h (struct cp_token): Rename ambiguous_p to error_reported.
jason [Fri, 11 Apr 2014 18:25:07 +0000 (18:25 +0000)]
* parser.h (struct cp_token): Rename ambiguous_p to error_reported.
* parser.c: Adjust.
(cp_lexer_get_preprocessor_token): Always clear it.
(cp_parser_lambda_expression): Use it to avoid duplicate diagnostics.

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

10 years ago DR 1467
jason [Fri, 11 Apr 2014 18:25:02 +0000 (18:25 +0000)]
DR 1467
PR c++/51747
* decl.c (reshape_init_r): Handle a single element of class type.

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

10 years ago DR 1338
jason [Fri, 11 Apr 2014 18:24:57 +0000 (18:24 +0000)]
DR 1338
* decl.c (cxx_init_decl_processing): Set DECL_IS_MALLOC on
built-in operator new.

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

10 years agogcc:
amylaar [Fri, 11 Apr 2014 18:12:53 +0000 (18:12 +0000)]
gcc:
        PR rtl-optimization/60651
        * mode-switching.c (optimize_mode_switching): Make sure to emit
        sets of a lower numbered entity before sets of a higher numbered
        entity to a mode of the same or lower priority.
        When creating a seginfo for a basic block that starts with a code
        label, move the insertion point past the code label.
        (new_seginfo): Document and enforce requirement that
        NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
        * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
        * doc/tm.texi: Regenerate.
gcc/testsuite:
        PR rtl-optimization/60651
        * gcc.target/epiphany/mode-switch.c: New test.

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

10 years ago PR target/60811
amylaar [Fri, 11 Apr 2014 18:04:43 +0000 (18:04 +0000)]
    PR target/60811
        * config/arc/arc.c (arc_save_restore): Fix assert typo.

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

10 years ago/cp
paolo [Fri, 11 Apr 2014 17:36:44 +0000 (17:36 +0000)]
/cp
2014-04-11  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58600
* name-lookup.c (parse_using_directive): Return early if the
attribs argument is error_mark_node; use get_attribute_name.

/testsuite
2014-04-11  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58600
* g++.dg/cpp0x/gen-attrs-58.C: New.
* g++.dg/cpp0x/gen-attrs-59.C: Likewise.

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

10 years ago DR 1030
jason [Fri, 11 Apr 2014 17:08:47 +0000 (17:08 +0000)]
DR 1030
PR c++/51253
* cp-tree.h (CALL_EXPR_LIST_INIT_P): New.
* call.c (struct z_candidate): Add flags field.
(add_candidate): Add flags parm.
(add_function_candidate, add_conv_candidate, build_builtin_candidate)
(add_template_candidate_real): Pass it.
(build_over_call): Set CALL_EXPR_LIST_INIT_P.
* tree.c (build_aggr_init_expr): Copy it.
* semantics.c (simplify_aggr_init_expr): Preevaluate args if it's set.

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

10 years ago * crontab: Enable snapshots from gcc-4_9-branch.
jakub [Fri, 11 Apr 2014 12:55:17 +0000 (12:55 +0000)]
* crontab: Enable snapshots from gcc-4_9-branch.

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

10 years ago * BASE-VER: Set to 4.9.0.
jakub [Fri, 11 Apr 2014 12:50:55 +0000 (12:50 +0000)]
* BASE-VER: Set to 4.9.0.

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

10 years ago PR other/59055
jakub [Fri, 11 Apr 2014 12:47:20 +0000 (12:47 +0000)]
PR other/59055
* doc/bugreport.texi (Bugs): Remove nodes pointing to the
nirvana.
* doc/gcc.texi (Service): Update description in the @menu
* doc/invoke.texi (Option Summary): Remove misplaced and
duplicated @menu.

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

10 years agoImprove RANDOM_SEED documentation example.
jb [Fri, 11 Apr 2014 12:03:05 +0000 (12:03 +0000)]
Improve RANDOM_SEED documentation example.

2014-04-11  Janne Blomqvist  <jb@gcc.gnu.org>

* intrinsic.texi (RANDOM_SEED): Improve example.

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

10 years ago PR middle-end/60556
jakub [Fri, 11 Apr 2014 11:52:14 +0000 (11:52 +0000)]
PR middle-end/60556
* expr.c (convert_move): Use emit_store_flag_force instead of
emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
argument to it.

* gcc.c-torture/compile/pr60556.c: New test.

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

10 years ago2014-04-11 Richard Biener <rguenther@suse.de>
rguenth [Fri, 11 Apr 2014 11:45:44 +0000 (11:45 +0000)]
2014-04-11  Richard Biener  <rguenther@suse.de>

PR middle-end/60797
* varasm.c (assemble_alias): Avoid endless error reporting
recursion by setting TREE_ASM_WRITTEN.

* gcc.dg/pr60797.c: New testcase.

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

10 years ago2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Fri, 11 Apr 2014 10:42:27 +0000 (10:42 +0000)]
2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/s390/s390.md: Add a splitter for NOT rtx.

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

10 years ago2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Fri, 11 Apr 2014 10:36:58 +0000 (10:36 +0000)]
2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.target/s390/htm-nofloat-1.c: Rename to ...
* gcc.target/s390/htm-nofloat-compile-1.c: ... this one.
* gcc.target/s390/htm-nofloat-2.c: Add check for htm target and
rename to ...
* gcc.target/s390/htm-nofloat-1.c: ... this one.
* gcc.target/s390/s390.exp: Make sure the assembler supports htm
instructions as well.

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

10 years ago PR rtl-optimization/60663
jakub [Fri, 11 Apr 2014 10:11:01 +0000 (10:11 +0000)]
PR rtl-optimization/60663
* cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in
PARALLEL.

* gcc.target/arm/pr60663.c: New test.

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

10 years agoDaily bump.
gccadmin [Fri, 11 Apr 2014 00:17:05 +0000 (00:17 +0000)]
Daily bump.

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

10 years ago * g++.dg/dso/dlclose1.C: Disable for 4.9.
jason [Thu, 10 Apr 2014 20:27:58 +0000 (20:27 +0000)]
* g++.dg/dso/dlclose1.C: Disable for 4.9.

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

10 years agomoved this ChangeLog entry to fortran/ChangeLog
edlinger [Thu, 10 Apr 2014 20:13:23 +0000 (20:13 +0000)]
moved this ChangeLog entry to fortran/ChangeLog
2014-04-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR fortran/60191
        * fortran/trans-types.c (gfc_get_function_type): In case of recursion
        build a variadic function type with empty argument list instead of a
        stdarg-like function type with incomplete argument list.

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

10 years ago PR lto/60567
jakub [Thu, 10 Apr 2014 18:57:48 +0000 (18:57 +0000)]
PR lto/60567
* ipa.c (function_and_variable_visibility): Copy forced_by_abi flag from
decl_node to node.

* g++.dg/lto/pr60567_0.C: New test.

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

10 years ago PR ipa/60761
jakub [Thu, 10 Apr 2014 16:20:07 +0000 (16:20 +0000)]
PR ipa/60761
* error.c (dump_decl) <case FUNCTION_DECL>: If
DECL_LANG_SPECIFIC is NULL, but DECL_ABSTRACT_ORIGIN is not,
recurse on DECL_ABSTRACT_ORIGIN instead of printing
<built-in>.

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

10 years agogcc:
edlinger [Thu, 10 Apr 2014 14:40:25 +0000 (14:40 +0000)]
gcc:
2014-04-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * fortran/class.c (gfc_build_class_symbol): Append "_t" to target class
        names to make the generated type names unique.

testsuite:
2014-04-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * gfortran.dg/class_nameclash.f90: New test.

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

10 years ago2014-04-10 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Thu, 10 Apr 2014 14:06:36 +0000 (14:06 +0000)]
2014-04-10  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52844
* g++.dg/cpp0x/variadic156.C: New.

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

10 years ago2014-04-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Thu, 10 Apr 2014 10:09:29 +0000 (10:09 +0000)]
2014-04-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.target/s390/htm-builtins-compile-1.c: Replace long long with
long.

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

10 years agoRemove TLS symbols from libstdc++ baselines
schwab [Thu, 10 Apr 2014 08:29:10 +0000 (08:29 +0000)]
Remove TLS symbols from libstdc++ baselines

* config/abi/post/alpha-linux-gnu/baseline_symbols.txt: Remove TLS
symbols.
* config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
* config/abi/post/mips64-linux-gnu/baseline_symbols.txt: Likewise.

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

10 years agoFix PR debug/60655 part 2.
ramana [Thu, 10 Apr 2014 08:13:30 +0000 (08:13 +0000)]
Fix PR debug/60655 part 2.

2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        PR debug/60655
        * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
        (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
        ameliorating the cases where it can be.

2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>

        PR debug/60655
        * gcc.c-torture/compile/pr60655-2.c: Copy from pr60655-1.c without
        -fdata-sections.

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

10 years agoUpdate ia64 libstdc++ baseline symbols
schwab [Thu, 10 Apr 2014 07:52:23 +0000 (07:52 +0000)]
Update ia64 libstdc++ baseline symbols

* config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.

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

10 years agoDaily bump.
gccadmin [Thu, 10 Apr 2014 00:17:07 +0000 (00:17 +0000)]
Daily bump.

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

10 years ago PR ada/54040
ebotcazou [Wed, 9 Apr 2014 23:18:28 +0000 (23:18 +0000)]
PR ada/54040
PR ada/59346
* s-osinte-x32.adb (To_Timespec): Add use directive.
* s-osprim-x32.ads (Clock): Adjust.
(To_Timespec): Likewise.

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

10 years ago Revert
dje [Wed, 9 Apr 2014 19:53:39 +0000 (19:53 +0000)]
    Revert
        2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>

        * config/rs6000/sync.md (AINT mode_iterator): Move definition.
        (loadsync_<mode>): Change mode.
        (load_quadpti, store_quadpti): New.
        (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
        * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
        * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.

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

10 years ago2014-04-09 Fabien ChĂȘne <fabien@gcc.gnu.org>
fabien [Wed, 9 Apr 2014 19:51:17 +0000 (19:51 +0000)]
2014-04-09  Fabien ChĂȘne  <fabien@gcc.gnu.org>

* pt.c (check_template_variable): Check for the return of pedwarn
before emitting a note.
* parser.c (cp_parser_lambda_introducer): Likewise.

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

10 years ago2014-04-09 Steve Ellcey <sellcey@mips.com>
sje [Wed, 9 Apr 2014 16:27:07 +0000 (16:27 +0000)]
2014-04-09  Steve Ellcey  <sellcey@mips.com>

* gcc.dg/tree-ssa/ssa-ifcombine-13.c: Remove mips*-*-* from option
and scan lists.

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

10 years agoAdjust
ebotcazou [Wed, 9 Apr 2014 15:22:46 +0000 (15:22 +0000)]
Adjust

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

10 years ago PR ada/54040
ebotcazou [Wed, 9 Apr 2014 14:54:29 +0000 (14:54 +0000)]
PR ada/54040
PR ada/59346
* s-osinte-x32.adb: New file.
* s-linux.ads (Time): New section.
* s-linux-alpha.ads (Time): Likewise.
* s-linux-android.ads (Time: Likewise.
* s-linux-hppa.ads (Time): Likewise.
* s-linux-mipsel.ads (Time): Likewise.
* s-linux-sparc.ads (Time): Likewise.
* s-linux-x32.ads (Time): Likewise.
* s-osprim-x32.ads (timespec): Adjust.
* s-osinte-linux.ads (Time): Define local subtypes for those defined
in System.Linux.
* s-taprop-linux.adb (Monotonic_Clock): Do not define timeval.
* s-osinte-hpux.ads (timespec): Revert POSIX breakage.
* s-osinte-kfreebsd-gnu.ads (timespec): Likewise.
* s-osinte-solaris-posix.ads (timespec): Likewise.
* s-osinte-posix.adb (To_Timespec): Likewise.
* gcc-interface/Makefile.in (x32/Linux): Use s-osinte-x32.adb.

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

10 years agoCheck if GCC uses assembler cfi support
ro [Wed, 9 Apr 2014 14:49:59 +0000 (14:49 +0000)]
Check if GCC uses assembler cfi support

* config/generic/asmcfi.h: Also check for
__GCC_HAVE_DWARF2_CFI_ASM.

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

10 years ago2014-04-09 Cong Hou <congh@google.com>
jakub [Wed, 9 Apr 2014 11:37:14 +0000 (11:37 +0000)]
2014-04-09  Cong Hou  <congh@google.com>

PR testsuite/60773
* doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
documentation.

* lib/target-supports.exp:
(check_effective_target_vect_widen_si_to_di_pattern): New.
* gcc.dg/vect/pr60656.c: Require vect_long effective target.
Use scan-tree-dump-times for vect_widen_mult_si_to_di_pattern
targets only.
(foo): Fix up formatting.
(main): Call check_vect.

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

10 years ago PR ada/60411
ebotcazou [Wed, 9 Apr 2014 07:57:48 +0000 (07:57 +0000)]
PR ada/60411
* s-osinte-android.ads: Adjust.

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

10 years ago2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
wschmidt [Wed, 9 Apr 2014 02:12:11 +0000 (02:12 +0000)]
2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>

* config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
instead of vnor to exploit possible fusion opportunity in the
future.
(altivec_expand_vec_perm_const_le): Likewise.

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

10 years agoDaily bump.
gccadmin [Wed, 9 Apr 2014 00:17:02 +0000 (00:17 +0000)]
Daily bump.

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

10 years ago/cp
paolo [Wed, 9 Apr 2014 00:09:28 +0000 (00:09 +0000)]
/cp
2014-04-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59115
* pt.c (process_template_parm): For an invalid non-type parameter
only set TREE_TYPE to error_mark_node.
(push_inline_template_parms_recursive, comp_template_parms,
redeclare_class_template, coerce_template_template_parm,
coerce_template_template_parms, unify): Use error_operand_p.

/testsuite
2014-04-08  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59115
* g++.dg/template/crash119.C: New.

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

10 years ago PR ada/60411
ebotcazou [Tue, 8 Apr 2014 20:35:14 +0000 (20:35 +0000)]
PR ada/60411
* sigtramp.h: Add Android support.

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

10 years ago * config/rs6000/sync.md (AINT mode_iterator): Move definition.
pthaugen [Tue, 8 Apr 2014 18:31:06 +0000 (18:31 +0000)]
* config/rs6000/sync.md (AINT mode_iterator): Move definition.
(loadsync_<mode>): Change mode.
(load_quadpti, store_quadpti): New.
(atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
* config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.

* gcc.target/powerpc/atomic_load_store-p8.c: New.

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

10 years ago * lib/gcc-dg.exp (dg-build-dso): Reset dg-do-what-default to
jason [Tue, 8 Apr 2014 17:58:46 +0000 (17:58 +0000)]
* lib/gcc-dg.exp (dg-build-dso): Reset dg-do-what-default to
compile.

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

10 years agogcc/
rsandifo [Tue, 8 Apr 2014 17:50:45 +0000 (17:50 +0000)]
gcc/
PR target/60763
* config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
* config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.

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

10 years ago PR sanitizer/60745
mpolacek [Tue, 8 Apr 2014 17:23:26 +0000 (17:23 +0000)]
PR sanitizer/60745
* c-ubsan.c: Include asan.h.
(ubsan_instrument_return): Call initialize_sanitizer_builtins.

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

10 years ago2014-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
krebbel [Tue, 8 Apr 2014 14:18:46 +0000 (14:18 +0000)]
2014-04-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

PR rtl-optimization/60776
* gcc.dg/builtin-bswap-6.c: Use -mbranch-cost=0 for s390.
* gcc.dg/builtin-bswap-7.c: Likewise.
* gcc.dg/builtin-bswap-6a.c: New testcase.
* gcc.dg/builtin-bswap-7a.c: New testcase.

Revert
2014-04-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* gcc.dg/builtin-bswap-6.c: Adjust return value to disable GCC
optimization.
* gcc.dg/builtin-bswap-7.c: Likewise.

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