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

From-SVN: r221648

9 years agoIPA ICF: enhance hash value calculated in TU
Jan Hubicka [Tue, 24 Mar 2015 21:51:08 +0000 (22:51 +0100)]
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.

Co-Authored-By: Martin Liska <mliska@suse.cz>
From-SVN: r221645

9 years agore PR go/65417 (debug/elf: lacks support for PPC relocations)
Ian Lance Taylor [Tue, 24 Mar 2015 20:55:43 +0000 (20:55 +0000)]
re PR go/65417 (debug/elf: lacks support for PPC relocations)

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.

From-SVN: r221644

9 years agore PR go/65462 (Use of 'go get' with gccgo is not finding dependencies correctly)
Ian Lance Taylor [Tue, 24 Mar 2015 19:50:31 +0000 (19:50 +0000)]
re PR go/65462 (Use of 'go get' with gccgo is not finding dependencies correctly)

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.

From-SVN: r221643

9 years agore PR c++/65046 (-Wabi-tag doesn't warn about variables or function return types)
Jason Merrill [Tue, 24 Mar 2015 19:40:44 +0000 (15:40 -0400)]
re PR c++/65046 (-Wabi-tag doesn't warn about variables or function return types)

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.

From-SVN: r221642

9 years agore PR c++/65498 (ICE in cxx_eval_call_expression when using __func__ inside dependent...
Jason Merrill [Tue, 24 Mar 2015 19:38:28 +0000 (15:38 -0400)]
re PR c++/65498 (ICE in cxx_eval_call_expression when using __func__ inside dependent context)

PR c++/65498
* pt.c (get_mostly_instantiated_function_type): Just return the
type of the partially instantiated template in DECL_TI_TEMPLATE.

From-SVN: r221641

9 years agore PR c++/58923 (g++ does not use provided conversion function for implicit conversio...
Paolo Carlini [Tue, 24 Mar 2015 17:22:27 +0000 (17:22 +0000)]
re PR c++/58923 (g++ does not use provided conversion function for implicit conversion to another type)

2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r221640

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

From-SVN: r221638

9 years agore PR c++/60130 (Sorry, unimplemented: mangling argument_pack_select)
Paolo Carlini [Tue, 24 Mar 2015 16:43:33 +0000 (16:43 +0000)]
re PR c++/60130 (Sorry, unimplemented: mangling argument_pack_select)

2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r221637

9 years agore PR c++/61971 (array subscript is above array bounds [-Werror=array-bounds])
Paolo Carlini [Tue, 24 Mar 2015 15:58:05 +0000 (15:58 +0000)]
re PR c++/61971 (array subscript is above array bounds [-Werror=array-bounds])

2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r221636

9 years agore PR libstdc++/33394 (Add test case for Thread race segfault in std::string::append...
Jonathan Wakely [Tue, 24 Mar 2015 14:47:32 +0000 (14:47 +0000)]
re PR libstdc++/33394 (Add test case for Thread race segfault in std::string::append with -O and -s)

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.

From-SVN: r221635

9 years ago[multiple changes]
Arnaud Charlet [Tue, 24 Mar 2015 12:26:10 +0000 (13:26 +0100)]
[multiple changes]

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.

From-SVN: r221630

9 years ago[multiple changes]
Arnaud Charlet [Tue, 24 Mar 2015 12:21:37 +0000 (13:21 +0100)]
[multiple changes]

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.

From-SVN: r221629

9 years agobuilding_executable_programs_with_gnat.rst, [...]: Doc improvements.
Arnaud Charlet [Tue, 24 Mar 2015 11:49:20 +0000 (11:49 +0000)]
building_executable_programs_with_gnat.rst, [...]: Doc improvements.

* 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.

From-SVN: r221628

9 years agore PR fortran/55901 ([OOP] type is (character(len=*)) misinterpreted as array)
Andre Vehreschild [Tue, 24 Mar 2015 11:47:45 +0000 (12:47 +0100)]
re PR fortran/55901 ([OOP] type is (character(len=*)) misinterpreted as array)

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.

From-SVN: r221627

9 years agore PR c++/60067 (bogus error default template arguments may not be used in function...
Paolo Carlini [Tue, 24 Mar 2015 11:42:26 +0000 (11:42 +0000)]
re PR c++/60067 (bogus error default template arguments may not be used in function templates)

2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r221626

9 years agore PR c++/60067 (bogus error default template arguments may not be used in function...
Paolo Carlini [Tue, 24 Mar 2015 11:42:11 +0000 (11:42 +0000)]
re PR c++/60067 (bogus error default template arguments may not be used in function templates)

2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r221625

9 years agore PR c++/59988 (Failing to specialize template class)
Paolo Carlini [Tue, 24 Mar 2015 10:51:38 +0000 (10:51 +0000)]
re PR c++/59988 (Failing to specialize template class)

2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r221624

9 years agore PR c++/59988 (Failing to specialize template class)
Paolo Carlini [Tue, 24 Mar 2015 10:50:36 +0000 (10:50 +0000)]
re PR c++/59988 (Failing to specialize template class)

2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r221623

9 years agore PR tree-optimization/65533 (252.eon in SPEC CPU 2000 failed to build)
Jakub Jelinek [Tue, 24 Mar 2015 10:45:09 +0000 (11:45 +0100)]
re PR tree-optimization/65533 (252.eon in SPEC CPU 2000 failed to build)

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.

From-SVN: r221622

9 years agore PR fortran/64787 (Invalid code on sourced allocation of class(*) character string)
Andre Vehreschild [Tue, 24 Mar 2015 10:28:48 +0000 (11:28 +0100)]
re PR fortran/64787 (Invalid code on sourced allocation of class(*) character string)

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.

From-SVN: r221621

9 years agore PR c++/65513 (gcc stops with "internal compiler error")
Paolo Carlini [Tue, 24 Mar 2015 10:24:33 +0000 (10:24 +0000)]
re PR c++/65513 (gcc stops with "internal compiler error")

2015-03-24  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r221620

9 years agore PR middle-end/65517 (ICE: in get_loop_body, at cfgloop.c:856)
Richard Biener [Tue, 24 Mar 2015 09:31:48 +0000 (09:31 +0000)]
re PR middle-end/65517 (ICE: in get_loop_body, at cfgloop.c:856)

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.

From-SVN: r221619

9 years agocoindexed_1.f90: Moved from gfortran.dg/coarray/coindexed_3.f90; added dg-options.
Tobias Burnus [Tue, 24 Mar 2015 07:14:22 +0000 (08:14 +0100)]
coindexed_1.f90: Moved from gfortran.dg/coarray/coindexed_3.f90; added dg-options.

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.

From-SVN: r221618

9 years agogfortran.texi (_gfortran_caf_sync_memory): Improve wording.
Iain Sandoe [Tue, 24 Mar 2015 07:04:51 +0000 (07:04 +0000)]
gfortran.texi (_gfortran_caf_sync_memory): Improve wording.

2015-03-24  Iain Sandoe  <iain@codesourcery.com>
            Tobias Burnus  <burnus@net-b.de>

        * gfortran.texi (_gfortran_caf_sync_memory): Improve wording.

Co-Authored-By: Tobias Burnus <burnus@net-b.de>
From-SVN: r221615

9 years agoextend.texi (Function Attributes): Add @cindex entries for all attributes and regular...
Sandra Loosemore [Tue, 24 Mar 2015 02:48:05 +0000 (22:48 -0400)]
extend.texi (Function Attributes): Add @cindex entries for all attributes and regularize their format.

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.

From-SVN: r221614

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

From-SVN: r221613

9 years agore PR testsuite/65506 (FAIL: gcc.dg/pr29215.c scan-tree-dump-not gimple "memcpy")
Jakub Jelinek [Mon, 23 Mar 2015 20:04:43 +0000 (21:04 +0100)]
re PR testsuite/65506 (FAIL: gcc.dg/pr29215.c scan-tree-dump-not gimple "memcpy")

2015-03-23  Jakub Jelinek  <jakub@redhat.com>

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

From-SVN: r221607

9 years agore PR target/65523 (ICE: in gimple_op, at gimple.h:2270 with -fcheck-pointer-bounds...
Jakub Jelinek [Mon, 23 Mar 2015 20:03:50 +0000 (21:03 +0100)]
re PR target/65523 (ICE: in gimple_op, at gimple.h:2270 with -fcheck-pointer-bounds -mmpx)

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.

From-SVN: r221606

9 years agore PR lto/65475 (ICE in odr_vtable_hasher::equal (Segmentation fault))
Jakub Jelinek [Mon, 23 Mar 2015 19:51:51 +0000 (20:51 +0100)]
re PR lto/65475 (ICE in odr_vtable_hasher::equal (Segmentation fault))

PR ipa/65475
* g++.dg/lto/pr65475_0.C: Use dg-lto-options instead of
dg-options.
* g++.dg/lto/pr65475b_0.C: Likewise.

From-SVN: r221605

9 years agore PR target/65505 ([SH] ICE in sh_disp_addr_displacement)
Oleg Endo [Mon, 23 Mar 2015 18:57:58 +0000 (18:57 +0000)]
re PR target/65505 ([SH] ICE in sh_disp_addr_displacement)

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.

From-SVN: r221604

9 years agore PR target/65296 ([avr] fix various issues with specs file generation)
Georg-Johann Lay [Mon, 23 Mar 2015 18:19:01 +0000 (18:19 +0000)]
re PR target/65296 ([avr] fix various issues with specs file generation)

PR target/65296
* config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
the same -mmcu=MCU more than once.

From-SVN: r221602

9 years agore PR testsuite/63175 (FAIL: gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a.c scan...
Martin Sebor [Mon, 23 Mar 2015 17:37:25 +0000 (17:37 +0000)]
re PR testsuite/63175 (FAIL: gcc.dg/vect/costmodel/ppc/costmodel-bb-slp-9a.c scan-tree-dump-times slp2" basic block vectorized using SLP" 1)

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.

From-SVN: r221601

9 years agore PR libstdc++/64967 (Bootstrap fails due to errors in libstdc++ sources with `...
Jonathan Wakely [Mon, 23 Mar 2015 16:47:18 +0000 (16:47 +0000)]
re PR libstdc++/64967 (Bootstrap fails due to errors in libstdc++ sources with `--enable-symvers=gnu-versioned-namespace')

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.

From-SVN: r221600

9 years agore PR bootstrap/65522 (Svn revision 221590 fails bootstrap - ../libiberty/libiberty...
Jakub Jelinek [Mon, 23 Mar 2015 15:49:02 +0000 (16:49 +0100)]
re PR bootstrap/65522 (Svn revision 221590 fails bootstrap - ../libiberty/libiberty.a(cplus-dem.o): In function `ada_demangle': cplus-dem.c:(.text+0xdb8): multiple definition of `ada_demangle' ada/adadecode.o:adadecode.c:(.text+0x863): first defined here)

PR bootstrap/65522
* ipa-devirt.c: Remove duplicate demangle.h include.

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

From-SVN: r221599

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

From-SVN: r221598

9 years agore PR target/65504 (select case with strings and -fgcse -O)
Jakub Jelinek [Mon, 23 Mar 2015 15:31:59 +0000 (16:31 +0100)]
re PR target/65504 (select case with strings and -fgcse -O)

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.

From-SVN: r221597

9 years agore PR ipa/65521 (nondeterministic -fcompare-debug failures)
Jakub Jelinek [Mon, 23 Mar 2015 15:17:20 +0000 (16:17 +0100)]
re PR ipa/65521 (nondeterministic -fcompare-debug failures)

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.

From-SVN: r221596

9 years agore PR tree-optimization/65518 (gcc consumes all memory with -O3)
Richard Biener [Mon, 23 Mar 2015 14:59:57 +0000 (14:59 +0000)]
re PR tree-optimization/65518 (gcc consumes all memory with -O3)

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.

From-SVN: r221595

9 years agore PR sanitizer/59009 (libsanitizer merge from upstream r191666 breaks bootstrap...
Christophe Lyon [Mon, 23 Mar 2015 13:43:22 +0000 (13:43 +0000)]
re PR sanitizer/59009 (libsanitizer merge from upstream r191666 breaks bootstrap on powerpc64-linux and aarch64-linux)

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.

From-SVN: r221593

9 years agore PR tree-optimization/65494 (Loop is not vectorized because of operand canonicaliza...
Richard Biener [Mon, 23 Mar 2015 12:47:54 +0000 (12:47 +0000)]
re PR tree-optimization/65494 (Loop is not vectorized because of operand canonicalization.)

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.

From-SVN: r221592

9 years ago[expmed][trivial] Fix comment about multiplying by T-1 and adding T.
Kyrylo Tkachov [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.

From-SVN: r221588

9 years agore PR preprocessor/65238 (__has_attribute is not handled properly with -traditional...
Jakub Jelinek [Mon, 23 Mar 2015 08:02:39 +0000 (09:02 +0100)]
re PR preprocessor/65238 (__has_attribute is not handled properly with -traditional-cpp.)

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.

From-SVN: r221587

9 years agore PR fortran/64952 (Missing temporary in assignment from elemental function)
Paul Thomas [Mon, 23 Mar 2015 07:53:31 +0000 (07:53 +0000)]
re PR fortran/64952 (Missing temporary in assignment from elemental function)

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.

Co-Authored-By: Mikael Morin <mikael@gcc.gnu.org>
From-SVN: r221586

9 years agore PR rtl-optimization/64317 (Ineffective allocation of PIC base register)
Jeff Law [Mon, 23 Mar 2015 05:21:04 +0000 (23:21 -0600)]
re PR rtl-optimization/64317 (Ineffective allocation of PIC base register)

       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.

From-SVN: r221585

9 years agocpp.texi (Search Path): Hyphenate "command-line" when used as an adjective.
Sandra Loosemore [Mon, 23 Mar 2015 01:12:06 +0000 (21:12 -0400)]
cpp.texi (Search Path): Hyphenate "command-line" when used as an adjective.

2015-03-22  Sandra Loosemore  <sandra@codesourcery.com>

gcc/
* doc/cpp.texi (Search Path): Hyphenate "command-line" when used
as an adjective.
(System Headers): Likewise.
(Ifdef): Likewise.
(Traditional macros): Likewise.
(Invocation): Likewise.
(Option Index): Likewise.
* doc/cppopts.texi (-M): Likewise.
(-finput-charset): Likewise.
(--help): Likewise.
* doc.invoke.texi (AVR Options): Likewise.
(V850 Options): Likewise.

From-SVN: r221583

9 years agore PR lto/65475 (ICE in odr_vtable_hasher::equal (Segmentation fault))
Jan Hubicka [Mon, 23 Mar 2015 00:17:07 +0000 (01:17 +0100)]
re PR lto/65475 (ICE in odr_vtable_hasher::equal (Segmentation fault))

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.

From-SVN: r221582

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

From-SVN: r221581

9 years agoSpeed-up def_builtin_const (ix86_valid_target_attribute).
Martin Liska [Sun, 22 Mar 2015 22:50:00 +0000 (23:50 +0100)]
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.

From-SVN: r221577

9 years agoIPA ICF: include hash values of references.
Martin Liska [Sun, 22 Mar 2015 22:47:06 +0000 (23:47 +0100)]
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.

From-SVN: r221576

9 years agore PR libfortran/59513 (Fortran runtime error: Sequential READ or WRITE not allowed...
Jerry DeLisle [Sun, 22 Mar 2015 21:37:13 +0000 (21:37 +0000)]
re PR libfortran/59513 (Fortran runtime error: Sequential READ or WRITE not allowed after EOF marker, possibly use REWIND or BACKSPACE)

2015-03-22 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

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

From-SVN: r221575

9 years agore PR ipa/65502 (pure-const should play well with clobbers.)
Jan Hubicka [Sun, 22 Mar 2015 21:10:24 +0000 (22:10 +0100)]
re PR ipa/65502 (pure-const should play well with clobbers.)

PR ipa/65502
* ipa-comdats.c (enqueue_references): Walk through thunks.
(ipa_comdats): Likewise.
(set_comdat_group_1): New function.

From-SVN: r221574

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

From-SVN: r221573

9 years agore PR libfortran/59513 (Fortran runtime error: Sequential READ or WRITE not allowed...
Jerry DeLisle [Sun, 22 Mar 2015 18:42:52 +0000 (18:42 +0000)]
re PR libfortran/59513 (Fortran runtime error: Sequential READ or WRITE not allowed after EOF marker, possibly use REWIND or BACKSPACE)

2015-03-22 Jerry DeLisle  <jvdelisle@gcc.gnu.org>

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

From-SVN: r221572

9 years agocontrib.texi (Contributors): Update entry for Danny Smith.
Dave Korn [Sun, 22 Mar 2015 17:08:00 +0000 (17:08 +0000)]
contrib.texi (Contributors): Update entry for Danny Smith.

* doc/contrib.texi (Contributors): Update entry for Danny Smith.

Co-Authored-By: Gerald Pfeifer <gerald@pfeifer.com>
From-SVN: r221570

9 years agonios2-protos.h (nios2_adjust_call_address): Adjust function parameter declaration.
Chung-Lin Tang [Sun, 22 Mar 2015 02:39:24 +0000 (02:39 +0000)]
nios2-protos.h (nios2_adjust_call_address): Adjust function parameter declaration.

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.

Co-Authored-By: Sandra Loosemore <sandra@codesourcery.com>
From-SVN: r221569

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

From-SVN: r221568

9 years agoinvoke.texi (-fno-diagnostics-show-caret): Fix usage of "the @option{...}".
Sandra Loosemore [Sat, 21 Mar 2015 23:30:54 +0000 (19:30 -0400)]
invoke.texi (-fno-diagnostics-show-caret): Fix usage of "the @option{...}".

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.

From-SVN: r221564

9 years agoextend.texi (Cilk Plus Builtins): Add markup.
Sandra Loosemore [Sat, 21 Mar 2015 20:34:46 +0000 (16:34 -0400)]
extend.texi (Cilk Plus Builtins): Add markup.

2015-03-21  Sandra Loosemore  <sandra@codesourcery.com>

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

From-SVN: r221559

9 years agoinvoke.texi (-fcheck-pointer-bounds): Copy-edit, add additional index entries and...
Sandra Loosemore [Sat, 21 Mar 2015 18:40:55 +0000 (14:40 -0400)]
invoke.texi (-fcheck-pointer-bounds): Copy-edit, add additional index entries and cross-references.

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.

From-SVN: r221558

9 years agoreduction-4.c: Don't run on hppa*-*-hpux*.
John David Anglin [Sat, 21 Mar 2015 16:19:43 +0000 (16:19 +0000)]
reduction-4.c: Don't run on hppa*-*-hpux*.

* testsuite/libgomp.oacc-c-c++-common/reduction-4.c: Don't run on
hppa*-*-hpux*.

From-SVN: r221557

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

From-SVN: r221554

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

From-SVN: r221553

9 years agoPut @{xxx} in one line
H.J. Lu [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.

From-SVN: r221552

9 years agoMark omp thread functions as parallelized
Tom de 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

From-SVN: r221551

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

From-SVN: r221550

9 years agotrans-expr.c (gfc_get_tree_for_caf_expr): Reject unimplemented coindexed coarray...
Tobias Burnus [Sat, 21 Mar 2015 08:29:40 +0000 (09:29 +0100)]
trans-expr.c (gfc_get_tree_for_caf_expr): Reject unimplemented coindexed coarray accesses.

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.

From-SVN: r221549

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

From-SVN: r221547

9 years agore PR c++/65398 ([C++11] GCC rejects constexpr variable definitions with valid initia...
Marek Polacek [Fri, 20 Mar 2015 21:53:40 +0000 (21:53 +0000)]
re PR c++/65398 ([C++11] GCC rejects constexpr variable definitions with valid initialization)

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.

From-SVN: r221544

9 years agore PR lto/65475 (ICE in odr_vtable_hasher::equal (Segmentation fault))
Jan Hubicka [Fri, 20 Mar 2015 18:19:18 +0000 (19:19 +0100)]
re PR lto/65475 (ICE in odr_vtable_hasher::equal (Segmentation fault))

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.

From-SVN: r221542

9 years agore PR rtl-optimization/64366 (Segmentation fault in remove_pseudos)
Vladimir Makarov [Fri, 20 Mar 2015 17:43:48 +0000 (17:43 +0000)]
re PR rtl-optimization/64366 (Segmentation fault in remove_pseudos)

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.

From-SVN: r221541

9 years agore PR c++/48324 ([C++0x] constexpr evaluation should respect lifetime rules)
Paolo Carlini [Fri, 20 Mar 2015 17:26:32 +0000 (17:26 +0000)]
re PR c++/48324 ([C++0x] constexpr evaluation should respect lifetime rules)

2015-03-20  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r221539

9 years ago[Patch Testsuite] Make all_attributes.cc in to (almost_)all_attributes.cc for ARM.
James Greenhalgh [Fri, 20 Mar 2015 17:20:12 +0000 (17:20 +0000)]
[Patch Testsuite] Make all_attributes.cc in to (almost_)all_attributes.cc for ARM.

* testsuite/17_intro/headers/c++1998/all_attributes.cc: Disable
test for unused for ARM.
* testsuite/17_intro/headers/c++200x/all_attributes.cc: Likewise.
* testsuite/17_intro/headers/c++2014/all_attributes.cc: Likewise.

From-SVN: r221538

9 years agore PR c++/48453 ([C++0x] [DR 1287] Invalid reference initialization via explicit...
Paolo Carlini [Fri, 20 Mar 2015 17:06:18 +0000 (17:06 +0000)]
re PR c++/48453 ([C++0x] [DR 1287] Invalid reference initialization via explicit conversion)

2015-03-20  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/48453
* g++.dg/cpp0x/pr48453.C: New.

From-SVN: r221537

9 years agore PR c++/65072 (Segfault when parsing dectlype in trailing return type)
Marek Polacek [Fri, 20 Mar 2015 14:56:53 +0000 (14:56 +0000)]
re PR c++/65072 (Segfault when parsing dectlype in trailing return type)

PR c++/65072
* typeck.c (lookup_anon_field): Make sure we're dealing with the main
variant.

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

From-SVN: r221535

9 years agoc++config (__gnu_cxx::__cxx11): Define new namespace.
Jonathan Wakely [Fri, 20 Mar 2015 13:26:55 +0000 (13:26 +0000)]
c++config (__gnu_cxx::__cxx11): Define new namespace.

* include/bits/c++config (__gnu_cxx::__cxx11): Define new namespace.
* include/ext/codecvt_specializations.h (encoding_state,
encoding_char_traits): Remove abi-tag and use inline namespace.
* testsuite/ext/profile/mutex_extensions_neg.cc: Adjust dg-error line.

From-SVN: r221533

9 years agore PR tree-optimization/64715 (__builtin_object_size (..., 1) fails to locate subobject)
Richard Biener [Fri, 20 Mar 2015 12:39:32 +0000 (12:39 +0000)]
re PR tree-optimization/64715 (__builtin_object_size (..., 1) fails to locate subobject)

2015-03-20  Richard Biener  <rguenther@suse.de>

PR middle-end/64715
* tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
for type comparison and gcc_checking_assert.
(chrec_fold_plus_poly_poly): Likewise.
(chrec_fold_multiply_poly_poly): Likewise.
(chrec_convert_1): Likewise.
* gimplify.c (gimplify_expr): Remove premature folding of
&X + CST to &MEM[&X, CST].

* gcc.dg/pr15347.c: Use -O.
* c-c++-common/pr19807-1.c: Likewise.

From-SVN: r221532

9 years agore PR ada/65451 (compiler crash on volatile access type)
Eric Botcazou [Fri, 20 Mar 2015 10:15:33 +0000 (10:15 +0000)]
re PR ada/65451 (compiler crash on volatile access type)

PR ada/65451
* gcc-interface/utils.c (gnat_pushdecl): Tidy up and improve comment.
Make sure to chain only main variants through TYPE_NEXT_PTR_TO.

From-SVN: r221531

9 years agoipa-inline.c (can_inline_edge_p): Short circuit if inline_failed already is final.
Jan Hubicka [Fri, 20 Mar 2015 06:41:17 +0000 (07:41 +0100)]
ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed already is final.

* ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
already is final.
(ipa_inline): Recompute inline_failed codes.
* cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
CIF_FINAL_ERROR.

From-SVN: r221530

9 years agore PR rtl-optimization/60851 (ICE: in extract_constrain_insn_cached, at recog.c:2117...
Uros Bizjak [Fri, 20 Mar 2015 06:07:30 +0000 (07:07 +0100)]
re PR rtl-optimization/60851 (ICE: in extract_constrain_insn_cached, at recog.c:2117 with -flive-range-shrinkage -mdispatch-scheduler -march=bdver4)

PR rtl-optimization/60851
* recog.c (constrain_operands): Accept a pseudo register before reload
for LRA enabled targets.

testsuite/ChangeLog:

PR rtl-optimization/60851
* gcc.target/i386/pr60851.c: New test.

From-SVN: r221529

9 years agoAdd missed ChangeLog entry for revision 221552.
Vladimir Makarov [Fri, 20 Mar 2015 00:18:57 +0000 (00:18 +0000)]
Add missed ChangeLog entry for revision 221552.

From-SVN: r221528

9 years agoDaily bump.
GCC Administrator [Fri, 20 Mar 2015 00:16:11 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r221527

9 years agore PR target/65240 (ICE (insn does not satisfy its constraints) on powerpc64le-linux...
Michael Meissner [Thu, 19 Mar 2015 22:37:33 +0000 (22:37 +0000)]
re PR target/65240 (ICE (insn does not satisfy its constraints) on powerpc64le-linux-gnu)

[gcc]
2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/65240
* config/rs6000/predicates.md (easy_fp_constant): Remove special
-ffast-math handling that kept non-0 constants live in the RTL
until reload.  Remove logic testing the number of instructions it
took to create a constant in a GPR that was never used, due to a
test for soft-float earlier.
(memory_fp_constant): Delete, no longer used.

* config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
alternatives for loading non-0 constants into GPRs for hard
floating point that is no longer needed due to changes in
easy_fp_constant.  Add support for loading 0.0 into GPRs.
(mov<mode>_hardfloat32): Likewise.
(mov<mode>_hardfloat64): Likewise.
(mov<mode>_64bit_dm): Likewise.
(movtd_64bit_nodm): Likewise.
(pre-reload move FP constant define_split): Delete define_split,
since it is no longer used.
(extenddftf2_internal): Remove GHF constraints that are not valid
for extenddftf2.

[gcc/testsuite]
2015-03-19  Michael Meissner  <meissner@linux.vnet.ibm.com>

PR target/65240
* gcc/testsuite/g++.dg/pr65240.h: Add tests for PR 65240.
* gcc/testsuite/g++.dg/pr65240-1.C: Likewise.
* gcc/testsuite/g++.dg/pr65240-2.C: Likewise.
* gcc/testsuite/g++.dg/pr65240-3.C: Likewise.
* gcc/testsuite/g++.dg/pr65240-4.C: Likewise.

From-SVN: r221524

9 years agore PR rtl-optimization/63491 (Ice in LRA with simple vector test case on power)
Vladimir Makarov [Thu, 19 Mar 2015 19:59:38 +0000 (19:59 +0000)]
re PR rtl-optimization/63491 (Ice in LRA with simple vector test case on power)

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

PR rtl-optimization/63491
* lra-constraints.c (check_and_process_move): Use src instead of
sreg.  Remove some dead code.

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

PR rtl-optimization/63491
* gcc.target/powerpc/pr63491.c: New.

From-SVN: r221522

9 years agore PR c++/65046 (-Wabi-tag doesn't warn about variables or function return types)
Jason Merrill [Thu, 19 Mar 2015 19:31:48 +0000 (15:31 -0400)]
re PR c++/65046 (-Wabi-tag doesn't warn about variables or function return types)

PR c++/65046
Automatically propagate ABI tags to variables and functions
from their (return) type.
* class.c (check_tag): Handle variables and functions.
(mark_or_check_attr_tags): Split out from find_abi_tags_r.
(mark_or_check_tags): Likewise.
(mark_abi_tags): Use it.  Rename from mark_type_abi_tags.
(check_abi_tags): Add single argument overload for decls.
Handle inheriting tags for decls.
* mangle.c (write_mangled_name): Call it.
(mangle_return_type_p): Split out from write_encoding.
(unmangled_name_p): Split out from write_mangled_name.
(write_mangled_name): Ignore abi_tag on namespace.
* cp-tree.h (NAMESPACE_IS_INLINE): Replace NAMESPACE_ABI_TAG.
* parser.c (cp_parser_namespace_definition): Set it.
* name-lookup.c (handle_namespace_attrs): Use arguments. Warn
about abi_tag attribute on non-inline namespace.
* tree.c (check_abi_tag_args): Split out from handle_abi_tag_attribute.
(handle_abi_tag_attribute): Allow tags on variables.

From-SVN: r221521

9 years agoc-decl.c (c_decl_attributes): Also add "omp declare target" attribute for DECL_EXTERN...
Jakub Jelinek [Thu, 19 Mar 2015 19:12:43 +0000 (20:12 +0100)]
c-decl.c (c_decl_attributes): Also add "omp declare target" attribute for DECL_EXTERNAL VAR_DECLs.

* c-decl.c (c_decl_attributes): Also add "omp declare target"
attribute for DECL_EXTERNAL VAR_DECLs.

* decl2.c (cplus_decl_attributes): Also add "omp declare target"
attribute for DECL_EXTERNAL VAR_DECLs.

* testsuite/libgomp.c/target-10.c: New test.
* testsuite/libgomp.c++/target-4.C: New test.

From-SVN: r221520

9 years agore PR lto/65380 ([ICF] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition...
Jan Hubicka [Thu, 19 Mar 2015 17:37:15 +0000 (18:37 +0100)]
re PR lto/65380 ([ICF] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:158)

Fix PR ipa/65380.

PR ipa/65380
* ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
(sem_variable::merge): Likewise.

From-SVN: r221519

9 years agore PR ipa/65465 (Internal compiler error: in build2_stIat)
Martin Liska [Thu, 19 Mar 2015 17:35:52 +0000 (17:35 +0000)]
re PR ipa/65465 (Internal compiler error: in build2_stIat)

Fix for PR ipa/65465.

PR ipa/65465
* cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
all fields of cgraph_thunk_info.
* g++.dg/ipa/pr65465.C: New test.

From-SVN: r221518

9 years agoipa-chkp.c (chkp_maybe_create_clone): Don't try to clone instrumented thunks.
Ilya Enkovich [Thu, 19 Mar 2015 14:01:31 +0000 (14:01 +0000)]
ipa-chkp.c (chkp_maybe_create_clone): Don't try to clone instrumented thunks.

* ipa-chkp.c (chkp_maybe_create_clone): Don't try to
clone instrumented thunks.

From-SVN: r221516

9 years agorevert: re PR middle-end/63155 (memory hog)
Richard Biener [Thu, 19 Mar 2015 13:36:18 +0000 (13:36 +0000)]
revert: re PR middle-end/63155 (memory hog)

2015-03-19  Richard Biener  <rguenther@suse.de>

Revert
2015-03-10  Richard Biener  <rguenther@suse.de>

PR middle-end/63155
* tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
* tree-ssa-coalesce.c: Include timevar.h.
(attempt_coalesce): Handle graph being NULL.
(coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
Split out abnormal coalescing to ...
(perform_abnormal_coalescing): ... this function.
(coalesce_ssa_name): Perform abnormal coalescing without computing
live/conflict.
(verify_ssa_coalescing_worker): New function.
(verify_ssa_coalescing): Likewise.

From-SVN: r221515

9 years agopartition.h (struct partition_elem): Re-order elements to avoid padding.
Richard Biener [Thu, 19 Mar 2015 11:44:08 +0000 (11:44 +0000)]
partition.h (struct partition_elem): Re-order elements to avoid padding.

2015-03-19  Richard Biener  <rguenther@suse.de>

* partition.h (struct partition_elem): Re-order elements to
avoid padding.

From-SVN: r221514

9 years agore PR c++/52659 (GCC fails to reject a deleted function definition which is not the...
Paolo Carlini [Thu, 19 Mar 2015 11:02:47 +0000 (11:02 +0000)]
re PR c++/52659 (GCC fails to reject a deleted function definition which is not the first declaration)

2015-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/52659
* g++.dg/cpp0x/deleted11.C: New.

From-SVN: r221513

9 years agore PR sanitizer/65400 (tsan mis-compiles inlineable C functions)
Jakub Jelinek [Thu, 19 Mar 2015 10:12:34 +0000 (11:12 +0100)]
re PR sanitizer/65400 (tsan mis-compiles inlineable C functions)

PR sanitizer/65400
* tsan.c (instrument_gimple): Clear tail call flag on
calls.

* c-c++-common/tsan/pr65400-3.c: New test.

From-SVN: r221512

9 years agore PR c++/59686 (Non-constexpr pointers accepted in constant expressions)
Paolo Carlini [Thu, 19 Mar 2015 08:57:01 +0000 (08:57 +0000)]
re PR c++/59686 (Non-constexpr pointers accepted in constant expressions)

2015-03-19  Paolo Carlini  <paolo.carlini@oracle.com>

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

From-SVN: r221510

9 years agore PR sanitizer/64265 (r217669 broke tsan)
Jakub Jelinek [Thu, 19 Mar 2015 07:55:22 +0000 (08:55 +0100)]
re PR sanitizer/64265 (r217669 broke tsan)

PR sanitizer/64265
* g++.dg/tsan/pr64265.C: New test.

From-SVN: r221509

9 years agore PR sanitizer/65400 (tsan mis-compiles inlineable C functions)
Jakub Jelinek [Thu, 19 Mar 2015 07:53:38 +0000 (08:53 +0100)]
re PR sanitizer/65400 (tsan mis-compiles inlineable C functions)

PR sanitizer/65400
* ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
call in the return bb.
(find_split_points): Add RETURN_BB argument, don't call
find_return_bb.
(split_function): Likewise.  Add ADD_TSAN_FUNC_EXIT argument,
if true append TSAN_FUNC_EXIT internal call after the call to
the split off function.
(execute_split_functions): Call find_return_bb here.
Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
Adjust find_split_points and split_function calls.

* c-c++-common/tsan/pr65400-1.c: New test.
* c-c++-common/tsan/pr65400-2.c: New test.

From-SVN: r221508

9 years agorl78-virt.md (andqi3_virt): Allow far operands.
DJ Delorie [Thu, 19 Mar 2015 04:00:51 +0000 (00:00 -0400)]
rl78-virt.md (andqi3_virt): Allow far operands.

* config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
(iorqi3_virt): Likewise.

From-SVN: r221506

9 years agoDaily bump.
GCC Administrator [Thu, 19 Mar 2015 00:16:14 +0000 (00:16 +0000)]
Daily bump.

From-SVN: r221505

9 years agore PR c++/59816 ([c++11] Incorrect visibility check in template instantiation when...
Paolo Carlini [Wed, 18 Mar 2015 21:30:04 +0000 (21:30 +0000)]
re PR c++/59816 ([c++11] Incorrect visibility check in template instantiation when the default constructor is a variadic template.)

2015-03-18  Paolo Carlini  <paolo.carlini@oracle.com>

PR c++/59816
* g++.dg/cpp0x/pr59816.C: New.

From-SVN: r221502

9 years agore PR fortran/59198 (ICE on cyclically dependent polymorphic types)
Paul Thomas [Wed, 18 Mar 2015 21:18:38 +0000 (21:18 +0000)]
re PR fortran/59198 (ICE on cyclically dependent polymorphic types)

2014-03-18  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/59198
* gfortran.dg/proc_ptr_comp_45.f90 : Make tests fuzzy.

From-SVN: r221501