platform/upstream/linaro-gcc.git
10 years ago2014-07-15 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 15 Jul 2014 13:41:58 +0000 (13:41 +0000)]
2014-07-15  Paolo Carlini  <paolo.carlini@oracle.com>

* call.c (convert_like_real): Call print_z_candidate and inform only
if permerror returns true.

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

10 years ago2014-07-15 Richard Biener <rguenther@suse.de>
rguenth [Tue, 15 Jul 2014 13:13:39 +0000 (13:13 +0000)]
2014-07-15  Richard Biener  <rguenther@suse.de>

* opts.c (default_options_table): Disable bit-ccp at -Og.

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

10 years ago * python/libstdcxx/v6/printers.py (SingleObjContainerPrinter): New
redi [Tue, 15 Jul 2014 12:00:18 +0000 (12:00 +0000)]
* python/libstdcxx/v6/printers.py (SingleObjContainerPrinter): New
base class for experimental::any and experimental::optional printers.
(StdExpAnyPrinter, StdExpOptionalPrinter, StdExpStringViewPrinter):
New printers for Fundamentals TS types.
* testsuite/libstdc++-prettyprinters/libfundts.cc: New.

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

10 years ago * python/libstdcxx/v6/printers.py (TemplateTypePrinter): Add type
redi [Tue, 15 Jul 2014 12:00:12 +0000 (12:00 +0000)]
* python/libstdcxx/v6/printers.py (TemplateTypePrinter): Add type
printer for class templates.
(register_type_printers): Use TemplateTypePrinter for containers
and other class templates with default template arguments.
* testsuite/libstdc++-prettyprinters/whatis.cc: Test new recognizers.

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

10 years ago * c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
mpolacek [Tue, 15 Jul 2014 11:06:07 +0000 (11:06 +0000)]
* c-ubsan.c (ubsan_instrument_bounds): Don't instrument if
TYPE_MAX_VALUE is NULL.

* gcc.dg/ubsan/bounds-1.c: New test.

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

10 years ago * fold-const.c (fold_checksum_tree): Move checking of
hubicka [Tue, 15 Jul 2014 10:51:45 +0000 (10:51 +0000)]
* fold-const.c (fold_checksum_tree): Move checking of
DECL_RESULT.

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

10 years ago * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
hubicka [Tue, 15 Jul 2014 10:17:32 +0000 (10:17 +0000)]
* tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
call langhook for unknown declaration.
(find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
* tree.h (DECL_ARGUMENTS): Update.
* print-tree.c (print_node): Update.
* tree-core.h (tree_decl_non_common): Remove arguments.
(tree_function_decl): Add arguments.

* class.c (build_clone): Do not clear assembler names of
templates.
* decl.c (cp_tree_node_structure): Add TEMPLATE_DECL.
* cp-objcp-common.c (cp_tree_size): Add TEMPLATE_DECL
as a special case return sizeof (struct tree_decl_non_common)
for other decls.
(cp_common_init_ts): Do not initialize NAMESPACE_DECL;
initialize TEMPLATE_DECL as MARK_TS_DECL_COMMON.
* cp/cp-tree.h (tree_template_decl): New structure.
(cp_tree_node_structure_enum): Add TS_CP_TEMPLATE_DECL.
(union cp_lang_tree_node): Add template_decl.
(DECL_TEMPLATE_PARMS, DECL_TEMPLATE_RESULT): Update.

* lto/lto.c (mentions_vars_p_decl_non_common): Skip
DECL_ARGUMENT_FLD.
mentions_vars_p_function): Do DECL_ARGUMENTS.
(lto_fixup_prevailing_decls): Update.

* objc-act.c (objc_common_tree_size): New function.
* objc-act.h (KEYWORD_KEY_NAME, KEYWORD_ARG_NAME): Add type
checking.
(INSTANCE_METHOD_OR_CLASS_METHOD_DECL_CHECK): New macro.
(METHOD_SEL_NAME, METHOD_SEL_ARGS, METHOD_ADD_ARGS,
  METHOD_ADD_ARGS_ELLIPSIS_P, METHOD_DEFINITION, METHOD_ENCODING,
METHOD_TYPE_ATTRIBUTES, METHOD_PROPERTY_CONTEXT): Add type checking.
(METHOD_SEL_ARGS): Use decl_common.size instead of
decl_non_common.result.
(PROPERTY_NAME, PROPERTY_GETTER_NAME, PROPERTY_SETTER_NAME,
PROPERTY_READONLY, PROPERTY_NONATOMIC, PROPERTY_ASSIGN_SEMANTICS,
PROPERTY_IVAR_NAME, PROPERTY_DYNAMIC, PROPERTY_HAS_NO_GETTER,
PROPERTY_HAS_NO_SETTER, PROPERTY_OPTIONAL): Add type checking.
(objc_common_tree_size): Declare.
* objc/objc-lang.c (LANG_HOOKS_TREE_SIZE): New macro.

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

10 years ago2014-06-15 Tobias Burnus <burnus@net-b.de>
burnus [Tue, 15 Jul 2014 05:36:35 +0000 (05:36 +0000)]
2014-06-15  Tobias Burnus  <burnus@net-b.de>

gcc/fortran/
        * symbol.c (check_conflict): Add codimension conflict with
        pointer; fix cray-pointee check.

gcc/testsuite/
        * gfortran.dg/coarray_34.f90: New.
        * gfortran.dg/coarray_6.f90: Update test case.

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

10 years ago PR libstdc++/61720
timshen [Tue, 15 Jul 2014 04:28:51 +0000 (04:28 +0000)]
PR libstdc++/61720
* include/bits/regex_executor.tcc (_Executor<>::_M_main_dispatch):
Clear match queue for next use.
* testsuite/28_regex/algorithms/regex_search/61720.cc: New file.

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

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

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

10 years ago2014-06-14 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 14 Jul 2014 20:40:12 +0000 (20:40 +0000)]
2014-06-14  Tobias Burnus  <burnus@net-b.de>

        * trans-intrinsic.c (conv_intrinsic_atomic_ref): Fix handling
        for kind mismatch with -fcoarray=lib.

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

