platform/upstream/linaro-gcc.git
9 years agogcc/
olegendo [Thu, 26 Mar 2015 07:40:44 +0000 (07:40 +0000)]
gcc/
* config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
* config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.

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

9 years ago2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
meissner [Thu, 26 Mar 2015 04:07:21 +0000 (04:07 +0000)]
2015-03-25  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/65569
* config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
XXLXOR to create 0.0.  On pre-VSX systems make sure the constant
0.0 is correctly setup.
(extenddftf2_internal): Likewise.

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

9 years ago2015-03-25 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Thu, 26 Mar 2015 02:44:34 +0000 (02:44 +0000)]
2015-03-25 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/65541
* io/write.c (nml_write_obj): Convert '+' to '%' before emitting
object names in namelists.

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

9 years agolibgo: Fix go/runtime test failure on S390.
ian [Thu, 26 Mar 2015 00:39:45 +0000 (00:39 +0000)]
libgo: Fix go/runtime test failure on S390.

The tests run out of memory on 31-bit S390 systems because
it does not have split stacks.

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

9 years agoDaily bump.
gccadmin [Thu, 26 Mar 2015 00:16:10 +0000 (00:16 +0000)]
Daily bump.

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

9 years agoPR testsuite/65526
msebor [Wed, 25 Mar 2015 23:35:54 +0000 (23:35 +0000)]
PR testsuite/65526
* lib/target-supports.exp (check_effective_target_arm32): Fail early
when target isn't arm*-*-*-*.
(check_effective_target_arm_nothumb): Likewise.
(check_effective_target_arm_little_endian): Likewise.
(check_effective_target_arm_vect_no_misalign): Likewise.
(check_effective_target_aarch64_little_endian): Fail early if target
isn't aarch64*-*-*.

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

9 years agodiamonds are not valid execution threads for jump threading
spop [Wed, 25 Mar 2015 22:49:47 +0000 (22:49 +0000)]
diamonds are not valid execution threads for jump threading

PR tree-optimization/65177
* tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
(bb_in_bbs): New.
(duplicate_seme_region): Renamed duplicate_thread_path.  Redirect all
edges not adjacent on the path to the original code.

* gcc.dg/tree-ssa/ssa-dom-thread-10.c: New.

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

9 years ago * gcc.target/i386/sse-13.c: Include x86intrin.h and adjust #defines.
uros [Wed, 25 Mar 2015 21:56:11 +0000 (21:56 +0000)]
* gcc.target/i386/sse-13.c: Include x86intrin.h and adjust #defines.
* gcc.target/i386/sse-23.c: Do not explicitly include wmmintrin.h,
smmintrin.h and mm3dnow.h.

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

9 years ago PR go/65570
ian [Wed, 25 Mar 2015 21:19:01 +0000 (21:19 +0000)]
PR go/65570
libgo/Makefile.am: add runtime/cgo to list of standard packages

The runtime/cgo package is treated specially by the go tool.
It needs to know that it is always available for gccgo.

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

9 years ago PR c++/65558
mpolacek [Wed, 25 Mar 2015 20:08:05 +0000 (20:08 +0000)]
PR c++/65558
* name-lookup.c (handle_namespace_attrs): Ignore abi_tag attribute
on an anonymous namespace.

* g++.dg/cpp0x/pr65558.C: New test.

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

9 years ago PR c++/61670
mpolacek [Wed, 25 Mar 2015 20:06:24 +0000 (20:06 +0000)]
PR c++/61670
* class.c (remove_zero_width_bit_fields): Check for null DECL_SIZE.

* g++.dg/template/pr61670.C: New test.

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

9 years ago2015-03-25 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Wed, 25 Mar 2015 17:14:40 +0000 (17:14 +0000)]
2015-03-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/54987
* g++.dg/template/pr54987.C: New.

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

9 years agoconfig/ChangeLog:
uros [Wed, 25 Mar 2015 16:01:36 +0000 (16:01 +0000)]
config/ChangeLog:

PR bootstrap/65537
* bootstrap-lto-noplugin.mk: New build configuration.

gcc/ChangeLog:

PR bootstrap/65537
* doc/install.texi (Building a native compiler): Document new
bootstrap-lto-noplugin configuration.  Mention that bootstrap-lto
configuration assumes that the host supports the linker plugin.

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

9 years ago PR libstdc++/33394
alalaw01 [Wed, 25 Mar 2015 15:46:58 +0000 (15:46 +0000)]
PR libstdc++/33394
* testsuite/21_strings/basic_string/pthread33394.cc: Use
dg-additional-options.

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

9 years ago PR libgomp/64972
ktietz [Wed, 25 Mar 2015 15:05:02 +0000 (15:05 +0000)]
PR libgomp/64972
* oacc-parallel.c (GOACC_parallel): Use PRIu64 if available.
(GOACC_data_start): Likewise.
* target.c (gomp_map_vars): Likewise.

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

9 years ago2015-03-25 Richard Biener <rguenther@suse.de>
rguenth [Wed, 25 Mar 2015 12:54:12 +0000 (12:54 +0000)]
2015-03-25  Richard Biener  <rguenther@suse.de>

PR tree-optimization/62630
* gcc.dg/graphite/vect-pr43423.c: XFAIL.

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

9 years agogcc/
ienkovich [Wed, 25 Mar 2015 12:41:27 +0000 (12:41 +0000)]
gcc/

PR target/65508
* tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
chain for generated call.

gcc/testsuite/

PR target/65508
* gcc.target/i386/mpx/pr65508.c: New.

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

9 years ago2015-03-25 Richard Biener <rguenther@suse.de>
rguenth [Wed, 25 Mar 2015 12:07:10 +0000 (12:07 +0000)]
2015-03-25  Richard Biener  <rguenther@suse.de>

