platform/upstream/linaro-gcc.git
9 years ago2014-11-27 Richard Biener <rguenther@suse.de>
rguenth [Thu, 27 Nov 2014 09:33:32 +0000 (09:33 +0000)]
2014-11-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/61634
* tree-vect-slp.c: Include gimple-walk.h.
(vect_detect_hybrid_slp_stmts): Rewrite to propagate hybrid
down the SLP tree for one scalar statement.
(vect_detect_hybrid_slp_1): New walker function.
(vect_detect_hybrid_slp_2): Likewise.
(vect_detect_hybrid_slp): Properly handle pattern statements
in a pre-scan over all loop stmts.

* gcc.dg/vect/pr61634.c: New testcase.

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

9 years ago Revert:
zqchen [Thu, 27 Nov 2014 07:34:26 +0000 (07:34 +0000)]
Revert:
2014-11-17  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
* config/aarch64/aarch64.c (aarch64_code_to_ccmode,
aarch64_convert_mode, aarch64_gen_ccmp_first,
aarch64_gen_ccmp_next): New functions.
(TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Define.

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

9 years ago * g++.dg/ext/alignof2.C: xfail-run-if on AIX.
dje [Thu, 27 Nov 2014 00:56:34 +0000 (00:56 +0000)]
    * g++.dg/ext/alignof2.C: xfail-run-if on AIX.

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

9 years agoDaily bump.
gccadmin [Thu, 27 Nov 2014 00:16:32 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago Allow partial specialization of variable templates.
jason [Wed, 26 Nov 2014 21:58:38 +0000 (21:58 +0000)]
Allow partial specialization of variable templates.
* cp-tree.h (TINFO_USED_TEMPLATE_ID): New.
* decl.c (duplicate_decls): Copy it.
* error.c (dump_decl) [TEMPLATE_ID_EXPR]: Handle variables.
* parser.c (cp_parser_decltype_expr): Do call finish_id_expression
on template-ids.
* pt.c (register_specialization): Remember variable template insts.
(instantiate_template_1): Find the matching partial specialization.
(check_explicit_specialization): Allow variable partial specialization.
(process_partial_specialization): Likewise.
(push_template_decl_real): Likewise.
(more_specialized_partial_spec): Rename from more_specialized_class.
(most_specialized_partial_spec): Rename from most_specialized_class.
(get_partial_spec_bindings): Rename from get_class_bindings.

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

9 years agoRegenerate ./configure
jbglaw [Wed, 26 Nov 2014 21:53:54 +0000 (21:53 +0000)]
Regenerate ./configure

2014-11-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* configure: Regenerate.

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

9 years agoMerge the ./config directory between GCC and Binutils
jbglaw [Wed, 26 Nov 2014 21:53:35 +0000 (21:53 +0000)]
Merge the ./config directory between GCC and Binutils

This pulls in the missing Binutils pieces into the ./config
directory. Contains these missing Binutils changes:

2014-08-14  Alan Modra  <amodra@gmail.com>

* plugins.m4: Test for dlfcn.h or windows.h here to set default
for --enable-plugins.  Report error if someone tries to enable
plugins on a host we don't support.

2014-08-19  Alan Modra  <amodra@gmail.com>

* plugins.m4 (AC_PLUGINS): If plugins are enabled, add -ldl to
LIBS via AC_SEARCH_LIBS.

For this commit:

2014-11-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* config/plugins.m4: Merge from Binutils.

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

9 years agoMerge ./config/ChangeLog with missing entries from Binutils
jbglaw [Wed, 26 Nov 2014 21:53:23 +0000 (21:53 +0000)]
Merge ./config/ChangeLog with missing entries from Binutils

2014-11-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* config/ChangeLog: Merge entries from Binutils

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

9 years agoMerge toplevel configure.ac bits from Binutils
jbglaw [Wed, 26 Nov 2014 21:53:04 +0000 (21:53 +0000)]
Merge toplevel configure.ac bits from Binutils

GCC and Binutils had a common ./configure.ac after this commit:

commit 08d081652f50df83f7e9768f8dbb7a99b0df50a2
Author: sandra <sandra@138bc75d-0d04-0410-961f-82ee72b054a4>
Date:   Wed May 14 23:20:59 2014 +0000

2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>

* configure.ac (target_makefile_frag): Set for nios2-*-elf*.
* configure: Regenerated.

config/
* mt-nios2-elf: New file.

Based on that file version, all GCC and Binutils commits to this file were
applied. This pulls in the following missing Binutils changes to configure.ac:

2014-07-21  Joel Sherrill  <joel.sherrill@oarcorp.com>

Disable gdb for or1k*-*-* until supported
* configure.ac (or1k*-*-*): Disable gdb.
* configure: Regenerated.

2014-07-27  Joel Sherrill <joel.sherrill@oarcorp.com>

GDB not supported for or1k*-*-rtems*
* configure.ac (or1k*-*-rtems*): gdb not supported.  The ordering
of the stanzas results in this not being caught by or1k*-*-* later.
* configure. Regenerated.

2014-09-06  Kuan-Lin Chen  <kuanlinchentw@gmail.com>

* configure: Disable gdb for nds32*-*-* until supported.
* configure.ac: Disable gdb for nds32*-*-* until supported.

2014-09-12  Andrew Bennett  <andrew.bennett@imgtec.com>

* configure.ac: Add mips*-img-elf* target triple.
* configure: Regenerate.

For this patch:

2014-11-26  Jan-Benedict Glaw  <jbglaw@lug-owl.de>

* configure.ac: Merge with Binutils.

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

9 years ago/cp
paolo [Wed, 26 Nov 2014 20:11:16 +0000 (20:11 +0000)]
/cp
2014-11-26  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/63757
* call.c (standard_conversion): Do not require expr to be non-null
when NULLPTR_TYPE_P (from) is true.

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

PR c++/63757
* g++.dg/cpp0x/nullptr33.C: New.

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

9 years ago * gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
jakub [Wed, 26 Nov 2014 19:54:49 +0000 (19:54 +0000)]
* gcc.c (SANITIZER_SPEC): Don't error on -fsanitize=thread
without -pie or -shared, error on -fsanitize=thread -static instead.

* lib/tsan-dg.exp (check_effective_target_fsanitize_thread,
tsan_init): Don't use -fPIE or -pie.

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

9 years ago2014-11-26 Tobias Burnus <burnus@net-b.de>
burnus [Wed, 26 Nov 2014 19:48:24 +0000 (19:48 +0000)]
2014-11-26  Tobias Burnus  <burnus@net-b.de>

        * Makefile.def: Make more dependent on mpfr, mpc and isl.
        * Makefile.in: Regenerate.

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

9 years ago * testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
jakub [Wed, 26 Nov 2014 19:36:36 +0000 (19:36 +0000)]
* testsuite/libgomp.c/examples-4/e.53.4.c: Add -DITESTITERS=20
to dg-options unless expensive testing is on.
(TESTITERS): Define to N if not defined.
(main): Use TESTITERS instead of N.
* testsuite/libgomp.c/examples-4/e.55.1.c: Define CHUNKSZ from
dg-additional-options depending on whether expensive testing is on.
* testsuite/libgomp.fortran/examples-4/e.55.1.f90 (e_55_1_mod):
Decrease N to 100000 and CHUNKSZ to 10000.

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

9 years agocomment fixes
jason [Wed, 26 Nov 2014 18:20:25 +0000 (18:20 +0000)]
comment fixes

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

9 years ago * constexpr.c (cxx_eval_constant_expression) [SAVE_EXPR]: Avoid
jason [Wed, 26 Nov 2014 18:20:18 +0000 (18:20 +0000)]
* constexpr.c (cxx_eval_constant_expression) [SAVE_EXPR]: Avoid
multiple evaluation.

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

9 years ago * constexpr.c (cxx_eval_call_expression): Don't talk about
jason [Wed, 26 Nov 2014 18:20:12 +0000 (18:20 +0000)]
* constexpr.c (cxx_eval_call_expression): Don't talk about
flowing off the end if we're already non-constant.

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

9 years ago2014-11-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
edlinger [Wed, 26 Nov 2014 18:10:29 +0000 (18:10 +0000)]
2014-11-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR ipa/61190
        * cgraph.h (symtab_node::call_for_symbol_and_aliases): Fix comment.
        (cgraph_node::function_or_virtual_thunk_symbol): New function.
        (cgraph_node::call_for_symbol_and_aliases): Fix comment.
        (cgraph_node::call_for_symbol_thunks_and_aliases): Adjust comment.
        Add new optional parameter exclude_virtual_thunks.
        * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Add new
        optional parameter exclude_virtual_thunks.
        (cgraph_node::set_const_flag): Don't propagate to virtual thunks.
        (cgraph_node::set_pure_flag): Likewise.
        (cgraph_node::function_symbol): Simplified.
        (cgraph_node::function_or_virtual_thunk_symbol): New function.
        * ipa-pure-const.c (analyze_function): For virtual thunks set
        pure_const_state to IPA_NEITHER.
        (propagate_pure_const): Use function_or_virtual_thunk_symbol.

testsuite/ChangeLog:
2014-11-26  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        PR ipa/61190
        * g++.old-deja/g++.mike/p4736b.C: Use -O2.

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

9 years ago2014-11-26 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Wed, 26 Nov 2014 16:06:53 +0000 (16:06 +0000)]
2014-11-26  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59114
* g++.dg/cpp0x/auto43.C: New.

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

9 years ago2014-11-26 Richard Biener <rguenther@suse.de>
rguenth [Wed, 26 Nov 2014 15:16:24 +0000 (15:16 +0000)]
2014-11-26  Richard Biener  <rguenther@suse.de>

PR middle-end/63738
* tree-data-ref.c (split_constant_offset_1): Do not follow
SSA edges for SSA names with SSA_NAME_OCCURS_IN_ABNORMAL_PHI.

* gcc.dg/torture/pr63738.c: New testcase.

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

9 years ago Diagnose string constant conversion to char* in c++11 and above
jason [Wed, 26 Nov 2014 15:16:07 +0000 (15:16 +0000)]
Diagnose string constant conversion to char* in c++11 and above
as forbidden, not deprecated.
* typeck.c (string_conv_p): Do a pedwarn in c++11 and above,
change the diagnostic for the Wwrite-strings case for c++11 and above.

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

9 years ago2014-11-26 Richard Biener <rguenther@suse.de>
rguenth [Wed, 26 Nov 2014 14:39:43 +0000 (14:39 +0000)]
2014-11-26  Richard Biener  <rguenther@suse.de>

* fold-const.h (const_unop): Declare.
(const_binop): Likewise.
* fold-const.c (const_binop): Export overload that expects
a type parameter and dispatches to fold_relational_const as well.
Check both operand kinds for guarding the transforms.
(const_unop): New function, with constant folding from fold_unary_loc.
(fold_unary_loc): Dispatch to const_unop for tcc_constant operand.
Remove constant folding done there from the simplifications.
(fold_binary_loc): Check for constants using CONSTANT_CLASS_P.
(fold_negate_expr): Remove dead code from the REAL_CST case.
Avoid building garbage in the COMPLEX_CST case.
* gimple-match-head.c (gimple_resimplify1): Dispatch to
const_unop.
(gimple_resimplify2): Dispatch to const_binop.
(gimple_simplify): Likewise.

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

9 years agogcc/
ienkovich [Wed, 26 Nov 2014 14:37:07 +0000 (14:37 +0000)]
gcc/

PR bootstrap/63995
* tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Ignore
debug statement when searching for a new position for
bounds load/creation statement.

gcc/testsuite/

PR bootstrap/63995
* gcc.target/i386/pr63995-2.c: New.

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

9 years ago PR sanitizer/63788
mpolacek [Wed, 26 Nov 2014 14:05:21 +0000 (14:05 +0000)]
PR sanitizer/63788
* asan.c (initialize_sanitizer_builtins): Add BT_FN_SIZE_CONST_PTR_INT
var.  Conditionally build BUILT_IN_OBJECT_SIZE decl.
(ATTR_PURE_NOTHROW_LEAF_LIST): Define.

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

9 years agogcc/
ienkovich [Wed, 26 Nov 2014 13:53:38 +0000 (13:53 +0000)]
gcc/

PR lto/64075
* tree-streamer-in.c (unpack_ts_function_decl_value_fields): Use
proper size for function_code bitfield.
(pack_ts_function_decl_value_fields): Likewise.

gcc/testsuite/

PR lto/64075
* gcc.dg/pr64075.c: New.

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

9 years agoChangeLog for last commit.
ro [Wed, 26 Nov 2014 13:25:46 +0000 (13:25 +0000)]
ChangeLog for last commit.

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

9 years agoXFAIL 27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc on Solaris (PR libstd...
ro [Wed, 26 Nov 2014 13:22:27 +0000 (13:22 +0000)]
XFAIL 27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc on Solaris (PR libstd++/64054)

PR libstdc++/64054
* testsuite/27_io/basic_ostream/inserters_arithmetic/char/hexfloat.cc:
XFAIL execution on *-*-solaris*.

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

9 years agoSkip gcc.target/i386/mcount_pic.c on Solaris
ro [Wed, 26 Nov 2014 13:22:16 +0000 (13:22 +0000)]
Skip gcc.target/i386/mcount_pic.c on Solaris

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

9 years agoPR debug/38757 continued. Handle C11, C++11 and C++14.
mark [Wed, 26 Nov 2014 11:05:20 +0000 (11:05 +0000)]
PR debug/38757 continued. Handle C11, C++11 and C++14.

Add experimental (minimal) DWARFv5 support.

This change depends on the new DWARFv5 constants mentioned in the
following draft: http://dwarfstd.org/doc/dwarf5.20141029.pdf

gcc/ChangeLog

* doc/invoke.texi (-gdwarf-@{version}): Mention experimental DWARFv5.
* opts.c (common_handle_option): Accept -gdwarf-5.
* dwarf2out.c (is_cxx): Add DW_LANG_C_plus_plus_11 and
DW_LANG_C_plus_plus_14.
(lower_bound_default): Likewise. Plus DW_LANG_C11.
(gen_compile_unit_die): Output DW_LANG_C_plus_plus_11,
DW_LANG_C_plus_plus_14 or DW_LANG_C11.
(output_compilation_unit_header): Output at most a DWARFv4 header.
(output_skeleton_debug_sections): Likewise.
(output_line_info): Likewise.
(output_aranges): Document header version number.

gcc/testsuite/ChangeLog

* gcc.dg/debug/dwarf2/lang-c11.c: New test.
* gcc.dg/debug/dwarf2/lang-c11-d4-strict.c: Likewise.
* g++.dg/debug/dwarf2/lang-cpp11.C: Likewise.
* g++.dg/debug/dwarf2/lang-cpp14.C: Likewise.
* g++.dg/debug/dwarf2/lang-cpp98.C: Likewise.

include/ChangeLog

* dwarf2.h: Add DW_LANG_C_plus_plus_11, DW_LANG_C11 and
DW_LANG_C_plus_plus_14.

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

9 years ago2014-11-26 Richard Biener <rguenther@suse.de>
rguenth [Wed, 26 Nov 2014 10:15:25 +0000 (10:15 +0000)]
2014-11-26  Richard Biener  <rguenther@suse.de>

* gimple-fold.c (get_symbol_constant_value): Allow all
GIMPLE register type zero-constants.

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

9 years agoDWARF add DW_AT_noreturn on noreturn function subprogram.
mark [Wed, 26 Nov 2014 10:10:27 +0000 (10:10 +0000)]
DWARF add DW_AT_noreturn on noreturn function subprogram.

This implements the DWARFv5 noreturn proposal:
http://dwarfstd.org/ShowIssue.php?issue=140331.1

TREE_THIS_VOLATILE on a FUNCTION_DECL node means the function does not
return normally. This catches the traditional noreturn GNU attribute,
the C11 _Noreturn keyword and the C++11 [[noreturn]] attribute.

This relies on the DW_AT_noreturn constant defined in the DWARFv5 DRAFT:
http://www.dwarfstd.org/doc/dwarf5.20141029.pdf

gcc/ChangeLog

* dwarf2out.c (gen_subprogram_die): Add DW_AT_noreturn when the
function decl has TREE_THIS_VOLATILE.

gcc/testsuite/ChangeLog

* g++.dg/debug/dwarf2/noreturn-function.C: New test.
* gcc.dg/debug/dwarf2/noreturn-function-attribute.c: Likewise.
* gcc.dg/debug/dwarf2/noreturn-function-keyword.c: Likewise.

include/ChangeLog

* dwarf2.def (DW_AT_noreturn): New DWARF5 attribute.

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

9 years ago2014-11-26 Richard Biener <rguenther@suse.de>
rguenth [Wed, 26 Nov 2014 09:43:39 +0000 (09:43 +0000)]
2014-11-26  Richard Biener  <rguenther@suse.de>

PR tree-optimization/62238
* tree-predcom.c (ref_at_iteration): Unshare the expression
before gimplifying it.
(prepare_initializers_chain): Discard unused seq.

* gcc.dg/torture/pr62238.c: New testcase.

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

9 years ago2014-11-25 Andrew Pinski <apinski@cavium.com>
pinskia [Wed, 26 Nov 2014 08:42:18 +0000 (08:42 +0000)]
2014-11-25  Andrew Pinski <apinski@cavium.com>

        * gcc.c-torture/execute/20141125-1.c: New testcase.

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

9 years ago * config/mips/mips.c (mips_rtx_cost_data): Fix memory_latency cost
prachigodbole [Wed, 26 Nov 2014 03:52:23 +0000 (03:52 +0000)]
* config/mips/mips.c (mips_rtx_cost_data): Fix memory_latency cost
for p5600.

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

9 years agoDaily bump.
gccadmin [Wed, 26 Nov 2014 00:16:29 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago2014-11-25 Tobias Burnus <burnus@net-b.de>
burnus [Tue, 25 Nov 2014 22:37:54 +0000 (22:37 +0000)]
2014-11-25  Tobias Burnus  <burnus@net-b.de>

        * error.c (gfc_internal_error): Convert to common diagnostics.
        * interface.c (gfc_find_sym_in_symtree): Use %qs.
        * intrinsic.c (make_generic, gfc_check_intrinsic_standard,
        gfc_convert_type_warn): Ditto.
        * module.c (write_symbol): Ditto.
        * symbol.c (gfc_get_default_type): Ditto; use fatal instead
        of internal error.
        * trans-array.c (gfc_walk_subexpr): Replace internal_error by
        gfc_internal_error.
        * trans-decl.c (gfc_get_symbol_decl,
        (gfc_create_module_variable): Ditto. Use %qs.
        * trans-intrinsic.c (gfc_conv_intrinsic_lib_function): Ditto.
        * trans-io.c (transfer_expr): Ditto.
        * trans-openmp.c (gfc_trans_omp_workshare): Ditto.
        * trans.c (trans_code): Ditto.

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

9 years ago2014-11-25 Tobias Burnus <burnus@net-b.de>
burnus [Tue, 25 Nov 2014 22:33:32 +0000 (22:33 +0000)]
2014-11-25  Tobias Burnus  <burnus@net-b.de>

gcc/fortran/
        * gfortran.h (gfc_option_t): Remove flags moved as Var to .opt.
        (gfc_error_now_1): Renamed from gfc_error_now.
        (gfc_error_now): Renamed from gfc_error_now_2.
        (gfc_warning_now_1): Renamed from gfc_warning_now.
        (gfc_warning_now): Renamed from gfc_warning_now_2.
        * error.c (gfc_error_now_1): Renamed from gfc_error_now.
        (gfc_error_now): Renamed from gfc_error_now_2.
        (gfc_warning_now_1): Renamed from gfc_warning_now.
        (gfc_warning_now): Renamed from gfc_warning_now_2.
        (gfc_get_errors): Include common diagnostic in count.
        * lang.opt (Wc-binding-type, Wconversion, Wconversion-extra,
        Wintrinsics-std): Create a Var for those warnings.
        * check.c (gfc_check_cmplx): Pass warning flag to
        diagnostic function.
        * decl.c (get_proc_name, gfc_verify_c_interop_param, build_sym
        gfc_set_constant_character_len, verify_bind_c_sym): Ditto; use
        _1 for old diagnostic, remove _2 for new diagnostic.
        * expr.c (gfc_check_assign, gfc_check_vardef_context): Ditto.
        * frontend-passes.c (doloop_code, do_function): Ditto.
        * intrinsic.c (gfc_is_intrinsic, gfc_convert_type_warn): Ditto.
        * match.c (gfc_match_common): Ditto.
        * module.c (use_iso_fortran_env_module, gfc_use_module): Ditto.
        * parse.c (decode_statement, decode_gcc_attribute, next_free,
        next_fixed, gfc_check_do_variable): Ditto.
        * resolve.c (resolve_common_vars, resolve_ordinary_assign):
        Ditto.
        * scanner.c (add_path_to_list, skip_free_comments,
        gfc_next_char_literal, gfc_gobble_whitespace, load_line,
        preprocessor_line, load_file): Ditto.
        * symbol.c (gfc_set_default_type, verify_bind_c_derived_type):
        Ditto.
        * options.c (gfc_post_options): Ditto.
        (gfc_init_options, set_Wall, gfc_handle_option): Ditto; remove
        flags which now have a Var.
        * invoke.texi (Wconversion-extra): Make clear that the flag
        does not imply -Wconversion.

gcc/testsuite/
        * gfortran.dg/empty_label.f: Change test to continue testing
        for -fmax-errors=1.
        * gfortran.dg/empty_label.f90: Ditto.
        * gfortran.dg/warnings_are_errors_1.f90: Update dg-*.

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

9 years ago2014-11-26 Andreas Tobler <andreast@gcc.gnu.org>
andreast [Tue, 25 Nov 2014 22:30:58 +0000 (22:30 +0000)]
2014-11-26  Andreas Tobler  <andreast@gcc.gnu.org>

        * g++.old-deja/g++.jason/enum6.C: Use arm_eabi for dg-options.
Update comment.
* g++.old-deja/g++.law/enum9.C: Likewise.
* g++.old-deja/g++.other/enum4.C: Likewise.

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

9 years ago2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Tue, 25 Nov 2014 21:27:17 +0000 (21:27 +0000)]
2014-11-25  Vladimir Makarov  <vmakarov@redhat.com>

* ira-lives.c (process_bb_node_lives): Make code with conditional
REAL_PIC_OFFSET_TABLE_REGNUM.

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

9 years agoAdd a testcase for PR target/63534
hjl [Tue, 25 Nov 2014 21:07:43 +0000 (21:07 +0000)]
Add a testcase for PR target/63534

PR target/63534
* gcc.target/i386/pr63534.c: New test.

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

9 years agoAdd a test for PR target/63527
hjl [Tue, 25 Nov 2014 20:54:16 +0000 (20:54 +0000)]
Add a test for PR target/63527

PR target/63527
* gcc.target/i386/pr63527.c: New test.

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

9 years agoEnsure single 'UNSUPPORTED: prettyprinters.exp' message
vries [Tue, 25 Nov 2014 20:30:20 +0000 (20:30 +0000)]
Ensure single 'UNSUPPORTED: prettyprinters.exp' message

2014-11-25  Tom de Vries  <tom@codesourcery.com>

* testsuite/libstdc++-prettyprinters/prettyprinters.exp: Add missing
dg-finish.  Only print unsupported message once.

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

9 years ago2014-11-25 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Tue, 25 Nov 2014 20:20:10 +0000 (20:20 +0000)]
2014-11-25  Vladimir Makarov  <vmakarov@redhat.com>

PR target/63527
* ira-lives.c (process_bb_node_lives): Check and remove conflict
of pic pseudo with pic hard reg.

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

9 years ago PR bootstrap/63703
fxcoudert [Tue, 25 Nov 2014 19:01:08 +0000 (19:01 +0000)]
PR bootstrap/63703
* config/rs6000/darwin.h (REGISTER_NAMES): Update based on 32 newly
added GCC hard register numbers for SPE high registers.

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

9 years ago * intrinsics/env.c (getenv): Remove unused variable res_len.
uros [Tue, 25 Nov 2014 18:29:42 +0000 (18:29 +0000)]
* intrinsics/env.c (getenv): Remove unused variable res_len.

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

9 years ago * bt-load.c (migrate_btr_defs): Get the key of a heap entry
segher [Tue, 25 Nov 2014 17:52:21 +0000 (17:52 +0000)]
* bt-load.c (migrate_btr_defs): Get the key of a heap entry
before removing it, not after.

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

9 years agolibgcc/
segher [Tue, 25 Nov 2014 17:50:29 +0000 (17:50 +0000)]
libgcc/
* crtstuff.c (__do_glbal_ctors_1): Add missing semicolon.

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

9 years ago * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
segher [Tue, 25 Nov 2014 17:47:35 +0000 (17:47 +0000)]
* config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Remove
PATTERN call.

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

9 years ago * config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead
segher [Tue, 25 Nov 2014 17:43:18 +0000 (17:43 +0000)]
* config/rs6000/sysv4.h (ASM_OUTPUT_REG_POP): Use addi instead
of addic.

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

9 years ago * config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
segher [Tue, 25 Nov 2014 17:41:10 +0000 (17:41 +0000)]
* config/rs6000/rs6000.md (iorxor, IORXOR): Delete code_attrs.
(rest of file): Replace those with code resp. CODE.

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

9 years agoAdd verify_sese
vries [Tue, 25 Nov 2014 17:10:00 +0000 (17:10 +0000)]
Add verify_sese

2014-11-25  Tom de Vries  <tom@codesourcery.com>

* tree-cfg.c (verify_sese): New function.
(move_sese_region_to_fn): Call verify_sese.
* tree-cfg.h (verify_sese): Declare.

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

9 years agoUse .mklog name and email settings, or git settings
vries [Tue, 25 Nov 2014 16:45:13 +0000 (16:45 +0000)]
Use .mklog name and email settings, or git settings

2014-11-25  Tom de Vries  <tom@codesourcery.com>
    Peter Bergner  <bergner@vnet.ibm.com>

* mklog: Handle .mklog.  Use git setting independent of presence .git
directory.

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

9 years ago2014-11-25 Richard Biener <rguenther@suse.de>
rguenth [Tue, 25 Nov 2014 16:43:24 +0000 (16:43 +0000)]
2014-11-25  Richard Biener  <rguenther@suse.de>

PR lto/64065
* lto-streamer-out.c (output_struct_function_base): Stream
last_clique field.
* lto-streamer-in.c (input_struct_function_base): Likewise.

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

9 years ago2014-11-25 Martin Liska <mliska@suse.cz>
marxin [Tue, 25 Nov 2014 15:16:27 +0000 (15:16 +0000)]
2014-11-25  Martin Liska  <mliska@suse.cz>

PR bootstrap/64050
PR ipa/64060
* sreal.c (sreal::operator+): Addition fixed.
(sreal::signedless_plus): Negative numbers are
handled correctly.
(sreal::operator-): Subtraction is fixed.
(sreal::signedless_minus): Negative numbers are
handled correctly.
* sreal.h (sreal::operator<): Equal negative numbers
are compared correctly.
(sreal::shift): New checking asserts are introduced.
Operation is fixed.
* gcc.dg/plugin/plugin.exp: New plugin.
* gcc.dg/plugin/sreal-test-1.c: New test.
* gcc.dg/plugin/sreal_plugin.c: New test.

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

9 years agoMIPS: Testsuite fixes for soft-float configurations
mpf [Tue, 25 Nov 2014 14:57:33 +0000 (14:57 +0000)]
MIPS: Testsuite fixes for soft-float configurations

gcc/testuite/

* gcc.target/mips/mips.exp: Add support for -msoft-float
and -mhard-float options.  Ensure that explicit -mfp*
options imply both -mhard-float and -mdouble-float.
* gcc.target/mips/call-clobbered-1.c: Add -mhard-float to the
compile options.

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

9 years ago2014-11-25 Richard Biener <rguenther@suse.de>
rguenth [Tue, 25 Nov 2014 14:55:29 +0000 (14:55 +0000)]
2014-11-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/61927
* tree-vect-loop.c (vect_analyze_loop_2): Revert ordering
of group and pattern analysis to the one in GCC 4.8.

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

9 years ago * pt.c (lookup_template_variable): Always unknown_type_node.
jason [Tue, 25 Nov 2014 14:34:43 +0000 (14:34 +0000)]
* pt.c (lookup_template_variable): Always unknown_type_node.

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

9 years agoRemove unnecessary calls to strchr.
tocarip [Tue, 25 Nov 2014 13:56:03 +0000 (13:56 +0000)]
Remove unnecessary calls to strchr.

gcc/
* gcc.c (handle_foffload_option): Remove unnecessary calls to strchr,
strlen, strncpy.
* lto-wrapper.c (append_offload_options): Likewise.

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

9 years ago/cp
paolo [Tue, 25 Nov 2014 13:48:49 +0000 (13:48 +0000)]
/cp
2014-11-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/63786
* parser.c (cp_parser_label_for_labeled_statement): Check the case
with check_for_bare_parameter_packs.

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

PR c++/63786
* g++.dg/cpp0x/variadic163.C: New.

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

9 years ago PR preprocessor/60436
jakub [Tue, 25 Nov 2014 11:16:27 +0000 (11:16 +0000)]
PR preprocessor/60436
* line-map.c (linemap_line_start): If highest is above 0x60000000
and we are still tracking columns or highest is above 0x70000000,
force add_map.

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

9 years ago PR target/64056
ienkovich [Tue, 25 Nov 2014 09:48:47 +0000 (09:48 +0000)]
PR target/64056
* gcc.target/i386/chkp-strlen-4.c: Add mempcpy target check.
* gcc.target/i386/chkp-stropt-4.c: Likewise.
* gcc.target/i386/chkp-stropt-8.c: Likewise.
* gcc.target/i386/chkp-stropt-12.c: Likewise.
* gcc.target/i386/chkp-stropt-16.c: Likewise.

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

9 years ago * config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not
ebotcazou [Tue, 25 Nov 2014 09:07:25 +0000 (09:07 +0000)]
* config/rs6000/rs6000.c (rs6000_call_aix): For the AIX ABI, do not
load the static chain if the call was originally direct.

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

9 years ago PR c/63877
mpolacek [Tue, 25 Nov 2014 08:28:45 +0000 (08:28 +0000)]
PR c/63877
* c-decl.c (start_function): Disable -Wmissing-declarations warning
for inline functions.

* gcc.dg/pr63877.c: New test.

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

9 years agoFix PR64059
trippels [Tue, 25 Nov 2014 07:41:48 +0000 (07:41 +0000)]
Fix PR64059

* ipa-prop.c (ipa_analyze_call_uses): Don't call get_dynamic_type when
devirtualization is disabled.

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

9 years ago PR libstdc++/63920
timshen [Tue, 25 Nov 2014 05:43:04 +0000 (05:43 +0000)]
PR libstdc++/63920
* include/bits/regex_executor.h: Make _M_begin non const.
* include/bits/regex_executor.tcc (_Executor<>::_M_search): Increase
_M_begin in search algorithm, so that _M_begin is treated as
"current start position" for each search iteration.
* testsuite/28_regex/algorithms/regex_search/ecma/flags.cc: New
testcase.

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

9 years agoDaily bump.
gccadmin [Tue, 25 Nov 2014 00:16:26 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago * config/pa/linux-atomic.c (ABORT_INSTRUCTION): Use __builtin_trap()
danglin [Mon, 24 Nov 2014 23:39:47 +0000 (23:39 +0000)]
* config/pa/linux-atomic.c (ABORT_INSTRUCTION): Use __builtin_trap()
instead.

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

9 years ago * configure.ac: Guard include of <ieeefp.h>.
danglin [Mon, 24 Nov 2014 23:27:36 +0000 (23:27 +0000)]
* configure.ac: Guard include of <ieeefp.h>.
* configure: Rebuilt.

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

9 years ago PR fortran/63938
jakub [Mon, 24 Nov 2014 23:08:26 +0000 (23:08 +0000)]
PR fortran/63938
* trans-openmp.c (gfc_trans_omp_atomic): Make sure lhsaddr is
simple enough for goa_lhs_expr_p.

* libgomp.fortran/pr63938-1.f90: New test.
* libgomp.fortran/pr63938-2.f90: New test.

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

9 years ago PR target/63847
uros [Mon, 24 Nov 2014 21:43:59 +0000 (21:43 +0000)]
PR target/63847
* c-c++-common/cilk-plus/AN/builtin_fn_custom.c: Add -ffloat-store
for 32bit x86 targets.
* c-c++-common/cilk-plus/AN/builtin_fn_mutating.c: Ditto.

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

9 years ago2014-11-24 Tobias Burnus <burnus@net-b.de>
burnus [Mon, 24 Nov 2014 19:40:10 +0000 (19:40 +0000)]
2014-11-24  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_collectives_3.f90: Add dg-excess-errors.
        * gfortran.dg/dollar_sym_1.f90: Ditto.
        * gfortran.dg/dollar_sym_3.f: Ditto.

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

9 years ago2014-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
meissner [Mon, 24 Nov 2014 19:27:29 +0000 (19:27 +0000)]
2014-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/63965
* config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Do not set
Altivec & -16 mask if the type is not valid for Altivec registers.
(rs6000_secondary_reload_memory): Add support for ((reg + const) +
reg) that occurs during push_reload processing.

* config/rs6000/altivec.md (altivec_mov<mode>): Add instruction
alternative for moving constant vectors which are easy altivec
constants to GPRs.  Set the length attribute each of the
alternatives.

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

9 years ago2014-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
meissner [Mon, 24 Nov 2014 18:58:40 +0000 (18:58 +0000)]
2014-11-24  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/63965
* config/rs6000/rs6000-cpus.def: Undo November 21st changes, a
work in progress patch was committed instead of the fixes for
63965.
* config/rs6000/rs6000.c: Likewise.

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

9 years agocompiler: Do not dereference a named pointer type when looking up a method.
ian [Mon, 24 Nov 2014 17:10:20 +0000 (17:10 +0000)]
compiler: Do not dereference a named pointer type when looking up a method.

Fixes Issue 9018.

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

9 years ago2014-11-24 Bernd Edlinger <bernd.edlinger@hotmail.de>
edlinger [Mon, 24 Nov 2014 16:55:01 +0000 (16:55 +0000)]
2014-11-24  Bernd Edlinger  <bernd.edlinger@hotmail.de>

        * Makefile.def (module=gmp): Work around in-tree gmp configure bug with
        missing flex.
        * Makefile.in: Regenerated.

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

9 years ago PR ipa/63671
hubicka [Mon, 24 Nov 2014 16:15:46 +0000 (16:15 +0000)]
PR ipa/63671
* ipa-inline-transform.c (can_remove_node_now_p_1): Handle alises
and -fno-devirtualize more carefully.
(can_remove_node_now_p): Update.

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

9 years ago2014-11-24 Andrew Pinski <apinski@cavium.com>
pinskia [Mon, 24 Nov 2014 15:40:19 +0000 (15:40 +0000)]
2014-11-24  Andrew Pinski  <apinski@cavium.com>

        PR rtl-opt/63972
        * shrink-wrap.c (move_insn_for_shrink_wrap): Allow LO_SUM also.

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

9 years ago[AArch64]Add vec_shr pattern for 64-bit vectors using ush{l,r}; enable tests.
alalaw01 [Mon, 24 Nov 2014 15:23:28 +0000 (15:23 +0000)]
[AArch64]Add vec_shr pattern for 64-bit vectors using ush{l,r}; enable tests.

gcc/:

* config/aarch64/aarch64-simd.md (vec_shr<mode>): New.

gcc/testsuite/:

* lib/target-supports.exp (check_effective_target_whole_vector_shift):
Add aarch64{,_be}.

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

9 years ago[AArch64]Tidy up aarch64_simd_expand_args
alalaw01 [Mon, 24 Nov 2014 15:15:20 +0000 (15:15 +0000)]
[AArch64]Tidy up aarch64_simd_expand_args

       * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args):
        Refactor by combining switch statements and make arrays into scalars.

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

9 years ago PR c++/58561
dje [Mon, 24 Nov 2014 14:59:52 +0000 (14:59 +0000)]
    PR c++/58561
        * dbxout.c: Include stringpool.h
        (dbxout_type) [default]: Ignore auto type.

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

9 years ago2014-11-24 Richard Biener <rguenther@suse.de>
rguenth [Mon, 24 Nov 2014 14:07:18 +0000 (14:07 +0000)]
2014-11-24  Richard Biener  <rguenther@suse.de>

PR tree-optimization/63679
* tree-ssa-sccvn.c: Include ipa-ref.h, plugin-api.h and cgraph.h.
(copy_reference_ops_from_ref): Fix non-constant ADDR_EXPR case
to properly leave off at -1.
(fully_constant_vn_reference_p): Generalize folding from
constant initializers.
(vn_reference_lookup_3): When looking through aggregate copies
handle offsetted reads and try simplifying the result to
a constant.
* gimple-fold.h (fold_ctor_reference): Export.
* gimple-fold.c (fold_ctor_reference): Likewise.

* gcc.dg/tree-ssa/ssa-fre-42.c: New testcase.
* gcc.dg/tree-ssa/20030807-5.c: Avoid folding read from global to zero.
* gcc.target/i386/ssetype-1.c: Likewise.
* gcc.target/i386/ssetype-3.c: Likewise.
* gcc.target/i386/ssetype-5.c: Likewise.

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

9 years ago2014-11-24 Richard Biener <rguenther@suse.de>
rguenth [Mon, 24 Nov 2014 14:02:36 +0000 (14:02 +0000)]
2014-11-24  Richard Biener  <rguenther@suse.de>

PR java/64004
* class.c (build_classdollar_field): Do not set TREE_READONLY.

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

9 years ago/cp
paolo [Mon, 24 Nov 2014 13:35:08 +0000 (13:35 +0000)]
/cp
2014-11-24  Jonathan Wakely  <jwakely@redhat.com>
    Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/63203
* decl.c (initialize_local_var): Add -Winit-self warning for
references initialized with themselves.

/testsuite
2014-11-24  Jonathan Wakely  <jwakely@redhat.com>
    Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/63203
* g++.dg/warn/Winit-self-2.C: New.

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

9 years ago PR c++/63942
jason [Mon, 24 Nov 2014 12:49:08 +0000 (12:49 +0000)]
PR c++/63942
* mangle.c (mangle_decl): If we aren't going to create a symbol
alias, don't build the alias DECL either.

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

9 years ago2014-11-24 Petr Murzin <petr.murzin@intel.com>
iverbin [Mon, 24 Nov 2014 12:00:54 +0000 (12:00 +0000)]
2014-11-24  Petr Murzin  <petr.murzin@intel.com>

gcc/
* simplify-rtx.c (simplify_ternary_operation): Simplify
vec_merge (vec_duplicate (vec_select)).

gcc/testsuite/
* gcc.target/i386/extract-insert-combining.c: New test.

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

9 years ago[AArch64][4/5] Implement fusion of ARDP+LDR
ktkachov [Mon, 24 Nov 2014 11:37:34 +0000 (11:37 +0000)]
[AArch64][4/5] Implement fusion of ARDP+LDR

* config/aarch64/aarch64.c (AARCH64_FUSE_ADRP_LDR): Define.
(cortexa53_tunings): Specify AARCH64_FUSE_ADRP_LDR in fuseable_ops.
(aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_LDR.

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

9 years ago[AArch64][3/5] Implement fusion of MOVK+MOVK
ktkachov [Mon, 24 Nov 2014 11:26:04 +0000 (11:26 +0000)]
[AArch64][3/5] Implement fusion of MOVK+MOVK

* config/aarch64/aarch64.c (AARCH64_FUSE_MOVK_MOVK): Define.
(cortexa53_tunings): Specify AARCH64_FUSE_MOVK_MOVK in fuseable_ops.
(cortexa57_tunings): Likewise.
(aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_MOVK_MOVK.

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

9 years ago[sched-deps] Remove needless check for modified_in_p when trying to fuse two non...
ktkachov [Mon, 24 Nov 2014 11:09:59 +0000 (11:09 +0000)]
[sched-deps] Remove needless check for modified_in_p when trying to fuse two non-conditional jump insns

* sched-deps.c (sched_macro_fuse_insns): Do not check modified_in_p
in the not conditional jump case.
* doc/tm.texi (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.
* target.def (TARGET_SCHED_MACRO_FUSION_PAIR_P): Update description.

* gcc.target/aarch64/fuse_adrp_add_1.c: New test.

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

9 years ago2014-11-24 Richard Biener <rguenther@suse.de>
rguenth [Mon, 24 Nov 2014 11:07:23 +0000 (11:07 +0000)]
2014-11-24  Richard Biener  <rguenther@suse.de>

PR testsuite/64039
* gcc.dg/tree-ssa/ssa-dom-cse-2.c: XFAIL for hppa*-*-*.

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

9 years ago[AArch64][2/5] Implement adrp+add fusion
ktkachov [Mon, 24 Nov 2014 10:50:45 +0000 (10:50 +0000)]
[AArch64][2/5] Implement adrp+add fusion

* config/aarch64/aarch64.c: Include tm-constrs.h
(AARCH64_FUSE_ADRP_ADD): Define.
(cortexa57_tunings): Add AARCH64_FUSE_ADRP_ADD to fuseable_ops.
(cortexa53_tunings): Likewise.
(aarch_macro_fusion_pair_p): Handle AARCH64_FUSE_ADRP_ADD.

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

9 years ago[PATCH 2/2] ipa-inline uses sreal for as fibonacci_heap template
marxin [Mon, 24 Nov 2014 10:43:55 +0000 (10:43 +0000)]
[PATCH 2/2] ipa-inline uses sreal for as fibonacci_heap template

* ipa-inline.c (edge_badness): long is replaced by sreal
as fibonacci_heap template type.
(update_edge_key): Likewise.
(inline_small_functions): Likewise.

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

9 years ago[PATCH 1/2] Negative numbers added for sreal class.
marxin [Mon, 24 Nov 2014 10:41:18 +0000 (10:41 +0000)]
[PATCH 1/2] Negative numbers added for sreal class.

* predict.c (propagate_freq): More elegant sreal API is used.
(estimate_bb_frequencies): Precomputed constants replaced by integer
constants.
* sreal.c (sreal::normalize): New function.
(sreal::to_int): Likewise.
(sreal::operator+): Likewise.
(sreal::operator-): Likewise.
(sreal::signedless_plus): Likewise.
(sreal::signedless_minus): Likewise.
(sreal::operator/): Negative number support is added.
* sreal.h: Definition of new functions added.
(inline sreal operator<<): New function.
(inline sreal operator>>): Likewise.

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

9 years ago[AArch64][1/5] Implement TARGET_SCHED_MACRO_FUSION_PAIR_P
ktkachov [Mon, 24 Nov 2014 10:37:30 +0000 (10:37 +0000)]
[AArch64][1/5] Implement TARGET_SCHED_MACRO_FUSION_PAIR_P

* config/aarch64/aarch64-protos.h (struct tune_params): Add
fuseable_ops field.
* config/aarch64/aarch64.c (generic_tunings): Specify fuseable_ops.
(cortexa53_tunings): Likewise.
(cortexa57_tunings): Likewise.
(thunderx_tunings): Likewise.
(aarch64_macro_fusion_p): New function.
(aarch_macro_fusion_pair_p): Likewise.
(TARGET_SCHED_MACRO_FUSION_P): Define.
(TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
(AARCH64_FUSE_MOV_MOVK): Likewise.
(AARCH64_FUSE_NOTHING): Likewise.

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

9 years agoPR lto/63968
marxin [Mon, 24 Nov 2014 10:25:06 +0000 (10:25 +0000)]
PR lto/63968

        * bb-reorder.c (find_traces_1_round): decreate_key is replaced
with replace_key method.
* fibonacci_heap.h (fibonacci_heap::insert): New argument.
(fibonacci_heap::replace_key_data): Likewise.
(fibonacci_heap::replace_key): New method that can even increment key,
this operation costs O(log N).
(fibonacci_heap::extract_min): New argument.
(fibonacci_heap::delete_node): Likewise.

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

9 years ago2014-11-24 Richard Biener <rguenther@suse.de>
rguenth [Mon, 24 Nov 2014 09:24:50 +0000 (09:24 +0000)]
2014-11-24  Richard Biener  <rguenther@suse.de>

PR tree-optimization/55334
* function.h (struct function): Add last_clique member.
* tree-inline.c (remap_dependence_clique): New function.
(remap_gimple_op_r): Remap dependence cliques in MEM_REFs.
(copy_tree_body_r): Likewise.
(copy_cfg_body): Free dependence map.
(copy_gimple_seq_and_replace_locals): Likewise.
* tree-pretty-print.c (dump_generic_node): Dump
dependence info.
* tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info
to answer alias query.
* tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h,
tree-pretty-print.h and gimple-walk.h.
(struct variable_info): Add is_restrict_var flag and ruid
member.
(new_var_info): Initialize is_restrict_var.
(make_constraint_from_restrict): Likewise.
(create_variable_info_for): Exclude restricts from global vars
from new handling.
(intra_create_variable_infos): But not those from parameters.
(visit_loadstore): New function.
(maybe_set_dependence_info): Likewise.
(compute_dependence_clique): Likewise.
(compute_may_aliases): Call compute_dependence_clique.
* tree-data-ref.c (dr_analyze_indices): Copy dependence info
to fake MEM_REF.
(dr_may_alias_p): Use recorded dependence info to answer
alias query.
* tree-core.h (struct tree_base): Add clique, base struct in
union.
* tree.h (MR_DEPENDENCE_CLIQUE): New macro.
(MR_DEPENDENCE_BASE): Likewise.
* tree-inline.h (dependence_hasher): New hash-map kind.
(struct copy_body_data): Add dependence_map pointer.
* gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid
throwing away dependence info.
* tree-streamer-in.c (unpack_value_fields): Stream dependence info.
* tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise.

* gcc.dg/tree-ssa/restrict-5.c: New testcase.

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

9 years ago2014-11-24 Richard Biener <rguenther@suse.de>
rguenth [Mon, 24 Nov 2014 09:24:26 +0000 (09:24 +0000)]
2014-11-24  Richard Biener  <rguenther@suse.de>

PR tree-optimization/55334
* function.h (struct function): Add last_clique member.
* tree-inline.c (remap_dependence_clique): New function.
(remap_gimple_op_r): Remap dependence cliques in MEM_REFs.
(copy_tree_body_r): Likewise.
(copy_cfg_body): Free dependence map.
(copy_gimple_seq_and_replace_locals): Likewise.
* tree-pretty-print.c (dump_generic_node): Dump
dependence info.
* tree-ssa-alias.c (refs_may_alias_p_1): Use dependence info
to answer alias query.
* tree-ssa-structalias.c: Include tree-phinodes.h, ssa-iterators.h,
tree-pretty-print.h and gimple-walk.h.
(struct variable_info): Add is_restrict_var flag and ruid
member.
(new_var_info): Initialize is_restrict_var.
(make_constraint_from_restrict): Likewise.
(create_variable_info_for): Exclude restricts from global vars
from new handling.
(intra_create_variable_infos): But not those from parameters.
(visit_loadstore): New function.
(maybe_set_dependence_info): Likewise.
(compute_dependence_clique): Likewise.
(compute_may_aliases): Call compute_dependence_clique.
* tree-data-ref.c (dr_analyze_indices): Copy dependence info
to fake MEM_REF.
(dr_may_alias_p): Use recorded dependence info to answer
alias query.
* tree-core.h (struct tree_base): Add clique, base struct in
union.
* tree.h (MR_DEPENDENCE_CLIQUE): New macro.
(MR_DEPENDENCE_BASE): Likewise.
* tree-inline.h (dependence_hasher): New hash-map kind.
(struct copy_body_data): Add dependence_map pointer.
* gimple-fold.c (maybe_canonicalize_mem_ref_addr): Avoid
throwing away dependence info.
* tree-streamer-in.c (unpack_value_fields): Stream dependence info.
* tree-streamer-out.c (streamer_pack_tree_bitfields): Likewise.

* gcc.dg/tree-ssa/restrict-5.c: New testcase.

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

9 years ago * gcc-interface/Makefile.in (Cygwin/Mingw): Fix previous change.
ebotcazou [Mon, 24 Nov 2014 09:18:38 +0000 (09:18 +0000)]
* gcc-interface/Makefile.in (Cygwin/Mingw): Fix previous change.

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

9 years agoAdd missing entry
ebotcazou [Mon, 24 Nov 2014 08:47:41 +0000 (08:47 +0000)]
Add missing entry

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

9 years ago2014-11-24 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Mon, 24 Nov 2014 08:36:32 +0000 (08:36 +0000)]
2014-11-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/63905
* cp-tree.h (lang_decl_fn): Remove constructor_attr, destructor_attr.

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

9 years ago * gcc-interface/trans.c (build_return_expr): Use INIT_EXPR instead of
ebotcazou [Mon, 24 Nov 2014 08:34:01 +0000 (08:34 +0000)]
* gcc-interface/trans.c (build_return_expr): Use INIT_EXPR instead of
MODIFY_EXPR to assign to the return object.
(finalize_nrv_r): Adjust to above change.
(finalize_nrv_unc_r): Likewise.

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

9 years ago * gcc-interface/trans.c (push_range_check_info): Replace early test
ebotcazou [Mon, 24 Nov 2014 08:18:40 +0000 (08:18 +0000)]
* gcc-interface/trans.c (push_range_check_info): Replace early test
with assertion.
(Raise_Error_to_gnu): Do not call push_range_check_info if the loop
stack is empty.
* gcc-interface/utils.c (convert_to_fat_pointer): Fix formatting.
* gcc-interface/utils2.c (gnat_invariant_expr): Deal with padded types
and revert latest change.

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