10 years ago PR c++/61445
jason [Mon, 14 Jul 2014 20:39:35 +0000 (20:39 +0000)]
PR c++/61445
PR c++/56947
* pt.c (instantiate_decl): Don't check defer_ok for local class
members.

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

10 years ago * aarch64.md (add_losym_<mode>): Set type to alu_imm.
rearnsha [Mon, 14 Jul 2014 14:31:10 +0000 (14:31 +0000)]
* aarch64.md (add_losym_<mode>): Set type to alu_imm.

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

10 years ago2014-07-14 Richard Biener <rguenther@suse.de>
rguenth [Mon, 14 Jul 2014 13:52:38 +0000 (13:52 +0000)]
2014-07-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/61779
* tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
simplifying a condition.

* gcc.dg/tree-ssa/ssa-copyprop-2.c: New testcase.

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

10 years ago2014-07-14 Richard Biener <rguenther@suse.de>
rguenth [Mon, 14 Jul 2014 13:22:02 +0000 (13:22 +0000)]
2014-07-14  Richard Biener  <rguenther@suse.de>

* libgcov.h (struct gcov_fn_info): Make ctrs size 1.

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

10 years ago * include/ext/random.tcc: Unfortunately more fixes for
drepper [Mon, 14 Jul 2014 12:09:30 +0000 (12:09 +0000)]
* include/ext/random.tcc: Unfortunately more fixes for
operator>> and operator<< for uniform_on_sphere_distribution.

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

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

PR tree-optimization/61786
* gcc.dg/torture/pr61786.c: New testcase.
* gcc.dg/lto/pr61786_0.c: Likewise.
* gcc.dg/lto/pr61786_1.c: Likewise.

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

10 years ago2014-07-14 Richard Biener <rguenther@suse.de>
rguenth [Mon, 14 Jul 2014 11:12:29 +0000 (11:12 +0000)]
2014-07-14  Richard Biener  <rguenther@suse.de>

* builtins.c (c_strlen): Make only_value == 2 really only
affect warning generation.

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

10 years ago2014-07-14 Richard Biener <rguenther@suse.de>
rguenth [Mon, 14 Jul 2014 10:50:46 +0000 (10:50 +0000)]
2014-07-14  Richard Biener  <rguenther@suse.de>

PR tree-optimization/61757
PR tree-optimization/61783
PR tree-optimization/61787
* tree-ssa-dom.c (record_equality): Revert canonicalization
change and add comment.
(propagate_rhs_into_lhs): Revert previous fix, removing
loop depth restriction again.

* gcc.dg/torture/pr61757.c: New testcase.
* gcc.dg/torture/pr61787.c: Likewise.

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

10 years ago[ARM] Handle clz, rbit types in arm pipeline descriptions.
ktkachov [Mon, 14 Jul 2014 10:19:52 +0000 (10:19 +0000)]
[ARM] Handle clz, rbit types in arm pipeline descriptions.

* config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
* config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
* config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
* config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
* config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
* config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
* config/arm/cortex-r4.md (cortex_r4_alu): Likewise.

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

10 years ago2014-07-14 Richard Biener <rguenther@suse.de>
rguenth [Mon, 14 Jul 2014 10:02:48 +0000 (10:02 +0000)]
2014-07-14  Richard Biener  <rguenther@suse.de>

* cgraph.h (decl_in_symtab_p): Make inline.

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

10 years ago PR middle-end/61294
jakub [Mon, 14 Jul 2014 07:36:39 +0000 (07:36 +0000)]
PR middle-end/61294
gcc/c-family/
* c.opt (Wmemset-transposed-args): New warning.
gcc/c/
* c-parser.c (c_parser_expr_list): Add new argument literal_zero_mask.
If non-NULL, call c_parser_check_literal_zero.
(c_parser_check_literal_zero): New function.
(c_parser_postfix_expression_after_primary): Adjust
c_parser_expr_list caller, handle -Wmemset-transposed-args.
gcc/cp/
* cp-tree.h (LITERAL_ZERO_P): Define.
* parser.c (cp_parser_parenthesized_expression_list): Add
want_literal_zero_p argument, if true, for literal zeros
insert INTEGER_CSTs with LITERAL_ZERO_P flag set.
(cp_parser_postfix_expression): Adjust
cp_parser_parenthesized_expression_list caller, handle
-Wmemset-transposed-args.
(literal_zeros): New variable.
gcc/
* doc/invoke.texi (-Wmemset-transposed-args): Document.
gcc/testsuite/
* c-c++-common/Wmemset-transposed-args1.c: New test.
* c-c++-common/Wmemset-transposed-args2.c: New test.
* g++.dg/warn/Wmemset-transposed-args-1.C: New test.

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

10 years ago PR target/61656
jakub [Mon, 14 Jul 2014 07:31:57 +0000 (07:31 +0000)]
PR target/61656
* config/i386/i386.c (classify_argument): Don't merge classes above
number of words.

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

10 years ago PR c++/58511
jason [Mon, 14 Jul 2014 05:25:37 +0000 (05:25 +0000)]
PR c++/58511
* semantics.c (is_instantiation_of_constexpr): Return true for
defaulted functions, too.
(explain_invalid_constexpr_fn): Only use
explain_implicit_non_constexpr if !DECL_DECLARED_CONSTEXPR_P.
* method.c (explain_implicit_non_constexpr): Pass
DECL_INHERITED_CTOR_BASE to explain_implicit_non_constexpr.

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

10 years ago PR c++/58611
jason [Mon, 14 Jul 2014 05:25:31 +0000 (05:25 +0000)]
PR c++/58611
* decl.c (check_initializer): Don't finish_compound_literal
on erroneous constexpr init.

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

10 years ago PR c++/58612
jason [Mon, 14 Jul 2014 05:25:25 +0000 (05:25 +0000)]
PR c++/58612
* tree.c (bot_replace): Only replace a dummy 'this' parm.

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

10 years ago PR c++/60628
jason [Mon, 14 Jul 2014 05:25:19 +0000 (05:25 +0000)]
PR c++/60628
* decl.c (create_array_type_for_decl): Only check for auto once.

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