* passes.c (pass_manager::execute_early_local_passes): Guard
execution of pass_chkp_instrumentation_passes with
flag_check_pointer_bounds.
(pass_chkp_instrumentation_passes::gate): Likewise.

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

9 years agoFix vimrc file link creation.
marxin [Wed, 25 Mar 2015 12:05:22 +0000 (12:05 +0000)]
Fix vimrc file link creation.

* Makefile.in: Fix ln source location for vimrc file.
* Makefile.tpl: Likewise.

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

9 years agoFix PR65538.
marxin [Wed, 25 Mar 2015 11:47:04 +0000 (11:47 +0000)]
Fix PR65538.

PR tree-optimization/65538
* symbol-summary.h (function_summary::~function_summary):
Relese memory for allocated summaries.
(function_summary::release): New function.

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

9 years agoFix regression introduced at revision 221586.
mikael [Wed, 25 Mar 2015 10:15:46 +0000 (10:15 +0000)]
Fix regression introduced at revision 221586.

PR fortran/64952
PR fortran/65532
fortran/
* gfortran.h (struct gfc_namespace): New field 'types_resolved'.
* resolve.c (resolve_types): Return early if field 'types_resolved'
is set.  Set 'types_resolved' at the end.
testsuite/
* gfortran.dg/data_initialized_3.f90: New.

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

9 years ago PR lto/65515
jakub [Wed, 25 Mar 2015 09:58:18 +0000 (09:58 +0000)]
PR lto/65515
* lto-streamer-out.c (DFS::worklist): New struct.
(DFS::worklist_vec): New data member.
(DFS::next_dfs_num): Remove.
(DFS::DFS): Rewritten using worklist instead of recursion,
using most of code from DFS::DFS_write_tree.
(DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
pass it to DFS_write_tree calls.
(DFS::DFS_write_tree): Remove SINGLE_P argument, after
quick initial checks push it into worklist_vec and return.

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

9 years ago2015-03-25 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Wed, 25 Mar 2015 09:57:06 +0000 (09:57 +0000)]
2015-03-25  Paolo Carlini  <paolo.carlini@oracle.com>