10 years ago PR c++/58636
jason [Mon, 14 Jul 2014 05:25:13 +0000 (05:25 +0000)]
PR c++/58636
* call.c (build_list_conv): Don't try to build a list of references.

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

10 years agoDaily bump.
gccadmin [Mon, 14 Jul 2014 00:16:53 +0000 (00:16 +0000)]
Daily bump.

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

10 years ago * cgraph.h (symtab_node): Add nonzero_address.
hubicka [Sun, 13 Jul 2014 22:12:54 +0000 (22:12 +0000)]
* cgraph.h (symtab_node): Add nonzero_address.
(decl_in_symtab_p): Break out from ...
(symtab_get_node): ... here.
* fold-const.c: Include cgraph.h
(tree_single_nonzero_warnv_p): Use symtab to determine
if symbol is non-zero.
* symtab.c (symtab_node::nonzero_address): New method.

* gcc.dg/pr36901.h: Simplify because non-zero symbol folding no
longer happens during parsing.
* gcc.dg/pr44024.c: Update template.
* g++.dg/tree-ssa/nonzero-2.C: New testcase.
* g++.dg/tree-ssa/nonzero-1.C: New testcase.
* gcc.dg/tree-ssa/nonzero-1.c: New testcase.

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

10 years ago * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
hubicka [Sun, 13 Jul 2014 17:30:56 +0000 (17:30 +0000)]
* ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
forgotten in previous commit.

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

10 years ago * include/ext/random.tcc: Fix operator>> and operator<< for
drepper [Sun, 13 Jul 2014 16:43:01 +0000 (16:43 +0000)]
* include/ext/random.tcc: Fix operator>> and operator<< for
uniform_on_sphere_distribution.

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

10 years agoAdd xmm-register version of fuse-caller-save testcase
vries [Sun, 13 Jul 2014 14:32:01 +0000 (14:32 +0000)]
Add xmm-register version of fuse-caller-save testcase

2014-07-13  Tom de Vries  <tom@codesourcery.com>

* gcc.target/i386/fuse-caller-save-xmm-run.c: New test.
* gcc.target/i386/fuse-caller-save-xmm.c: New test.

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

10 years agocp/
emsr [Sun, 13 Jul 2014 13:36:57 +0000 (13:36 +0000)]
cp/

2014-07-13  Edward Smith-Rowland  <3dw4rd@verizon.net>

PR C++/60209 - Declaration of user-defined literal operator cause error
* cp/parser.c (cp_parser_operator()): Fold treatment of strings
and user-defined string literals.  Use the full string parser.
(cp_parser_string_literal()): Add flag to not look for literal operator.

testsuite/

2014-07-13  Edward Smith-Rowland  <3dw4rd@verizon.net>

PR C++/60209 - Declaration of user-defined literal operator cause error
* g++.dg/cpp0x/pr60209-neg.C: New.
* g++.dg/cpp0x/pr60209.C: New.
* g++.dg/cpp1y/udlit-empty-string-neg.C: Adjust messages.

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

10 years ago2014-07-13 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Sun, 13 Jul 2014 13:24:18 +0000 (13:24 +0000)]
2014-07-13  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60967
* g++.dg/cilk-plus/pr60967.C: New.

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

10 years ago2014-07-12 Ulrich Drepper <drepper@gmail.com>
drepper [Sun, 13 Jul 2014 11:07:44 +0000 (11:07 +0000)]
2014-07-12  Ulrich Drepper  <drepper@gmail.com>

* include/ext/random: Add uniform_on_sphere_distribution definition.
* include/ext/random.tcc: Add out-of-band member function definitions
for uniform_on_sphere_distribution.
* testsuite/ext/random/uniform_on_sphere_distribution/
cons/default.cc: New file.
* testsuite/ext/random/uniform_on_sphere_distribution/
operators/equal.cc: New file.
* testsuite/ext/random/uniform_on_sphere_distribution/
operators/inequal.cc: New file.
* testsuite/ext/random/uniform_on_sphere_distribution/
operators/serialize.cc: New file.

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

10 years ago2014-07-13 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 13 Jul 2014 08:10:40 +0000 (08:10 +0000)]
2014-07-13  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_atomic_4.f90: Avoid using a kind=16
        integer.

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

10 years ago2014-07-13 Tobias Burnus <burnus@net-b.de>
burnus [Sun, 13 Jul 2014 06:40:16 +0000 (06:40 +0000)]
2014-07-13  Tobias Burnus  <burnus@net-b.de>

        * testsuite/libgomp.fortran/pr34020.f90: Make compile
        with TS 18508/Fortran 2015

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

10 years agoDaily bump.
gccadmin [Sun, 13 Jul 2014 00:16:50 +0000 (00:16 +0000)]
Daily bump.

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

10 years ago2014-07-12 Paul Thomas <pault@gcc.gnu.org>
pault [Sat, 12 Jul 2014 19:09:11 +0000 (19:09 +0000)]
2014-07-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/61780
* dependency.c (gfc_dep_resolver): Index the 'reverse' array so
that elements are skipped. This then correctly aligns 'reverse'
with the scalarizer loops.

2014-07-12  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/61780
* gfortran.dg/dependency_44.f90 : New test

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

10 years ago2014-07-12 Tobias Burnus <burnus@net-b.de>
burnus [Sat, 12 Jul 2014 19:05:52 +0000 (19:05 +0000)]
2014-07-12  Tobias Burnus  <burnus@net-b.de>

        PR fortran/61628
        * trans-types.c (gfc_init_types): Fix data-type bug
        with gfc_max_array_element_size.

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

10 years ago2014-07-12 Tobias Burnus <burnus@net-b.de>
burnus [Sat, 12 Jul 2014 19:02:57 +0000 (19:02 +0000)]
2014-07-12  Tobias Burnus  <burnus@net-b.de>