PR libstdc++/65543
* include/std/istream (operator>>(basic_istream<>&&, _Tp&): Revert
thinko in r150387.
* include/std/ostream (operator<<(basic_ostream<>&&, const _Tp&):
Likewise.
* testsuite/27_io/rvalue_streams-2.cc: New.

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

9 years ago2015-03-25 Richard Biener <rguenther@suse.de>
rguenth [Wed, 25 Mar 2015 08:46:20 +0000 (08:46 +0000)]
2015-03-25  Richard Biener  <rguenther@suse.de>

PR middle-end/65519
* genmatch.c (expr::gen_transform): Re-write to avoid
using gimple_build.

* gnat.dg/specs/opt2.ads: New testcase.

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

9 years ago2015-03-25 Chung-Lin Tang <cltang@codesourcery.com>
cltang [Wed, 25 Mar 2015 08:32:17 +0000 (08:32 +0000)]
2015-03-25  Chung-Lin Tang  <cltang@codesourcery.com>

libgcc/
* config.host (nios2-*-linux*): Remove 'extra_parts' setting.

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

9 years ago * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
amker [Wed, 25 Mar 2015 05:58:19 +0000 (05:58 +0000)]
* doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.

gcc/testsuite/ChangeLog
* lib/target-supports.exp (arm_tune_string_ops_prefer_neon): New.
* gcc.target/arm/memset-inline-4.c: Skip for
arm_tune_string_ops_prefer_neon.
* gcc.target/arm/memset-inline-5.c: Ditto.
* gcc.target/arm/memset-inline-6.c: Ditto.
* gcc.target/arm/memset-inline-8.c: Ditto.
* gcc.target/arm/memset-inline-9.c: Ditto.

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

9 years ago * config/arm/arm.opt (print_tune_info): New option.
amker [Wed, 25 Mar 2015 05:53:55 +0000 (05:53 +0000)]
* config/arm/arm.opt (print_tune_info): New option.
* config/arm/arm.c (arm_print_tune_info): New function.
(arm_file_start): Call arm_print_tune_info.
* config/arm/arm-protos.h (struct tune_params): Add comment.
* doc/invoke.texi (@item -mprint-tune-info): New item.
(-mtune): mention it in ARM Option Summary.

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

9 years ago* config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
dj [Wed, 25 Mar 2015 05:00:15 +0000 (05:00 +0000)]
* config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
correct clause.

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

9 years agoDaily bump.
gccadmin [Wed, 25 Mar 2015 00:16:11 +0000 (00:16 +0000)]
Daily bump.

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

9 years agoIPA ICF: enhance hash value calculated in TU
marxin [Tue, 24 Mar 2015 21:51:08 +0000 (21:51 +0000)]
IPA ICF: enhance hash value calculated in TU

* ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
* ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
(sem_item::add_type): New function.
(sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
(sem_function::compare_polymorphic_p): Do not consider indirect calls.
(sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
(sem_function::equals_wpa): Fix typo.
* ipa-icf.h (sem_item::add_type): New function.
(symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
order.

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

9 years ago PR go/65417
ian [Tue, 24 Mar 2015 20:55:43 +0000 (20:55 +0000)]
PR go/65417
debug/elf: support reading debug info from 32-bit PPC objects

This is a backport of http://golang.org/7590 from the master
Go library.

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

9 years ago PR go/65462
ian [Tue, 24 Mar 2015 19:50:31 +0000 (19:50 +0000)]
PR go/65462
cmd: Fix dependencies for 'go get' with gccgo

Problem described in GCC BZ 65462.
Generate the list of the standard GO package names based on what was built into libgo in the libgo Makefile.
Change the var name from reqPkgSrc to reqStdPkgSrc to clarify it only affects standard GO packages.
Skip the attempted loading of a package only if it is a standard GO package and the flag is set indicating its source is not required to be available.
This requires a corresponding change to gotools to build and link in the new file containing the list of standard GO package names that was generated by the libgo Makefile.

gotools/:
PR go/65462
* Makefile.am (go_cmd_go_files): Add $(libgodir)/zstdpkglist.go.
* Makefile.in: Rebuild.

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

9 years ago PR c++/65046
jason [Tue, 24 Mar 2015 19:40:44 +0000 (19:40 +0000)]
PR c++/65046
* cp-tree.h (NAMESPACE_IS_INLINE): Remove.
* parser.c (cp_parser_namespace_definition): Don't set it.
* name-lookup.c (handle_namespace_attrs): Check
DECL_NAMESPACE_ASSOCIATIONS instead.

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

9 years ago PR c++/65498
jason [Tue, 24 Mar 2015 19:38:28 +0000 (19:38 +0000)]
PR c++/65498
* pt.c (get_mostly_instantiated_function_type): Just return the
type of the partially instantiated template in DECL_TI_TEMPLATE.

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

9 years ago2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 24 Mar 2015 17:22:27 +0000 (17:22 +0000)]
2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/58923
* g++.dg/other/virtual3.C: New.

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

9 years ago * fr.po: Update.
jsm28 [Tue, 24 Mar 2015 16:47:21 +0000 (16:47 +0000)]
* fr.po: Update.

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

9 years ago2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 24 Mar 2015 16:43:33 +0000 (16:43 +0000)]
2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60130
* g++.dg/cpp0x/vt-60130.C: New.

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

9 years ago2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 24 Mar 2015 15:58:05 +0000 (15:58 +0000)]
2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/61971
* g++.dg/warn/Warray-bounds-7.C: New.

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

9 years ago PR libstdc++/33394
redi [Tue, 24 Mar 2015 14:47:32 +0000 (14:47 +0000)]
PR libstdc++/33394
* testsuite/21_strings/basic_string/pthread33394.cc: Add test.

# Auto-generated commit message above this line, original below.
PR libstdc++/33394
* testsuite/21_strings/basic_string/pthread33394.cc: Add test.

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

9 years ago2015-03-24 Gary Dismukes <dismukes@adacore.com>
charlet [Tue, 24 Mar 2015 12:26:10 +0000 (12:26 +0000)]
2015-03-24  Gary Dismukes  <dismukes@adacore.com>

* sem_ch3.adb: Minor typo fix (missing paren).

2015-03-24  Robert Dewar  <dewar@adacore.com>

* sinfo.ads: Update comment.

2015-03-24  Robert Dewar  <dewar@adacore.com>

* exp_attr.adb: Add entry for typ'Deref.
* sem_attr.adb (Deref): New GNAT attribute.
* sem_attr.ads: Add entry for new GNAT attribute Deref.
* snames.ads-tmpl: Add entries for new attribute Deref.

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

9 years ago2015-03-24 Ed Schonberg <schonberg@adacore.com>
charlet [Tue, 24 Mar 2015 12:21:37 +0000 (12:21 +0000)]
2015-03-24  Ed Schonberg  <schonberg@adacore.com>

* sem_ch13.adb (Rep_Item_Too_Early): allow pragma Convention
on generic type.

2015-03-24  Gary Dismukes  <dismukes@adacore.com>

* inline.adb: Minor typo fix.

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

9 years ago * doc/gnat_ugn/building_executable_programs_with_gnat.rst,
charlet [Tue, 24 Mar 2015 11:49:20 +0000 (11:49 +0000)]
* doc/gnat_ugn/building_executable_programs_with_gnat.rst,
doc/gnat_ugn/gnat_utility_programs.rst
doc/gnat_rm/implementation_defined_attributes.rst
doc/gnat_rm/implementation_defined_pragmas.rst
doc/gnat_rm/representation_clauses_and_pragmas.rst
doc/gnat_rm/about_this_guide.rst
doc/gnat_rm/implementation_of_ada_2012_features.rst: Doc improvements.
* gnat_rm.texi, gnat_ugn.texi: Regenerate.

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

9 years ago2015-03-24 Andre Vehreschild <vehre@gmx.de>
vehre [Tue, 24 Mar 2015 11:47:45 +0000 (11:47 +0000)]
2015-03-24  Andre Vehreschild  <vehre@gmx.de>

PR fortran/55901
* trans-expr.c (gfc_conv_structure): Fixed indendation.
Using integer_zero_node now instead of explicitly
constructing a integer constant zero node.
(gfc_conv_derived_to_class): Add handling of _len component,
i.e., when the rhs has a string_length then assign that to
class' _len, else assign 0.
(gfc_conv_intrinsic_to_class): Likewise.

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

9 years ago2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 24 Mar 2015 11:42:26 +0000 (11:42 +0000)]
2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60067
* g++.dg/template/defarg18.C: New.

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

9 years ago2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 24 Mar 2015 11:42:11 +0000 (11:42 +0000)]
2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/60067
* g++.dg/template/defarg18.C: New.

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

9 years ago2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 24 Mar 2015 10:51:38 +0000 (10:51 +0000)]
2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59988
* g++.dg/cpp0x/vt-59988.C: New.

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

9 years ago2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 24 Mar 2015 10:50:36 +0000 (10:50 +0000)]
2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59988
* g++.dg/cpp0x/vt-59988.C: New.

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

9 years ago PR tree-optimization/65533
jakub [Tue, 24 Mar 2015 10:45:09 +0000 (10:45 +0000)]
PR tree-optimization/65533
* tree-vect-slp.c (vect_build_slp_tree): Before re-trying
with swapped operands, call vect_free_slp_tree on
SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
vector.

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

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

9 years agogcc/fortran/ChangeLog
vehre [Tue, 24 Mar 2015 10:28:48 +0000 (10:28 +0000)]
gcc/fortran/ChangeLog

2015-03-24  Andre Vehreschild  <vehre@gmx.de>

PR fortran/64787
PR fortran/57456
PR fortran/63230
* class.c (gfc_add_component_ref):  Free no longer needed
ref-chains to prevent memory loss.
(find_intrinsic_vtab): For deferred length char arrays or
unlimited polymorphic objects, store the size in bytes of one
character in the size component of the vtab.
* gfortran.h: Added gfc_add_len_component () define.
* trans-array.c (gfc_trans_create_temp_array): Switched to new
function name for getting a class' vtab's field.
(build_class_array_ref): Likewise.
(gfc_array_init_size): Using the size information from allocate
more consequently now, i.e., the typespec of the entity to
allocate is no longer needed.  This is to address the last open
comment in PR fortran/57456.
(gfc_array_allocate): Likewise.
(structure_alloc_comps): gfc_copy_class_to_class () needs to
know whether the class is unlimited polymorphic.
* trans-array.h: Changed interface of gfc_array_allocate () to
reflect the no longer needed typespec.
* trans-expr.c (gfc_find_and_cut_at_last_class_ref): New.
(gfc_reset_len): New.
(gfc_get_class_array_ref): Switch to new function name for
getting a class' vtab's field.
(gfc_copy_class_to_class):  Added flag to know whether the class
to copy is unlimited polymorphic.  Adding _len dependent code
then, which calls ->vptr->copy () with four arguments adding
the length information ->vptr->copy(from, to, from_len, to_cap).
(gfc_conv_procedure_call): Switch to new function name for
getting a class' vtab's field.
(alloc_scalar_allocatable_for_assignment): Use the string_length
as computed by gfc_conv_expr and not the statically backend_decl
which may be incorrect when ref-ing.
(gfc_trans_assignment_1): Use the string_length variable and
not the rse.string_length.  The former has been computed more
generally.
* trans-intrinsic.c (gfc_conv_intrinsic_sizeof): Switch to new
function name for getting a class' vtab's field.
(gfc_conv_intrinsic_storage_size): Likewise.
(gfc_conv_intrinsic_transfer): Likewise.
* trans-stmt.c (gfc_trans_allocate): Restructured to evaluate
source=expr3 only once before the loop over the objects to
allocate, when the objects are not arrays. Doing correct _len
initialization and calling of vptr->copy () fixing PR 64787.
(gfc_trans_deallocate): Reseting _len to 0, preventing future
errors.
* trans.c (gfc_build_array_ref): Switch to new function name
for getting a class' vtab's field.
(gfc_add_comp_finalizer_call): Likewise.
* trans.h: Define the prototypes for the gfc_class_vtab_*_get ()
and gfc_vptr_*_get () functions.
Added gfc_find_and_cut_at_last_class_ref () and
gfc_reset_len () routine prototype.  Added flag to
gfc_copy_class_to_class () prototype to signal an unlimited
polymorphic entity to copy.

gcc/testsuite/ChangeLog

2015-03-24  Andre Vehreschild  <vehre@gmx.de>

* gfortran.dg/allocate_alloc_opt_13.f90: Added tests for
source= and mold= expressions functionality.
* gfortran.dg/allocate_class_4.f90: New test.
* gfortran.dg/unlimited_polymorphic_20.f90: Added test whether
copying an unlimited polymorhpic object containing a char array
to another unlimited polymorphic object respects the _len
component.
* gfortran.dg/unlimited_polymorphic_22.f90: Extended to check
whether deferred length char array allocate works, unlimited
polymorphic object allocation from a string works and if
allocating an array of deferred length strings works.
* gfortran.dg/unlimited_polymorphic_24.f03: New test.

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

9 years ago2015-03-24 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Tue, 24 Mar 2015 10:24:33 +0000 (10:24 +0000)]
2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/65513
* g++.dg/cpp0x/constexpr-array11.C: New.

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

9 years ago2015-03-24 Richard Biener <rguenther@suse.de>
rguenth [Tue, 24 Mar 2015 09:31:48 +0000 (09:31 +0000)]
2015-03-24  Richard Biener  <rguenther@suse.de>

PR middle-end/65517
* tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
for fixup if necessary.

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

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

9 years ago2015-03-24 Tobias Burnus <burnus@net-b.de>
burnus [Tue, 24 Mar 2015 07:14:22 +0000 (07:14 +0000)]
2015-03-24  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coindexed_1.f90: Moved from
        gfortran.dg/coarray/coindexed_3.f90; added dg-options.

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

9 years ago2015-03-24 Iain Sandoe <iain@codesourcery.com>
burnus [Tue, 24 Mar 2015 07:04:51 +0000 (07:04 +0000)]
2015-03-24  Iain Sandoe  <iain@codesourcery.com>
            Tobias Burnus  <burnus@net-b.de>

        * gfortran.texi (_gfortran_caf_sync_memory): Improve wording.

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

9 years ago2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
sandra [Tue, 24 Mar 2015 02:48:05 +0000 (02:48 +0000)]
2015-03-23  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/extend.texi (Function Attributes): Add @cindex entries
for all attributes and regularize their format.  Delete text
about long-obsolete 68HC11 and 68HC12 targets.  Move misplaced
information about "eightbit_data", "tiny_data", and "model"
variable attributes to the Variable Attributes section.  Fix
some obvious typos and copy-editing issues.
(Variable Attributes, Type Attributes): Likewise add/fix
@cindex entries for all attributes.

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