gcc/fortran/
        * libgfortran.h (libcaf_atomic_codes): Add.
        * trans-decl.c (gfor_fndecl_caf_atomic_def,
        gfor_fndecl_caf_atomic_ref, gfor_fndecl_caf_atomic_cas,
        gfor_fndecl_caf_atomic_op): New variables.
        (gfc_build_builtin_function_decls): Initialize them.
        * trans.h (gfor_fndecl_caf_atomic_def,
        gfor_fndecl_caf_atomic_ref, gfor_fndecl_caf_atomic_cas,
        gfor_fndecl_caf_atomic_op): New variables.
        * trans-intrinsic.c (conv_intrinsic_atomic_op,
        conv_intrinsic_atomic_ref, conv_intrinsic_atomic_cas):
        Add library calls with -fcoarray=lib.

libgfortran/
        * caf/libcaf.h (_gfortran_caf_atomic_define,
        _gfortran_caf_atomic_ref, _gfortran_caf_atomic_op,
        _gfortran_caf_atomic_cas): New prototypes.
        * caf/single.c (_gfortran_caf_atomic_define,
        _gfortran_caf_atomic_ref, _gfortran_caf_atomic_op,
        _gfortran_caf_atomic_cas): New functions.

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

10 years agogcc/fortran/
burnus [Sat, 12 Jul 2014 19:00:47 +0000 (19:00 +0000)]
gcc/fortran/
2014-07-12  Tobias Burnus  <burnus@net-b.de>

        * check.c (gfc_check_atomic): Update for STAT=.
        (gfc_check_atomic_def, gfc_check_atomic_ref): Update call.
        (gfc_check_atomic_op, gfc_check_atomic_cas,
        gfc_check_atomic_fetch_op): New.
        * gfortran.h (gfc_isym_id): GFC_ISYM_ATOMIC_CAS,
        * GFC_ISYM_ATOMIC_ADD,
        GFC_ISYM_ATOMIC_AND, GFC_ISYM_ATOMIC_OR, GFC_ISYM_ATOMIC_XOR,
        GFC_ISYM_ATOMIC_FETCH_ADD, GFC_ISYM_ATOMIC_FETCH_AND,
        GFC_ISYM_ATOMIC_FETCH_OR and GFC_ISYM_ATOMIC_FETCH_XOR.
        * intrinsic.c (add_subroutines): Handle them.
        * intrinsic.texi: Add documentation for them.
        (ATOMIC_REF, ATOMIC_DEFINE): Add STAT=.
        (ISO_FORTRAN_ENV): Add STAT_FAILED_IMAGE.
        * intrinsic.h (gfc_check_atomic_op, gfc_check_atomic_cas,
        gfc_check_atomic_fetch_op): New
        prototypes.
        * libgfortran.h (libgfortran_stat_codes): Add
        * GFC_STAT_FAILED_IMAGE.
        * iso-fortran-env.def: Add it.
        * trans-intrinsic.c (conv_intrinsic_atomic_op): Renamed from
        conv_intrinsic_atomic_ref; handle more atomics.
        (conv_intrinsic_atomic_def): Handle STAT=.
        (conv_intrinsic_atomic_cas): New.
        (gfc_conv_intrinsic_subroutine): Handle new atomics.

gcc/testsuite/
2014-07-12  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_atomic_1.f90: Update dg-error.
        * gfortran.dg/coarray_atomic_2.f90: New.
        * gfortran.dg/coarray_atomic_3.f90: New.
        * gfortran.dg/coarray_atomic_4.f90: New.
        * gfortran.dg/coarray/atomic_2.f90: New.

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

10 years ago PR c++/22434
jason [Sat, 12 Jul 2014 16:36:25 +0000 (16:36 +0000)]
PR c++/22434
PR c++/61288
* call.c (build_conditional_expr_1): Avoid reading freed memory.

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

10 years ago * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
hubicka [Sat, 12 Jul 2014 15:34:45 +0000 (15:34 +0000)]
* tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
on builtin types.
* ipa-devirt.c: Include stor-layout.h and intl.h
(odr_subtypes_equivalent_p): New function.
(warn_odr): New function.
(warn_type_mismatch): New function.
(odr_types_equivalent_p): New function.
(add_type_duplicate): Use it.
* common.opt (Wodr): New flag.
* doc/invoke.texi (Wodr): Document new warning.

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

10 years ago2014-07-12 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Sat, 12 Jul 2014 15:27:12 +0000 (15:27 +0000)]
2014-07-12  Paolo Carlini  <paolo.carlini@oracle.com>

* Minor ChangeLog adjustment.

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

10 years ago * lto.c (read_cgraph_and_symbols): Do not push DECL_INIT_IO
hubicka [Sat, 12 Jul 2014 09:35:00 +0000 (09:35 +0000)]
* lto.c (read_cgraph_and_symbols): Do not push DECL_INIT_IO
timevar
(materialize_cgraph): Do not push GIMPLE_IN timevar.

* timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
(TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
* cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
(varpool_get_constructor): Push CTORS_IN timevar.
* lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT
timevar.

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

10 years ago * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
uros [Sat, 12 Jul 2014 09:09:51 +0000 (09:09 +0000)]
* config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
Remove VOID_FTYPE_PUSHORT.
* config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
Change code to USHORT_FTYPE_VOID.
(ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
(ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
(ix86_atomic_assign_expand_fenv): Update for
__builtin_ia32_fnstsw changes.
* config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
(fnstsw): Change operand 0 to nonimmediate operand.

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

10 years ago2014-07-11 Edward Smith-Rowland <3dw4rd@verizon.net>
emsr [Sat, 12 Jul 2014 01:41:30 +0000 (01:41 +0000)]
2014-07-11  Edward Smith-Rowland  <3dw4rd@verizon.net>

PR c++/57644 - [C++1y] Cannot bind bitfield to lvalue reference
g++.dg/cpp0x/pr57644.C: New.

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

10 years ago2014-07-11 Edward Smith-Rowland <3dw4rd@verizon.net>
emsr [Sat, 12 Jul 2014 01:32:20 +0000 (01:32 +0000)]
2014-07-11  Edward Smith-Rowland  <3dw4rd@verizon.net>

Add the logistic_distribution as an extension.
* include/ext/random: Add the logistic_distribution.
* include/ext/random.tcc: Add the logistic_distribution.
* testsuite/ext/random/logistic_distribution/cons/parms.cc: New.
* testsuite/ext/random/logistic_distribution/cons/default.cc: New.
* testsuite/ext/random/logistic_distribution/requirements/typedefs.cc:
New.
* testsuite/ext/random/logistic_distribution/operators/inequal.cc: New.
* testsuite/ext/random/logistic_distribution/operators/equal.cc: New.
* testsuite/ext/random/logistic_distribution/operators/serialize.cc:
New.

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

10 years agoDaily bump.
gccadmin [Sat, 12 Jul 2014 00:17:02 +0000 (00:17 +0000)]
Daily bump.

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

10 years agoruntime: Merge master revision 19185.
ian [Sat, 12 Jul 2014 00:01:09 +0000 (00:01 +0000)]
runtime: Merge master revision 19185.

This revision renames several files in the runtime directory
from .c to .goc.

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

10 years ago2014-07-11 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 11 Jul 2014 23:32:14 +0000 (23:32 +0000)]
2014-07-11  Paolo Carlini  <paolo.carlini@oracle.com>

* Minor ChangeLog adjustment.

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

10 years ago2014-07-11 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 11 Jul 2014 22:25:16 +0000 (22:25 +0000)]
2014-07-11  Paolo Carlini  <paolo.carlini@oracle.com>

* Minor ChangeLog adjustments.

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

10 years ago/cp
paolo [Fri, 11 Jul 2014 21:53:59 +0000 (21:53 +0000)]
/cp
2014-07-11  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/53159
* call.c (build_user_type_conversion_1): Copy LOOKUP_NO_NARROWING
into convflags.
* decl.c (check_initializer): Don't call check_narrowing here,
set LOOKUP_NO_NARROWING.
* typeck2.c (digest_init_r): Likewise.

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

PR c++/53159
* g++.dg/cpp0x/Wnarrowing1.C: New.

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

10 years ago * doc/invoke.texi: Document -fno-use-all-virtuals.
jason [Fri, 11 Jul 2014 21:10:49 +0000 (21:10 +0000)]
* doc/invoke.texi: Document -fno-use-all-virtuals.

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

10 years ago * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
hubicka [Fri, 11 Jul 2014 17:43:44 +0000 (17:43 +0000)]
* vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
(varpool_get_constructor): New function.
(varpool_ctor_useable_for_folding_p): Break out from ...
(ctor_for_folding): ... here; use varpool_get_constructor.
(varpool_assemble_decl): Likewise.
* lto-streamer.h (struct output_block): Turn cgraph_node
to symbol filed.
(lto_input_variable_constructor): Declare.
* ipa-visibility.c (function_and_variable_visibility): Use
varpool_get_constructor.
* cgraph.h (varpool_get_constructor): Declare.
(varpool_ctor_useable_for_folding_p): New function.
* lto-streamer-out.c (get_symbol_initial_value): Take encoder
parameter; return error_mark_node for non-trivial constructors.
(lto_write_tree_1, DFS_write_tree): UPdate use of
get_symbol_initial_value.
(output_function): Update initialization of symbol.
(output_constructor): New function.
(copy_function): Rename to ..
(copy_function_or_variable): ... this one; handle vars too.
(lto_output): Output variable sections.
* lto-streamer-in.c (input_constructor): New function.
(lto_read_body): Rename from ...
(lto_read_body_or_constructor): ... this one; handle vars
too.
(lto_input_variable_constructor): New function.
* ipa-prop.c (ipa_prop_write_jump_functions,
ipa_prop_write_all_agg_replacement): Update.
* lto-cgraph.c (compute_ltrans_boundary): Use it.
(output_cgraph_opt_summary): Set symbol to NULL.

* lto-partition.c (add_references_to_partition): Use
varpool_ctor_useable_for_folding_p.
* lto.c (lto_read_in_decl_state): Update sanity check.

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

10 years ago * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
hubicka [Fri, 11 Jul 2014 17:36:35 +0000 (17:36 +0000)]
* ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
non-polymorphic types.
* ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
* ipa-devirt.c (types_same_for_odr): Do not explode when one
of types is not polymorphic.

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

10 years ago2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Fri, 11 Jul 2014 17:19:53 +0000 (17:19 +0000)]
2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>

* lra-constraints.c (remove_inheritance_pseudos): Process
destination pseudo too.

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

10 years ago2014-07-11 Rong Xu <xur@google.com>
xur [Fri, 11 Jul 2014 17:02:18 +0000 (17:02 +0000)]
2014-07-11  Rong Xu  <xur@google.com>

* libgcov-util.c (gcov_max_filename): Fix declartion.

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

10 years ago2014-07-11 Rong Xu <xur@google.com>
xur [Fri, 11 Jul 2014 16:59:30 +0000 (16:59 +0000)]
2014-07-11  Rong Xu  <xur@google.com>

* gcov-tool.c (gcov_output_files): Fix build error introduced in
commit r212448.

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

10 years ago * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
denisc [Fri, 11 Jul 2014 16:22:10 +0000 (16:22 +0000)]
* config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
* config/avr/avr-devices.c (AVR_MCU): Same.
(avr_mcu_types): add text start value to end of device list.
* config/avr/avr-mcus.def: Add text section start for all devices.
(ata5782): Add new avr5 device.
(ata5831): Same.
* config/avr/avr-tables.opt: Regenerate.
* config/avr/avr.h: Add declaration for text section start handler.
(EXTRA_SPEC_FUNCTIONS): Add text section start handler to SPEC function=
s.
(LINK_SPEC): Include text section start handler to linker spec.
* config/avr/driver-avr.c (avr_device_to_text_start): New function to
pass -Ttext option to linker if the text section start for the device i=
s
not zero.
* config/avr/t-multilib: Regenerate.
* doc/avr-mmcu.texi: Regenerate.

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

10 years ago * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
dje [Fri, 11 Jul 2014 15:47:48 +0000 (15:47 +0000)]
    * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
        * config/rs6000/aix52.h (LINK_SPEC): Same.
        * config/rs6000/aix53.h (LINK_SPEC): Same.
        * config/rs6000/aix61.h (LINK_SPEC): Same.
        * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.

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