9 years agoDaily bump.
gccadmin [Tue, 24 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago2015-03-23 Jakub Jelinek <jakub@redhat.com>
jakub [Mon, 23 Mar 2015 20:04:43 +0000 (20:04 +0000)]
2015-03-23  Jakub Jelinek  <jakub@redhat.com>

PR testsuite/65506
* gcc.dg/pr29215.c: Dump and analyze ccp1 dump instead of
gimple dump.

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

9 years ago PR target/65523
jakub [Mon, 23 Mar 2015 20:03:50 +0000 (20:03 +0000)]
PR target/65523
* tree-chkp.c (chkp_build_returned_bound): Ignore
ERF_RETURNS_ARG calls if they have fewer than needed arguments.

* gcc.target/i386/pr65523.c: New test.

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

9 years ago PR ipa/65475
jakub [Mon, 23 Mar 2015 19:51:51 +0000 (19:51 +0000)]
PR ipa/65475
* g++.dg/lto/pr65475_0.C: Use dg-lto-options instead of
dg-options.
* g++.dg/lto/pr65475b_0.C: Likewise.

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

9 years agogcc/
olegendo [Mon, 23 Mar 2015 18:57:58 +0000 (18:57 +0000)]
gcc/
PR target/65505
* config/sh/predicates.md (simple_mem_operand,
displacement_mem_operand): Add test for reg.
(short_displacement_mem_operand): Test for displacement_mem_operand
before invoking sh_disp_addr_displacement.
* config/sh/constraints.md (Sdd, Sra): Simplify.
* config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
Remove redundant displacement_mem_operand tests.

gcc/testsuite/
PR target/65505
* gcc.target/sh/torture/pr65505.c: New.

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

9 years ago PR target/65296
gjl [Mon, 23 Mar 2015 18:19:01 +0000 (18:19 +0000)]
PR target/65296
* config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
the same -mmcu=MCU more than once.

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

9 years ago2015-03-23 Martin Sebor <msebor@redhat.com>
msebor [Mon, 23 Mar 2015 17:37:25 +0000 (17:37 +0000)]
2015-03-23  Martin Sebor  <msebor@redhat.com>

PR testsuite/63175
* gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a-pr63175.c: Scan
assembly for lvx in addition to lxv.

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

9 years ago PR libstdc++/64967
redi [Mon, 23 Mar 2015 16:47:18 +0000 (16:47 +0000)]
PR libstdc++/64967
* acinclude.m4: Disable dual ABI when gnu-versioned-namespace in use.
* configure: Regenerate.
* src/c++11/compatibility-c++0x.cc (error_category), generic_category,
system_category): Use macros for versioned namespace.
* src/c++11/futex.cc: Add missing end macro for versioned namespace.

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

9 years ago PR bootstrap/65522
jakub [Mon, 23 Mar 2015 15:49:02 +0000 (15:49 +0000)]
PR bootstrap/65522
* ipa-devirt.c: Remove duplicate demangle.h include.

* adadecode.c (ada_demangle): Guard with IN_RTS instead of IN_GCC.

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

9 years ago * fr.po: Update.
jsm28 [Mon, 23 Mar 2015 15:34:57 +0000 (15:34 +0000)]
* fr.po: Update.

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

9 years ago PR target/65504
jakub [Mon, 23 Mar 2015 15:31:59 +0000 (15:31 +0000)]
PR target/65504
* config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
on the pseudo.
(expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
REG_POINTER on *destptr after adjusting it for prologue size.

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

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

9 years ago PR ipa/65521
jakub [Mon, 23 Mar 2015 15:17:20 +0000 (15:17 +0000)]
PR ipa/65521
* ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
ultimate_alias_target ()->order ints instead of
ultimate_alias_target () pointers.

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

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

9 years ago2015-03-23 Richard Biener <rguenther@suse.de>
rguenth [Mon, 23 Mar 2015 14:59:57 +0000 (14:59 +0000)]
2015-03-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/65518
* tree-vect-stmts.c (vectorizable_load): Reject single-element
interleaving cases we generate absymal code for.

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

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

9 years ago2015-03-23 Christophe Lyon <christophe.lyon@linaro.org>
clyon [Mon, 23 Mar 2015 13:43:22 +0000 (13:43 +0000)]
2015-03-23  Christophe Lyon  <christophe.lyon@linaro.org>

PR sanitizer/59009
* sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry pick
upstream r230324.
* sanitizer_common/sanitizer_platform.h: Likewise.
* sanitizer_common/sanitizer_common_syscalls.inc: Likewise.

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

9 years ago2015-03-23 Richard Biener <rguenther@suse.de>
rguenth [Mon, 23 Mar 2015 12:47:54 +0000 (12:47 +0000)]
2015-03-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/65494
* tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
matches here.
(vect_analyze_slp_instance): But do that here, always and once.

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

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

9 years ago[expmed][trivial] Fix comment about multiplying by T-1 and adding T.
ktkachov [Mon, 23 Mar 2015 09:16:49 +0000 (09:16 +0000)]
[expmed][trivial] Fix comment about multiplying by T-1 and adding T.

* expmed.c (synth_mult): Fix comment about multiplying by T-1 and
adding T or multiplying by T+1 and subracting T.

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

9 years ago PR preprocessor/65238
jakub [Mon, 23 Mar 2015 08:02:39 +0000 (08:02 +0000)]
PR preprocessor/65238
* internal.h (_cpp_scan_out_logical_line): Add third argument.
* directives.c (prepare_directive_trad): Pass false to it.
* traditional.c (_cpp_read_logical_line_trad,
_cpp_create_trad_definition): Likewise.
(struct fun_macro): Add paramc field.
(fun_like_macro): New function.
(maybe_start_funlike): Handle NODE_BUILTIN macros.  Initialize
macro->paramc field.
(save_argument): Use macro->paramc instead of
macro->node->value.macro->paramc.
(push_replacement_text): Formatting fix.
(recursive_macro): Use fun_like_macro helper.
(_cpp_scan_out_logical_line): Likewise.  Add BUILTIN_MACRO_ARG
argument.  Initialize fmacro.paramc field.  Handle builtin
function-like macros.

* c-c++-common/cpp/pr65238-1.c: New test.
* gcc.dg/cpp/pr65238-2.c: New test.
* gcc.dg/cpp/trad/pr65238-3.c: New test.
* gcc.dg/cpp/trad/pr65238-4.c: New test.

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

9 years ago2015-03-23 Paul Thomas <pault@gcc.gnu.org>
mikael [Mon, 23 Mar 2015 07:53:31 +0000 (07:53 +0000)]
2015-03-23  Paul Thomas  <pault@gcc.gnu.org>
    Mikael Morin  <mikael@gcc.gnu.org>

PR fortran/64952
fortran/
* gfortran.h (struct symbol_attribute) : New field
'array_outer_dependency'.
* trans.h (struct gfc_ss_info): New field 'array_outer_dependency'.
* module.c (enum ab_attribute): New value AB_ARRAY_OUTER_DEPENDENCY.
(attr_bits): Append same value to initializer.
(mio_symbol_attribute): Handle 'array_outer_dependency' attr
in module read and write.
* resolve.c (update_current_proc_outer_array_dependency): New function.
(resolve_function, resolve_call): Add code to update current procedure's
'array_outer_dependency' attribute.
(resolve_variable): Mark current procedure with attribute
array_outer_dependency if the variable is an array coming from outside
the current namespace.
(resolve_fl_procedure): Mark a procedure without body with attribute
'array_outer_dependency'.
* trans-array.c (gfc_conv_resolve_dependencies): If any ss is
marked as 'array_outer_dependency' generate a temporary.
(gfc_walk_function_expr): If the function may reference external arrays,
mark the head gfc_ss with flag 'array_outer_dependency'.
testsuite/
* gfortran.dg/elemental_dependency_4.f90: New.
* gfortran.dg/elemental_dependency_5.f90: New.

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

9 years ago PR rtl-optimization/64317
law [Mon, 23 Mar 2015 05:21:04 +0000 (05:21 +0000)]
   PR rtl-optimization/64317
        * Makefile.in (OBJS): Add gcse-common.c
        * gcse.c: Include gcse-common.h
        (struct modify_pair_s): Move structure definition to gcse-common.h
        (compute_transp): Move function to gcse-common.c.
        (canon_list_insert): Similarly.
        (record_last_mem_set_info): Break out some code and put it into
        gcse-common.c.  Call into the new common code.
        (compute_local_properties): Pass additional arguments to compute_transp.
        * postreload-gcse.c: Include gcse-common.h and df.h
        (modify_mem_list_set, blocks_with_calls): New variables.
        (modify_mem_list, canon_modify_mem_list, transp): Likewise.
        (get_bb_avail_insn): Pass in the expression index too.
        (alloc_mem): Allocate memory for the new bitmaps and lists.
        (free_mem): Free memory for the new bitmaps and lists.
        (insert_expr_in_table): Record a bitmap index for each entry we
        add to the table.
        (record_last_mem_set_info): Call into common code in gcse-common.c.
        (get_bb_avail_insn): If no available insn was found in the requested
        BB.  If BB has a single predecessor, see if the expression is
        transparent in BB and available in that single predecessor.
        (compute_expr_transp): New wrapper for compute_transp.
        (eliminate_partially_redundant_load): Pass expression's bitmap_index
        to get_bb_avail_insn.  Compute next_pred_bb_end a bit later.
        (gcse_after_reload_main): If there are elements in the hash table,
        then compute transparency for all the elements in the hash table.
        * gcse-common.h: New file.
        * gcse-common.c: New file.

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

9 years agoIndex: gcc/doc/extend.texi
sandra [Mon, 23 Mar 2015 01:12:06 +0000 (01:12 +0000)]
Index: gcc/doc/extend.texi
===================================================================
--- gcc/doc/extend.texi (revision 221558)
+++ gcc/doc/extend.texi (working copy)
@@ -8916,19 +8916,19 @@ GCC provides support for the following b
 is enabled. Cilk Plus can be enabled using the @option{-fcilkplus} flag.

 @itemize @bullet
-@item __sec_implicit_index
-@item __sec_reduce
-@item __sec_reduce_add
-@item __sec_reduce_all_nonzero
-@item __sec_reduce_all_zero
-@item __sec_reduce_any_nonzero
-@item __sec_reduce_any_zero
-@item __sec_reduce_max
-@item __sec_reduce_min
-@item __sec_reduce_max_ind
-@item __sec_reduce_min_ind
-@item __sec_reduce_mul
-@item __sec_reduce_mutating
+@item @code{__sec_implicit_index}
+@item @code{__sec_reduce}
+@item @code{__sec_reduce_add}
+@item @code{__sec_reduce_all_nonzero}
+@item @code{__sec_reduce_all_zero}
+@item @code{__sec_reduce_any_nonzero}
+@item @code{__sec_reduce_any_zero}
+@item @code{__sec_reduce_max}
+@item @code{__sec_reduce_min}
+@item @code{__sec_reduce_max_ind}
+@item @code{__sec_reduce_min_ind}
+@item @code{__sec_reduce_mul}
+@item @code{__sec_reduce_mutating}
 @end itemize

 Further details and examples about these built-in functions are described

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

9 years ago PR ipa/65475
hubicka [Mon, 23 Mar 2015 00:17:07 +0000 (00:17 +0000)]
PR ipa/65475
* ipa-devirt.c: Include demangle.h
(odr_type_d): Add field rtti_broken.
(odr_subtypes_equivalent_p): Do not require name to match.
(compare_virtual_tables): Fix typo; if type already has ODR violation,
bypass the tests; be ready for function referneces in vtables that are
not DECL_VIRTUAL; make warnings to be OPT_Wodr.
(warn_odr): Give up for nameless types.
(warn_types_mismatch): Report mismatch in mangled names;
report mismatch in anonymous namespaces; look into component types to
give useful error; report when mismatch is dragged in from other ODR
type.
(odr_types_equivalent_p): Match types for being polymorphic; avoid
duplicated diagnostics.
(add_type_duplicate): Reorder checks so more informative ones come
first; fix typo; do not output "the extra base is defined here" when
we did not warn.
(BINFO_N_BASE_BINFOS): Relax sanity check.
* g++.dg/lto/pr65475b_0.C: New testcase.
* g++.dg/lto/pr65475b_1.C: New testcase.
* g++.dg/lto/pr65475c_0.C: New testcase.
* g++.dg/lto/pr65475c_1.C: New testcase.

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

9 years agoDaily bump.
gccadmin [Mon, 23 Mar 2015 00:16:16 +0000 (00:16 +0000)]
Daily bump.

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

9 years agoSpeed-up def_builtin_const (ix86_valid_target_attribute).
marxin [Sun, 22 Mar 2015 22:50:00 +0000 (22:50 +0000)]
Speed-up def_builtin_const (ix86_valid_target_attribute).

* config/i386/i386.c (def_builtin): Set deferred_isa_values for
masks that can potentially include a builtin.
(ix86_add_new_builtins): Introduce fast filter for isa values
that cannot trigger builtin inclusion.

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

9 years agoIPA ICF: include hash values of references.
marxin [Sun, 22 Mar 2015 22:47:06 +0000 (22:47 +0000)]
IPA ICF: include hash values of references.

* ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
(sem_item::update_hash_by_local_refs): Likewise.
(sem_variable::get_hash): Empty line is fixed.
(sem_item_optimizer::execute): Include adding of hash references.
(sem_item_optimizer::update_hash_by_addr_refs): New function.
(sem_item_optimizer::build_hash_based_classes): Use local hash.
* ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
(sem_item::update_hash_by_local_refs): Likewise.

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

9 years ago2015-03-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sun, 22 Mar 2015 21:37:13 +0000 (21:37 +0000)]
2015-03-22 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/59513
* gfortran.texi (Read/Write after EOF marker): New information.

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