10 years ago2014-07-11 Samuel Bronson <naesten@gmail.com>
redi [Fri, 11 Jul 2014 15:32:29 +0000 (15:32 +0000)]
2014-07-11  Samuel Bronson  <naesten@gmail.com>

* testsuite/lib/gdb-test.exp (gdb-test): Turn off GDB's auto-load,
list loaded libs.

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

10 years ago2014-07-11 Samuel Bronson <naesten@gmail.com>
redi [Fri, 11 Jul 2014 15:32:14 +0000 (15:32 +0000)]
2014-07-11  Samuel Bronson  <naesten@gmail.com>

* testsuite/lib/libstdc++.exp  (libstdc++_init): Set $GCC_COLORS=""
instead of insisting that GCC understand -fdiagnostics-color=never

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

10 years agoPR preprocessor/61389
schwab [Fri, 11 Jul 2014 14:49:27 +0000 (14:49 +0000)]
PR preprocessor/61389
* gcc.dg/cpp/macsyntx.c: Update expected warnings.
* gcc.dg/cpp/sysmac1.c: Likewise.

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

10 years ago gcc/
romangareev [Fri, 11 Jul 2014 14:18:44 +0000 (14:18 +0000)]
gcc/
* graphite-isl-ast-to-gimple.c (gmp_cst_to_tree):
New function.
(graphite_verify): New function.
(ivs_params_clear): New function.
(gcc_expression_from_isl_ast_expr_id): New function.
(gcc_expression_from_isl_expr_int): New function.
(binary_op_to_tree): New function.
(ternary_op_to_tree): New function.
(unary_op_to_tree): New function.
(nary_op_to_tree): New function.
(gcc_expression_from_isl_expr_op): New function.
(gcc_expression_from_isl_expression): New function.
(graphite_create_new_loop): New function.
(translate_isl_ast_for_loop): New function.
(get_upper_bound): New function.
(graphite_create_new_loop_guard): New function.
(translate_isl_ast_node_for): New function.
(translate_isl_ast): New function.
(add_parameters_to_ivs_params): New function.
(scop_to_isl_ast): New parameter ip.
(graphite_regenerate_ast_isl): Add generation of GIMPLE code.

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

10 years ago * config/xtensa/predicates.md (call expander): Update for
hubicka [Fri, 11 Jul 2014 13:44:49 +0000 (13:44 +0000)]
* config/xtensa/predicates.md (call expander): Update for
DECL_SECTION_NAME being string.

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

10 years ago2014-07-11 Samuel Bronson <naesten@gmail.com>
redi [Fri, 11 Jul 2014 13:43:07 +0000 (13:43 +0000)]
2014-07-11  Samuel Bronson  <naesten@gmail.com>
    Matthias Klose  <doko@ubuntu.com>

PR libstdc++/58962
* python/libstdcxx/v6/printers.py: Port to Python 2+3
(imap): New compat function.
(izip): Likewise.
(Iterator): New mixin to allow writing iterators in Python 3 style
regardless of which version we're running on.
[Python3] (long) New compat alias for "int".
* testsuite/lib/gdb-test.exp: Port to Python 2+3 (print syntax)

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

10 years ago2014-07-11 Richard Biener <rguenther@suse.de>
rguenth [Fri, 11 Jul 2014 13:42:55 +0000 (13:42 +0000)]
2014-07-11  Richard Biener  <rguenther@suse.de>

PR middle-end/61473
* builtins.c (fold_builtin_memory_op): Inline memory moves
that can be implemented with a single load followed by a
single store.
(c_strlen): Only warn when only_value is not 2.

* gcc.dg/memmove-4.c: New testcase.
* gcc.dg/strlenopt-8.c: XFAIL.
* gfortran.dg/coarray_lib_realloc_1.f90: Adjust.

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

10 years agogcc/
kyukhin [Fri, 11 Jul 2014 11:27:42 +0000 (11:27 +0000)]
gcc/
* gcc/config/i386/i386.c.orig

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

10 years agogcc/
mzakirov [Fri, 11 Jul 2014 09:02:39 +0000 (09:02 +0000)]
gcc/
2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>

PR target/61561
* config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
(*movhi_bytes): Likewise.
(*arm_movqi_insn): Likewise.

gcc/testsuite/
2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>

PR target/61561
* gcc.dg/pr61561.c: New test.

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

10 years ago PR target/56858
uros [Fri, 11 Jul 2014 07:42:50 +0000 (07:42 +0000)]
PR target/56858
* config/alpha/alpha.c: Include tree-pass.h, context.h
and pass_manager.h.
(pass_data_handle_trap_shadows): New pass.
(pass_handle_trap_shadows::gate): New pass gate function.
(make_pass_handle_trap_shadows): New function.
(rest_of_handle_trap_shadows): Ditto.

(alpha_align_insns_1): Rename from alpha_align_insns.
(pass_data_align_insns): New pass.
(pass_align_insns::gate): New pass gate function.
(make_pass_aling_insns): New function.
(rest_of_align_insns): Ditto.
(alpha_align_insns): Ditto.

(alpha_option_override): Declare handle_trap_shadows info
and align_insns_info.  Register handle_trap_shadows and align_insns
passes here.
(alpha_reorg): Do not call alpha_trap_shadows and
alpha_align_insn from here.

(alpha_pad_function_end): Do not skip BARRIERs.

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

10 years ago2014-07-10 Rong Xu <xur@google.com>
xur [Fri, 11 Jul 2014 05:48:07 +0000 (05:48 +0000)]
2014-07-10  Rong Xu  <xur@google.com>

Add gcov-tool: an offline gcda profile processing tool
Support.
* gcc/gcov-io.c (gcov_position): Make avaialble to gcov-tool.
(gcov_is_error): Ditto.
(gcov_read_string): Ditto.
(gcov_read_sync): Ditto.
* gcc/gcov-io.h: Move counter defines to gcov-counter.def.
* gcc/gcov-dump.c (tag_counters): Use gcov-counter.def.
* gcc/coverage.c: Ditto.
* gcc/gcov-tool.c: Offline gcda profile processing tool.
        (unlink_gcda_file): Remove one gcda file.
(unlink_profile_dir): Remove gcda files from the profile path.
(gcov_output_files): Output gcda files to an output dir.
(profile_merge): Merge two profiles in directory.
(print_merge_usage_message): Print merge usage.
(merge_usage): Print merge usage and exit.
(do_merge): Driver for profile merge sub-command.
(profile_rewrite): Rewrite profile.
(print_rewrite_usage_message): Print rewrite usage.
(rewrite_usage): Print rewrite usage and exit.
(do_rewrite): Driver for profile rewrite sub-command.
(print_usage): Print gcov-info usage and exit.
(print_version): Print gcov-info version.
(process_args): Process arguments.
(main): Main routine for gcov-tool.
* gcc/Makefile.in: Build and install gcov-tool.
* gcc/gcov-counter.def: New file split from gcov-io.h.
* libgcc/libgcov-driver.c (gcov_max_filename): Make available
        to gcov-tool.
* libgcc/libgcov-merge.c (__gcov_merge_add): Replace
        gcov_read_counter() with a Macro.
(__gcov_merge_ior): Ditto.
(__gcov_merge_time_profile): Ditto.
(__gcov_merge_single): Ditto.
(__gcov_merge_delta): Ditto.
* libgcc/libgcov-util.c (void gcov_set_verbose): Set the verbose flag
        in the utility functions.
(set_fn_ctrs): Utility function for reading gcda files to in-memory
        gcov_list object link lists.
(tag_function): Ditto.
(tag_blocks): Ditto.
(tag_arcs): Ditto.
(tag_lines): Ditto.
(tag_counters): Ditto.
(tag_summary): Ditto.
(read_gcda_finalize): Ditto.
(read_gcda_file): Ditto.
(ftw_read_file): Ditto.
(read_profile_dir_init): Ditto.
(gcov_read_profile_dir): Ditto.
(gcov_read_counter_mem): Ditto.
(gcov_get_merge_weight): Ditto.
(merge_wrapper): A wrapper function that calls merging handler.
(gcov_merge): Merge two gcov_info objects with weights.
(find_match_gcov_info): Find the matched gcov_info in the list.
(gcov_profile_merge): Merge two gcov_info object lists.
(__gcov_add_counter_op): Process edge profile counter values.
(__gcov_ior_counter_op): Process IOR profile counter values.
(__gcov_delta_counter_op): Process delta profile counter values.
(__gcov_single_counter_op): Process single  profile counter values.
(fp_scale): Callback function for float-point scaling.
(int_scale): Callback function for integer fraction scaling.
(gcov_profile_scale): Scaling profile counters.
(gcov_profile_normalize): Normalize profile counters.
* libgcc/libgcov.h: Add headers and functions for gcov-tool use.
        (gcov_get_counter): New.
        (gcov_get_counter_target): Ditto.
        (struct gcov_info): Make the functions field mutable in gcov-tool
        compilation.
* gcc/doc/gcc.texi: Include gcov-tool.texi.
* gcc/doc/gcov-tool.texi: Document for gcov-tool.

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

10 years agoruntime: Rename iface.goc to go-iface.goc.
ian [Fri, 11 Jul 2014 00:39:03 +0000 (00:39 +0000)]
runtime: Rename iface.goc to go-iface.goc.

Rename in order to avoid confusion with the new
runtime/iface.goc file in the Go library master sources.

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

10 years agoruntime: Drop reflectFlags tests.
ian [Fri, 11 Jul 2014 00:26:25 +0000 (00:26 +0000)]
runtime: Drop reflectFlags tests.

The flags were used by the reflect package in the past, but
not for a couple of years now.

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

10 years agoDaily bump.
gccadmin [Fri, 11 Jul 2014 00:18:26 +0000 (00:18 +0000)]
Daily bump.

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

10 years agoThere is a stray right paren.
emsr [Thu, 10 Jul 2014 22:44:36 +0000 (22:44 +0000)]
There is a stray right paren.
Fixed as obvious.

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

10 years ago2014-07-10 Edward Smith-Rowland <3dw4rd@verizon.net>
emsr [Thu, 10 Jul 2014 22:26:50 +0000 (22:26 +0000)]
2014-07-10  Edward Smith-Rowland  <3dw4rd@verizon.net>
    Jonathan Wakely  <jwakely@redhat.com>

PR CPP/61389
* macro.c (_cpp_arguments_ok, parse_params, create_iso_definition):
Warning messages mention C++11 in c++ mode and C99 in c mode.
* lex.c (lex_identifier_intern, lex_identifier): Ditto

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

10 years ago PR c++/61661
jason [Thu, 10 Jul 2014 21:48:26 +0000 (21:48 +0000)]
PR c++/61661
* semantics.c (reduced_constant_expression_p): Handle CONSTRUCTOR.

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

10 years ago PR c++/61659
jason [Thu, 10 Jul 2014 19:29:59 +0000 (19:29 +0000)]
PR c++/61659
PR c++/61687
gcc/c-family/
* c.opt (-fuse-all-virtuals): New.
gcc/cp/
* decl2.c (mark_all_virtuals): New variable.
(maybe_emit_vtables): Check it instead of flag_devirtualize.
(cp_write_global_declarations): Set it and give helpful diagnostic
if it introduces errors.
* class.c (finish_struct_1): Check it.
* decl.c (grokdeclarator): Clear virtualp after 'virtual auto' error.

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

10 years ago * include/experimental/any (any::_Manager_alloc::_Data): Reorder
redi [Thu, 10 Jul 2014 18:08:35 +0000 (18:08 +0000)]
* include/experimental/any (any::_Manager_alloc::_Data): Reorder
tuple members to simplify pretty printing.
(any::_Manager_alloc::_Data::_M_construct): Fix uses-allocator
construction.
* testsuite/experimental/any/cons/4.cc: New.

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

10 years ago2014-07-10 Richard Biener <rguenther@suse.de>
rguenth [Thu, 10 Jul 2014 14:43:07 +0000 (14:43 +0000)]
2014-07-10  Richard Biener  <rguenther@suse.de>

PR tree-optimization/61757
* tree-ssa-dom.c (loop_depth_of_name): Restore.
(propagate_rhs_into_lhs): Revert part of last change.

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