9 years ago PR ipa/65502
hubicka [Sun, 22 Mar 2015 21:10:24 +0000 (21:10 +0000)]
PR ipa/65502
* ipa-comdats.c (enqueue_references): Walk through thunks.
(ipa_comdats): Likewise.
(set_comdat_group_1): New function.

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

9 years agoadd forgoten entry.
hubicka [Sun, 22 Mar 2015 21:09:16 +0000 (21:09 +0000)]
add forgoten entry.

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

9 years ago2015-03-22 Jerry DeLisle <jvdelisle@gcc.gnu.org>
jvdelisle [Sun, 22 Mar 2015 18:42:52 +0000 (18:42 +0000)]
2015-03-22 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

PR libgfortran/59513
* io/transfer.c (data_transfer_init): Do not error for
-std=legacy.

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

9 years ago * doc/contrib.texi (Contributors): Update entry for Danny Smith.
gerald [Sun, 22 Mar 2015 17:08:00 +0000 (17:08 +0000)]
* doc/contrib.texi (Contributors): Update entry for Danny Smith.

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

9 years ago2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
sandra [Sun, 22 Mar 2015 02:39:24 +0000 (02:39 +0000)]
2015-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
    Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
function parameter declaration.
* config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
Update arguments to nios2_adjust_call_address().
(sibcall_internal): Rename from *sibcall.
(sibcall_value_internal): Rename from *sibcall_value.
* config/nios2/nios2.c (nios2_emit_add_constant): New function.
(nios2_large_got_address): Add target temp reg parameter.
(nios2_got_address): Adjust call to nios2_large_got_address, add
force_reg around it.
(nios2_load_pic_address): Add target temp reg parameter, replace call
to nios2_got_address with corresponding code.
(nios2_legitimize_constant_address): Update call to
nios2_load_pic_address.
(nios2_adjust_call_address): Add temp reg parameter, update PIC case
to use temp reg for PIC loading purposes.
(nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
(TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
(TARGET_ASM_OUTPUT_MI_THUNK): Likewise.

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

9 years agoDaily bump.
gccadmin [Sun, 22 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
sandra [Sat, 21 Mar 2015 23:30:54 +0000 (23:30 +0000)]
2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/invoke.texi (-fno-diagnostics-show-caret): Fix
usage of "the @option{...}".
(-Wopenmp-simd): Likewise.
(-fsanitize-recover): Likewise.
(-fsanitize-undefined-trap-on-error): Likewise.
(-flto): Likewise.
(tracer-dynamic-coverage-feedback): Likewise.
(reorder-block-duplicate-feedback): Likewise.
(loop-unroll-jam-size): Likewise.
(-B): Likewise.
(-I-): Likewise.
(-mabs=legacy): Likewise.
(-mupper-regs-df): Likewise.
(-mupper-regs-sf): Likewise.
(-mpointers-to-nested-functions): Likewise.

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

9 years ago2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
sandra [Sat, 21 Mar 2015 20:34:46 +0000 (20:34 +0000)]
2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/extend.texi (Cilk Plus Builtins): Add markup.

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

9 years ago2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
sandra [Sat, 21 Mar 2015 18:40:55 +0000 (18:40 +0000)]
2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
additional index entries and cross-references.
(-fchkp-check-incomplete-type): Likewise.
(-fchkp-first-field-has-own-bounds): Likewise.
(-fchkp-narrow-to-innermost-array): Likewise.
(-fchkp-use-fast-string-functions): Likewise.
(-fchkp-use-nochk-string-functions): Likewise.
(-fchkp-use-static-const-bounds): Likewise.
(-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
(-fchkp-instrument-marked-only): Likewise.
(-fchkp-use-wrappers): Likewise.
(-static-libmpx): Likewise.
(-static-libmpxwrappers): Likewise.
* doc/extend.texi (bnd_legacy): Likewise.
(bnd_instrument): Likewise.
(bnd_variable_size): Likewise.
(Pointer Bounds Checker builtins): Likewise.

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

9 years ago * testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
danglin [Sat, 21 Mar 2015 16:19:43 +0000 (16:19 +0000)]
* testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
hppa*-*-hpux*.

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

9 years agoFix ChangeLog year
mikael [Sat, 21 Mar 2015 15:04:47 +0000 (15:04 +0000)]
Fix ChangeLog year

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

9 years agoFix ChangeLog formatting
mikael [Sat, 21 Mar 2015 15:00:30 +0000 (15:00 +0000)]
Fix ChangeLog formatting

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

9 years agoPut @{xxx} in one line
hjl [Sat, 21 Mar 2015 14:26:52 +0000 (14:26 +0000)]
Put @{xxx} in one line

* gfortran.texi (_gfortran_caf_sync_memory): Put @{xxx} in one
line.

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

9 years agoMark omp thread functions as parallelized
vries [Sat, 21 Mar 2015 10:14:10 +0000 (10:14 +0000)]
Mark omp thread functions as parallelized

2015-03-21  Tom de Vries  <tom@codesourcery.com>

PR tree-optimization/65458
* cgraph.c (cgraph_node::dump): Handle parallelized_function field.
* cgraph.h (cgraph_node): Add parallelized_function field.
* lto-cgraph.c (lto_output_node): Write parallelized_function field.
(input_overwrite_node): Read parallelized_function field.
* omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
parallelized_function on cgraph_node for child_fn.
* tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
Remove include of gt-tree-parloops.h.
(parallelized_functions): Remove static variable.
(parallelized_function_p): Rewrite using parallelized_function field of
cgraph_node.
(create_loop_fn): Remove adding to parallelized_functions.
* Makefile.in (GTFILES): Remove tree-parloops.c

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

9 years ago2015-03-21 Tobias Burnus <burnus@net-b.de>
burnus [Sat, 21 Mar 2015 08:31:17 +0000 (08:31 +0000)]
2015-03-21  Tobias Burnus  <burnus@net-b.de>

        * gfortran.texi (_gfortran_caf_sync_all,
        * _gfortran_caf_sync_images,
        _gfortran_caf_sync_memory, _gfortran_caf_error_stop,
        _gfortran_caf_error_stop_str, _gfortran_caf_atomic_define,
        _gfortran_caf_atomic_ref, _gfortran_caf_atomic_cas,
        _gfortran_caf_atomic_op): New sections.

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

9 years ago2015-03-21 Tobias Burnus <burnus@net-b.de>
burnus [Sat, 21 Mar 2015 08:29:40 +0000 (08:29 +0000)]
2015-03-21  Tobias Burnus  <burnus@net-b.de>

        * trans-expr.c (gfc_get_tree_for_caf_expr): Reject unimplemented
        coindexed coarray accesses.

2015-03-21  Tobias Burnus  <burnus@net-b.de>

        * gfortran.dg/coarray_38.f90: New.
        * gfortran.dg/coarray_39.f90: New.
        * gfortran.dg/coarray/coindexed_3.f90: Add dg-error, turn into
        compile test.

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

9 years agoDaily bump.
gccadmin [Sat, 21 Mar 2015 00:16:12 +0000 (00:16 +0000)]
Daily bump.

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

9 years ago PR c++/65398
mpolacek [Fri, 20 Mar 2015 21:53:40 +0000 (21:53 +0000)]
PR c++/65398
* constexpr.c (cxx_fold_indirect_ref): Transform *(&A[i] p+ j) into
A[i + j].

* g++.dg/cpp0x/pr65398.C: New test.

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

9 years ago PR ipa/65475
hubicka [Fri, 20 Mar 2015 18:19:18 +0000 (18:19 +0000)]
PR ipa/65475
* ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
non-polymorphic
* g++.dg/lto/pr65475_0.C: New testcase.
* g++.dg/lto/pr65475_1.C: New testcase.

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

9 years ago2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
vmakarov [Fri, 20 Mar 2015 17:43:48 +0000 (17:43 +0000)]
2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/64366
* lra.c (lra_update_insn_regno_info): Consider regs in
CALL_INSN_FUNCTION_USAGE memory.

2015-03-20  Vladimir Makarov  <vmakarov@redhat.com>

PR rtl-optimization/64366
* gcc.target/sh/pr64366.c: New.

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

9 years ago2015-03-20 Paolo Carlini <paolo.carlini@oracle.com>
paolo [Fri, 20 Mar 2015 17:26:32 +0000 (17:26 +0000)]
2015-03-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/48324
* g++.dg/cpp0x/constexpr-48324.C: New.

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