10 years agoAdd addressing=absolute and isa_rev=0 to mips fuse-caller-save tests
vries [Thu, 10 Jul 2014 14:02:26 +0000 (14:02 +0000)]
Add addressing=absolute and isa_rev=0 to mips fuse-caller-save tests

2014-07-10  Tom de Vries  <tom@codesourcery.com>

* gcc.target/mips/fuse-caller-save.c: Add addressing=absolute to
dg-options.
* gcc.target/mips/fuse-caller-save-micromips.c: Same.
* gcc.target/mips/fuse-caller-save-mips16.c: Same.  Add isa_rev=0 to
dg-options.

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

10 years ago2014-07-10 Richard Biener <rguenther@suse.de>
rguenth [Thu, 10 Jul 2014 12:20:32 +0000 (12:20 +0000)]
2014-07-10  Richard Biener  <rguenther@suse.de>

PR c-family/61741
* c-c++-common/torture/pr61741.c: Use signed char.

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

10 years agoFix --enable-checking=fold failure.
tschwinge [Thu, 10 Jul 2014 12:05:27 +0000 (12:05 +0000)]
Fix --enable-checking=fold failure.

gcc/
* fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
FUNCTION_DECLs.

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

10 years ago PR middle-end/53590
ebotcazou [Thu, 10 Jul 2014 10:38:30 +0000 (10:38 +0000)]
PR middle-end/53590
* function.c (allocate_struct_function): Revert r188667 change.

* gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.

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

10 years ago * config/fpu-*.h (get_fpu_rounding_mode, set_fpu_rounding_mode,
fxcoudert [Thu, 10 Jul 2014 08:45:38 +0000 (08:45 +0000)]
* config/fpu-*.h (get_fpu_rounding_mode, set_fpu_rounding_mode,
support_fpu_rounding_mode): Clean up, mark unreachable code as such.

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

10 years ago * doc/install.texi: Remove links to defunct package providers for
gerald [Thu, 10 Jul 2014 08:28:36 +0000 (08:28 +0000)]
* doc/install.texi: Remove links to defunct package providers for
Solaris.

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

10 years agoPR tree-optimization/61742
kyukhin [Thu, 10 Jul 2014 07:38:39 +0000 (07:38 +0000)]
PR tree-optimization/61742

gcc/testsuite/
        * gcc.dg/torture/pr61742.c: New test.
        * gcc.gg/vect/cond-reduc-1.c: Rename it to vect-cond-reduc-1.c
        * gcc.gg/vect/cond-reduc-2.c: Rename it to vect-cond-reduc-2.c

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

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

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

10 years agoAdd missing ChangeLog entries
vries [Wed, 9 Jul 2014 23:51:22 +0000 (23:51 +0000)]
Add missing ChangeLog entries

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

10 years ago/cp
paolo [Wed, 9 Jul 2014 22:44:42 +0000 (22:44 +0000)]
/cp
2014-07-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60686
* decl.c (grokdeclarator): Adjust error messages about 'explicit'
outside class declaration, in friend declaration, and neither on
constructor nor conversion operator.

/testsuite
2014-07-09  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60686
* g++.dg/cpp0x/explicit8.C: New.

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

10 years ago PR libstdc++/61728
jason [Wed, 9 Jul 2014 22:21:49 +0000 (22:21 +0000)]
PR libstdc++/61728
* libsupc++/cxxabi.h: Define __pbase_type_info::__pointer_catch here.
* libsupc++/tinfo.h: Not here.

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

10 years ago/cp
paolo [Wed, 9 Jul 2014 21:23:06 +0000 (21:23 +0000)]
/cp
2014-07-09  Paolo Carlini  <paolo.carlini@oracle.com>

DR 1584
PR c++/57466
* pt.c (check_cv_quals_for_unify): Implement resolution, disregard
cv-qualifiers of function types.

/testsuite
2014-07-09  Paolo Carlini  <paolo.carlini@oracle.com>

DR 1584
PR c++/57466
* g++.dg/template/pr57466.C: New.
* g++.dg/cpp0x/pr57466.C: Likewise.
* g++.dg/template/unify6.C: Update.

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

10 years agoEnable fuse-caller-save on self-recursive functions
vries [Wed, 9 Jul 2014 21:03:44 +0000 (21:03 +0000)]
Enable fuse-caller-save on self-recursive functions

2014-06-26  Tom de Vries  <tom@codesourcery.com>

* final.c (get_call_fndecl): Declare.
(self_recursive_call_p): New function.
(collect_fn_hard_reg_usage): Handle self-recursive function calls.

* gcc.target/i386/fuse-caller-save-rec.c: New test.

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

10 years ago * libgfortran.h (support_fpu_underflow_control,
fxcoudert [Wed, 9 Jul 2014 20:32:12 +0000 (20:32 +0000)]
* libgfortran.h (support_fpu_underflow_control,
        get_fpu_underflow_mode, set_fpu_underflow_mode): New prototypes.
* config/fpu-*.h (support_fpu_underflow_control,
get_fpu_underflow_mode, set_fpu_underflow_mode):
New functions.
* ieee/ieee_arithmetic.F90: Support underflow control.

* gfortran.dg/ieee/underflow_1.f90: New file.

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

10 years ago * ipa-devirt.c (record_node): Walk through aliases.
hubicka [Wed, 9 Jul 2014 20:00:25 +0000 (20:00 +0000)]
* ipa-devirt.c (record_node): Walk through aliases.

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

10 years ago * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
hubicka [Wed, 9 Jul 2014 19:09:50 +0000 (19:09 +0000)]
* lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.

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

10 years ago2014-07-09 Richard Biener <rguenther@suse.de>
rguenth [Wed, 9 Jul 2014 17:14:11 +0000 (17:14 +0000)]
2014-07-09  Richard Biener  <rguenther@suse.de>

PR c-family/61741
* c-gimplify.c (c_gimplify_expr): Gimplify self-modify expressions
using unsigned arithmetic if overflow does not wrap instead of
if overflow is undefined.

* c-c++-common/torture/pr61741.c: New testcase.

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