]> git.ipfire.org Git - thirdparty/gcc.git/log
thirdparty/gcc.git
8 years agoDaily bump.
GCC Administrator [Sun, 16 Oct 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241208

8 years agosparc.c (sparc_expand_vec_perm_bmask): Use a scratch register as destination of bmask.
Eric Botcazou [Sat, 15 Oct 2016 22:43:42 +0000 (22:43 +0000)] 
sparc.c (sparc_expand_vec_perm_bmask): Use a scratch register as destination of bmask.

* config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use a scratch
register as destination of bmask.
(vector_init_bshuffle): Likewise.
* config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
(bmaskdi_vis): Enable only in 64-bit mode.

From-SVN: r241207

8 years agoDaily bump.
GCC Administrator [Sat, 15 Oct 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241194

8 years agoDaily bump.
GCC Administrator [Fri, 14 Oct 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241144

8 years agoDelete x86 deprecated pcommit instruction support
Andrew Senkevich [Thu, 13 Oct 2016 21:19:00 +0000 (21:19 +0000)] 
Delete x86 deprecated pcommit instruction support

Delete x86 pcommit instruction support, which has been deprecated:

https://software.intel.com/en-us/blogs/2016/09/12/deprecate-pcommit-instruction

gcc/

2016-10-13  Andrew Senkevich  <andrew.senkevich@intel.com>

Backport from trunk
* common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
(ix86_handle_option): Deleted handle of OPT_mpcommit.
* config.gcc: Deleted pcommitintrin.h
* config/i386/pcommitintrin.h: Deleted file.
* config/i386/cpuid.h (bit_PCOMMIT): Deleted.
* config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
detection.
* config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
__PCOMMIT__.
* config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
(PTA_PCOMMIT, IX86_BUILTIN_PCOMMIT, __builtin_ia32_pcommit): Deleted.
(ix86_option_override_internal): Deleted handle of option.
(ix86_valid_target_attribute_inner_p): Deleted pcommit.
* config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
* config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
(pcommit): Deleted instruction.
* config/i386/i386.opt: Mention -mpcommit deprecation.
* config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.

gcc/testsuite/

2016-10-13  Andrew Senkevich  <andrew.senkevich@intel.com>

Backport from trunk
* testsuite/gcc.target/i386/pcommit-1.c: Deleted test.
* testsuite/gcc.target/i386/sse-12.c: Deleted -pcommit option.
* testsuite/gcc.target/i386/sse-13.c: Ditto.
* testsuite/gcc.target/i386/sse-14.c: Ditto.
* testsuite/gcc.target/i386/sse-22.c: Ditto.
* testsuite/gcc.target/i386/sse-23.c: Ditto.
* testsuite/g++.dg/other/i386-2.C: Ditto.
* testsuite/g++.dg/other/i386-3.C: Ditto.

From-SVN: r241142

8 years agoDaily bump.
GCC Administrator [Thu, 13 Oct 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241079

8 years agoDaily bump.
GCC Administrator [Wed, 12 Oct 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r241014

8 years agobackport: system-linux-armeb.ads (Backend_Overflow_Checks): Change to True.
Eric Botcazou [Tue, 11 Oct 2016 20:05:44 +0000 (20:05 +0000)] 
backport: system-linux-armeb.ads (Backend_Overflow_Checks): Change to True.

Backport from mainline
2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>

* system-linux-armeb.ads (Backend_Overflow_Checks): Change to True.
* system-linux-mips.ads (Backend_Overflow_Checks): Likewise.
* system-linux-mips64el.ads (Backend_Overflow_Checks): Likewise.
* system-linux-mipsel.ads (Backend_Overflow_Checks): Likewise.
* system-linux-sparcv9.ads (Backend_Overflow_Checks): Likewise.
* system-rtems.ads: Likewise.

2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
    Tristan Gingold  <gingold@adacore.com>

* system-linux-ppc64.ads: Delete.
* system-linux-ppc.ads: Make 32-bit/64-bit neutral.
* gcc-interface/Makefile.in (PowerPC/Linux): Simplify.

From-SVN: r241006

8 years agoDaily bump.
GCC Administrator [Tue, 11 Oct 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240960

8 years agogen-avr-mmcu-texi.c (string.h): Include.
Georg-Johann Lay [Mon, 10 Oct 2016 14:27:07 +0000 (14:27 +0000)] 
gen-avr-mmcu-texi.c (string.h): Include.

* config/avr/gen-avr-mmcu-texi.c (string.h): Include.

From-SVN: r240927

8 years agoutils.c (convert): For a biased input type, convert the bias itself to the base type...
Eric Botcazou [Mon, 10 Oct 2016 08:53:06 +0000 (08:53 +0000)] 
utils.c (convert): For a biased input type, convert the bias itself to the base type before adding it.

* gcc-interface/utils.c (convert): For a biased input type, convert
the bias itself to the base type before adding it.

From-SVN: r240912

8 years agoDaily bump.
GCC Administrator [Mon, 10 Oct 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240905

8 years agoDaily bump.
GCC Administrator [Sun, 9 Oct 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240894

8 years agoDaily bump.
GCC Administrator [Sat, 8 Oct 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240880

8 years agoDaily bump.
GCC Administrator [Fri, 7 Oct 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240847

8 years agore PR target/77874 (two problems with gcc.target/i386/avx-1.c)
Uros Bizjak [Thu, 6 Oct 2016 17:55:20 +0000 (19:55 +0200)] 
re PR target/77874 (two problems with gcc.target/i386/avx-1.c)

PR target/77874
* config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
Remove wrong assert.
(<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
Use <round_constraint> as operand 1 constraint.

From-SVN: r240838

8 years agoDaily bump.
GCC Administrator [Thu, 6 Oct 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240821

8 years agore PR fortran/58991 (ICE with associate and character string constant)
Steven G. Kargl [Wed, 5 Oct 2016 22:49:28 +0000 (22:49 +0000)] 
re PR fortran/58991 (ICE with associate and character string constant)

2016-10-05  Steven G. Kargl  <kargls@gcc.gnu.org>

PR fortran/58991
PR fortran/58992
* resolve.c (resolve_assoc_var):  Fix CHARACTER type-spec for a
selector in ASSOCIATE.
(resolve_fl_variable): Skip checks for an ASSOCIATE variable.

2016-10-05  Steven G. Kargl  <kargls@gcc.gnu.org>

PR fortran/58991
PR fortran/58992
* gfortran.dg/associate_22.f90: New test.

From-SVN: r240817

8 years agoPR 70564 disambiguate constructor for not_fn call wrapper
Jonathan Wakely [Wed, 5 Oct 2016 13:51:03 +0000 (14:51 +0100)] 
PR 70564 disambiguate constructor for not_fn call wrapper

PR libstdc++/70564
* include/experimental/functional (_Not_fn): Add second parameter to
disambiguate copying from initialization by not_fn.
(not_fn): Add second argument to initialization.
* testsuite/experimental/functional/not_fn.cc: Copy call wrapper using
direct-initialization. Test abstract class.

From-SVN: r240790

8 years ago77864 Fix noexcept conditions for map/set default constructors
Jonathan Wakely [Wed, 5 Oct 2016 13:43:58 +0000 (14:43 +0100)] 
77864 Fix noexcept conditions for map/set default constructors

PR libstdc++/77864
* include/bits/stl_map.h (map::map()): Use nothrow constructibility
of comparison function in conditional noexcept.
* include/bits/stl_multimap.h (multimap::multimap()): Likewise.
* include/bits/stl_multiset.h (multiset::multiset()): Likewise.
* include/bits/stl_set.h (set::set()): Likewise.
* testsuite/23_containers/map/cons/noexcept_default_construct.cc:
New test.
* testsuite/23_containers/multimap/cons/noexcept_default_construct.cc:
Likewise.
* testsuite/23_containers/multiset/cons/noexcept_default_construct.cc:
Likewise.
* testsuite/23_containers/set/cons/noexcept_default_construct.cc:
Likewise.

From-SVN: r240789

8 years agoDaily bump.
GCC Administrator [Wed, 5 Oct 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240759

8 years agoDaily bump.
GCC Administrator [Tue, 4 Oct 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240736

8 years agoFix libstdc++ versioned namespace build
Jonathan Wakely [Mon, 3 Oct 2016 14:42:06 +0000 (15:42 +0100)] 
Fix libstdc++ versioned namespace build

PR libstdc++/68323
PR libstdc++/77794
* config/abi/pre/gnu-versioned-namespace.ver: Add export for
__cxa_thread_atexit.
* include/Makefile.am: Add <experimental/lfts_config.h>
* include/Makefile.in: Regenerate.
* src/filesystem/Makefile.in: Likewise.
* include.bits/basic_string.h: Fix nesting of versioned namespaces.
* include/bits/c++config: Declare versioned namespaces for literals.
* include/bits/regex.h (basic_regex, match_results): Add workarounds
for PR c++/59256.
* include/bits/uniform_int_dist.h: Fix nesting of versioned namespace.
* include/std/chrono: Likewise.
* include/std/complex: Likewise.
* include/experimental/fs_fwd.h: Declare versioned namespace.
* include/experimental/lfts_config.h: Declare versioned namespaces.
* include/experimental/algorithm: Include
<experimental/lfts_config.h>.
* include/experimental/any: Likewise.
* include/experimental/chrono: Likewise.
* include/experimental/functional: Likewise.
* include/experimental/optional: Likewise.
* include/experimental/ratio: Likewise.
* include/experimental/system_error: Likewise.
* include/experimental/tuple: Likewise.
* include/experimental/type_traits: Likewise.
* include/experimental/string_view: Likewise. Fix nesting of
versioned namespaces.
* include/experimental/string_view.tcc: Reopen inline namespace for
non-inline function definitions.
* testsuite/17_intro/using_namespace_std_exp_neg.cc: New test.
* testsuite/20_util/duration/literals/range.cc: Adjust dg-error line.
* testsuite/experimental/any/misc/any_cast_neg.cc: Likewise.
* testsuite/ext/profile/mutex_extensions_neg.cc: Likewise.

From-SVN: r240720

8 years agoDaily bump.
GCC Administrator [Mon, 3 Oct 2016 00:16:10 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240703

8 years agoDaily bump.
GCC Administrator [Sun, 2 Oct 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240697

8 years agobackport: re PR fortran/77391 (gfortran allows CHARACTER(LEN=:),PARAMETER:: STRING...
Steven G. Kargl [Sat, 1 Oct 2016 04:58:02 +0000 (04:58 +0000)] 
backport: re PR fortran/77391 (gfortran allows CHARACTER(LEN=:),PARAMETER:: STRING='constant'   buts does not report it as an extension)

2016-09-30  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/77391
* resolve.c (deferred_requirements): New function to check F2008:C402.
(resolve_fl_variable,resolve_fl_parameter): Use it.

PR fortran/77391
* gfortran.dg/pr77391.f90: New test.

From-SVN: r240693

8 years agobackport: re PR fortran/77380 (ICE in gfc_check_dependency, at fortran/dependency...
Steven G. Kargl [Sat, 1 Oct 2016 00:46:28 +0000 (00:46 +0000)] 
backport: re PR fortran/77380 (ICE in gfc_check_dependency, at fortran/dependency.c:1255)

2016-09-30  Steven G. Kargl <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/77380
* dependency.c (gfc_check_dependency): Do not assert with
-fcoarray=lib.

PR fortran/77380
* gfortran.dg/pr77380.f90: New test.

From-SVN: r240692

8 years agoDaily bump.
GCC Administrator [Sat, 1 Oct 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240689

8 years agobackport: re PR fortran/61318 (Improve error diagnostic by pointing to the expression...
Steven G. Kargl [Fri, 30 Sep 2016 22:40:18 +0000 (22:40 +0000)] 
backport: re PR fortran/61318 (Improve error diagnostic by pointing to the expression and not to declared-at of a USE-associated variable)

2016-09-30  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/61318
* interface.c (compare_parameter): Use better locus for error message.

PR fortran/61318
* gfortran.dg/pr61318.f90: New test.

From-SVN: r240683

8 years agobackport: re PR fortran/71859 (ICE on same variable/subroutine name (verify_gimple...
Steven G. Kargl [Fri, 30 Sep 2016 21:46:14 +0000 (21:46 +0000)] 
backport: re PR fortran/71859 (ICE on same variable/subroutine name (verify_gimple failed))

2016-09-30  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/71859
* gfortran.dg/pr71859.f90: New test.
* gfortran.dg/intrinsic_numeric_arg.f: Update error message.
* gfortran.dg/coarray_collectives_1.f90: Ditto.

PR fortran/71859
* check.c(numeric_check): Prevent ICE.  Issue error for invalid
subroutine as an actual argument when numeric argument is expected.

From-SVN: r240682

8 years agobackport: re PR fortran/69867 (ICE on initializing character in type with array of...
Steven G. Kargl [Fri, 30 Sep 2016 21:02:56 +0000 (21:02 +0000)] 
backport: re PR fortran/69867 (ICE on initializing character in type with array of incompatible data)

2016-09-30  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/69867
* decl.c (build_struct): Ensure that pointers point to something.

PR fortran/69962
* decl.c (gfc_set_constant_character_len):  if expr is not
constant issue an error instead of an ICE.

PR fortran/69962
* gfortran.dg/pr69962.f90: New test.

PR fortran/69867
* gfortran.dg/pr69867.f90: New test.

From-SVN: r240679

8 years agobackport: re PR fortran/77351 (ICE in remove_trim, at frontend-passes.c:1145)
Steven G. Kargl [Fri, 30 Sep 2016 19:21:12 +0000 (19:21 +0000)] 
backport: re PR fortran/77351 (ICE in remove_trim, at frontend-passes.c:1145)

2016-09-30  Steven g. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/77351
* frontend-passes.c (remove_trim,combine_array_constructor): Check for
NULL pointer.

PR fortran/77351
* gfortran.dg/pr77351.f90: New test.

From-SVN: r240678

8 years agobackport: re PR fortran/68566 (ICE on using unusable array in reshape (double free...
Steven G. Kargl [Fri, 30 Sep 2016 17:54:15 +0000 (17:54 +0000)] 
backport: re PR fortran/68566 (ICE on using unusable array in reshape (double free or corruption))

2016-09-30  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/68566
* check.c (gfc_check_reshape): Check for constant expression.

PR fortran/68566
* gfortran.dg/pr68566.f90: new test.

From-SVN: r240671

8 years agobackport: re PR fortran/71799 (ICE in DO loop code emission (gfc_resolve_iterator))
Steven G. Kargl [Fri, 30 Sep 2016 16:58:31 +0000 (16:58 +0000)] 
backport: re PR fortran/71799 (ICE in DO loop code emission (gfc_resolve_iterator))

2016-09-30  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/71799
* gfortran.dg/pr71799.f90: New test.

2016-09-30  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/71799
* resolve.c(gfc_resolve_iterator): Failure of type conversion need
not ICE.

From-SVN: r240668

8 years agobackport: re PR fortran/70006 (Duplicate errors "label not defined")
Steven G. Kargl [Fri, 30 Sep 2016 15:50:31 +0000 (15:50 +0000)] 
backport: re PR fortran/70006 (Duplicate errors "label not defined")

2016-09-30  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/70006
* io.c (gfc_resolve_dt): Use correct locus.
* resolve.c (resolve_branch): Ditto.

2016-09-30  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/70006
* gfortran.dg/pr70006.f90: New test.

From-SVN: r240659

8 years agobackport: re PR fortran/77707 (formatted direct access: nextrec off by one)
Jerry DeLisle [Fri, 30 Sep 2016 04:49:36 +0000 (04:49 +0000)] 
backport: re PR fortran/77707 (formatted direct access: nextrec off by one)

2016-09-29  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

Backport from trunk
PR libgfortran/77707
io/transfer.c (next_record): Flush before calculating next_record.
Correctly calculate.

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

From-SVN: r240645

8 years agoDaily bump.
GCC Administrator [Fri, 30 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240641

8 years agobackport: re PR fortran/77420 (gfortran and equivalence produces internal compiler...
Steven G. Kargl [Thu, 29 Sep 2016 22:09:42 +0000 (22:09 +0000)] 
backport: re PR fortran/77420 (gfortran and equivalence produces internal compiler error)

2016-09-29  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/77420
* trans-common.c:  Handle array elements in equivalence when
the lower and upper bounds of array spec are NULL.

PR fortran/77460
* simplify.c (simplify_transformation_to_scalar):  On error, result
may be NULL, simply return.

2016-09-29  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk

PR fortran/77420
* gfortran.dg/pr77420_1.f90: New test.
* gfortran.dg/pr77420_2.f90: Ditto.
* gfortran.dg/pr77420_3.f90: New test. Requires ...
* gfortran.dg/pr77420_4.f90: this file.

PR fortran/77460
* gfortran.dg/pr77460.f90: New test.

From-SVN: r240640

8 years agobackport: re PR fortran/77506 (F2008 Standard does not allow CHARACTER(LEN=*) in...
Steven G. Kargl [Thu, 29 Sep 2016 20:32:22 +0000 (20:32 +0000)] 
backport: re PR fortran/77506 (F2008 Standard does not allow CHARACTER(LEN=*) in array constructor)

2016-09-29  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk
PR fortran/77506
* array.c (gfc_match_array_constructor): CHARACTER(len=*) cannot
appear in an array constructor.

PR fortran/77507
* intrinsic.c (add_functions):  Use correct keyword.

2016-09-29  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk
PR fortran/77507
  * ieee/ieee_arithmetic.F90 (IEEE_VALUE_4,IEEE_VALUE_8,IEEE_VALULE_10,
IEEE_VALUE_16):  Use correct keyword.

2016-09-29  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk
PR fortran/77506
* gfortran.dg/pr77506.f90: New test.

PR fortran/77507
* gfortran.dg/pr77507.f90: New test.

From-SVN: r240636

8 years agobackport: re PR fortran/71067 (ICE on data initialization with insufficient value)
Steven G. Kargl [Thu, 29 Sep 2016 19:34:59 +0000 (19:34 +0000)] 
backport: re PR fortran/71067 (ICE on data initialization with insufficient value)

2016-09-29  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk
PR fortran/71067
* decl.c (match_data_constant): On error, set 'result' to NULL.

PR fortran/77260
* gcc/fortran/trans-decl.c (generate_local_decl): Suppress warning
for unused variable if symbol is entry point.

2016-09-29  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk
PR fortran/71067
* gfortran.dg/pr71067_1.f90: New test.
* gfortran.dg/pr71067_2.f90: Ditto.

PR fortran/77260
* gfortran.dg/pr77260_1.f90: New test.
* gfortran.dg/pr77260_2.f90: Ditto.

From-SVN: r240635

8 years agobackport: re PR fortran/69514 (ICE with nested array constructor)
Steven G. Kargl [Thu, 29 Sep 2016 18:35:49 +0000 (18:35 +0000)] 
backport: re PR fortran/69514 (ICE with nested array constructor)

2016-09-29  Steven G. Kargl  <kargl@gcc.gnu.org>

Backport from trunk
PR fortran/69514
* array.c (gfc_match_array_constructor):  If type-spec is present,
walk the array constructor performing possible conversions for
numeric types.

2016-09-29  Steven G. Kargl  <kargl@gcc.gnu.org>
    Louis Krupp      <lkrupp@gcc.gnu.org>

Backport from trunk
PR fortran/69514
* gfortran.dg/pr69514_1.f90: New test.
* gfortran.dg/pr69514_2.f90: New test.

Co-Authored-By: Louis Krupp <lkrupp@gcc.gnu.org>
From-SVN: r240628

8 years agobackport: re PR fortran/71730 (ICE when character length specification uses an undefi...
Steven G. Kargl [Thu, 29 Sep 2016 00:18:44 +0000 (00:18 +0000)] 
backport: re PR fortran/71730 (ICE when character length specification uses an undefined variable)

2016-09-28  Steven G. Kargl  <kargl@gcc.gnu.org>

backport from trunk
PR fortran/71730
* gfortran.dg/pr71730.f90: New test.
* gfortran.dg/bounds_check_strlen_2.f90: Fix invalid code.
* gfortran.dg/array_constructor_27.f03: Update dg-error message.
* gfortran.dg/array_constructor_26.f03: Ditto.

PR fortran/77612
* gfortran.dg/pr77612.f90: New test.

2016-09-28  Steven G. Kargl  <kargl@gcc.gnu.org>

backport from trunk
PR fortran/71730
* decl.c (char_len_param_value): Check return value of
gfc_reduce_init_expr().

PR fortran/77612
* decl.c (char_len_param_value): Check parent namespace for
seen_implicit_none.

From-SVN: r240608

8 years agoDaily bump.
GCC Administrator [Thu, 29 Sep 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240605

8 years agobackport: re PR fortran/77694 (ICE in optimize_binop_array_assignment, at fortran...
Steven G. Kargl [Wed, 28 Sep 2016 23:38:13 +0000 (23:38 +0000)] 
backport: re PR fortran/77694 (ICE in optimize_binop_array_assignment, at fortran/frontend-passes.c:1080)

2016-09-28  Steven G. Kargl  <kargl@gcc.gnu.org>

backport from trunk
PR fortran/77694
* frontend-passes.c (optimize_binop_array_assignment): Check pointer
for NULL.

2016-09-28  Steven G. Kargl  <kargl@gcc.gnu.org>

backport from trunk
PR fortran/77694
* gfortran.dg/pr77694.f90: New test.

From-SVN: r240604

8 years agobackport: re PR rtl-optimization/71709 (powerpc64le: argument to strcpy() optimised...
Bill Schmidt [Wed, 28 Sep 2016 21:36:59 +0000 (21:36 +0000)] 
backport: re PR rtl-optimization/71709 (powerpc64le: argument to strcpy() optimised out)

2016-09-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
    Alan Modra  <amodra@gmail.com>

Backport from mainline
2016-07-01  Alan Modra  <amodra@gmail.com>

PR rtl-optimization/71709
* ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
being set, not referenced.

Co-Authored-By: Alan Modra <amodra@gmail.com>
From-SVN: r240599

8 years agoCorrect libgcc complex multiply excess precision handling (PR libgcc/77519).
Joseph Myers [Wed, 28 Sep 2016 17:37:45 +0000 (18:37 +0100)] 
Correct libgcc complex multiply excess precision handling (PR libgcc/77519).

libgcc complex multiply is meant to eliminate excess
precision from certain internal values by forcing them to memory in
exactly those cases where the type has excess precision.  But in
https://gcc.gnu.org/ml/gcc-patches/2014-09/msg01894.html I
accidentally inverted the logic so that values get forced to memory in
exactly the cases where it's not needed.  (This is a pessimization in
the no-excess-precision case, in principle could lead to bad results
depending on code generation in the excess-precision case.  Note: I do
not have a test demonstrating bad results.)

Bootstrapped with no regressions on x86_64-pc-linux-gnu.  Code size
went down on x86_64 as expected; old sizes:

   text    data     bss     dec     hex filename
    887       0       0     887     377 _muldc3.o
    810       0       0     810     32a _mulsc3.o
   2032       0       0    2032     7f0 _multc3.o
    983       0       0     983     3d7 _mulxc3.o

New sizes:

    847       0       0     847     34f _muldc3.o
    770       0       0     770     302 _mulsc3.o
   2032       0       0    2032     7f0 _multc3.o
    951       0       0     951     3b7 _mulxc3.o

Backport from mainline
2016-09-07  Joseph Myers  <joseph@codesourcery.com>

PR libgcc/77519
* libgcc2.c (NOTRUNC): Invert settings.

From-SVN: r240586

8 years agobackport: re PR testsuite/77411 (object-size-9.c -fpic -m32 failure)
Bernd Edlinger [Wed, 28 Sep 2016 12:48:16 +0000 (12:48 +0000)] 
backport: re PR testsuite/77411 (object-size-9.c -fpic -m32 failure)

backport from mainline
2016-09-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
            Tom de Vries  <tom@codesourcery.com>

        PR testsuite/77411
        * c-c++-common/ubsan/object-size-9.c: Call __builtin_exit in C++.

From-SVN: r240575

8 years agolibstdc++/77686 use may_alias for std::function storage
Jonathan Wakely [Wed, 28 Sep 2016 12:47:24 +0000 (13:47 +0100)] 
libstdc++/77686 use may_alias for std::function storage

PR libstdc++/77686
* include/std/functional (_Any_data): Add may_alias attribute.

From-SVN: r240574

8 years agoDaily bump.
GCC Administrator [Wed, 28 Sep 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240561

8 years agoFix lifetime of mutex lock in debug iterator
Jonathan Wakely [Tue, 27 Sep 2016 15:37:44 +0000 (16:37 +0100)] 
Fix lifetime of mutex lock in debug iterator

* include/debug/safe_iterator.h (_Safe_iterator::operator++()): Fix
lifetime of lock.

From-SVN: r240549

8 years agobackport: rs6000.c (rs6000_output_symbol): Don't modify VAR_DECL string.
David Edelsohn [Tue, 27 Sep 2016 14:30:46 +0000 (14:30 +0000)] 
backport: rs6000.c (rs6000_output_symbol): Don't modify VAR_DECL string.

        Backport from mainline
        2016-09-27  David Edelsohn  <dje.gcc@gmail.com>

        * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
        VAR_DECL string.

From-SVN: r240544

8 years agore PR target/77478 (Incorrect code generated with -O3, m32, -msse2 and -ffast-math)
Richard Biener [Tue, 27 Sep 2016 12:44:42 +0000 (12:44 +0000)] 
re PR target/77478 (Incorrect code generated with -O3, m32, -msse2 and -ffast-math)

2016-09-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/77478
* tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
Fix alignment of SSA var used before the alignment prologue.

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

From-SVN: r240532

8 years agoBackport fix for PR 65210
Senthil Kumar Selvaraj [Tue, 27 Sep 2016 06:39:59 +0000 (06:39 +0000)] 
Backport fix for PR 65210

gcc/ChangeLog

2016-09-27  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

Backport from trunk r227496

PR target/65210
* config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
attribute as well.

gcc/testsuite/ChangeLog

2016-09-27  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

Backport from trunk r227496

PR target/65210
* gcc.target/avr/pr65210.c: New test.

From-SVN: r240521

8 years agoRevert part of r240397 that got accidentally committed
Senthil Kumar Selvaraj [Tue, 27 Sep 2016 06:13:38 +0000 (06:13 +0000)] 
Revert part of r240397 that got accidentally committed

From-SVN: r240520

8 years agoDaily bump.
GCC Administrator [Tue, 27 Sep 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240512

8 years agoDaily bump.
GCC Administrator [Mon, 26 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240480

8 years agoDaily bump.
GCC Administrator [Sun, 25 Sep 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240468

8 years agoDaily bump.
GCC Administrator [Sat, 24 Sep 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240459

8 years agobackport: avr.c (avr_rtx_costs_1): Handle DImode MULT.
Senthil Kumar Selvaraj [Fri, 23 Sep 2016 08:20:40 +0000 (08:20 +0000)] 
backport: avr.c (avr_rtx_costs_1): Handle DImode MULT.

Backport from 2016-09-22 trunk r240388.

2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>

* config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
(avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).

From-SVN: r240397

8 years agoDaily bump.
GCC Administrator [Fri, 23 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240384

8 years agoDaily bump.
GCC Administrator [Thu, 22 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240337

8 years agoFix JUMP_LABEL documentation
Segher Boessenkool [Wed, 21 Sep 2016 17:51:39 +0000 (19:51 +0200)] 
Fix JUMP_LABEL documentation

* doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.

From-SVN: r240327

8 years agodump-noaddr.x: Remove debug statements.
Uros Bizjak [Wed, 21 Sep 2016 15:25:29 +0000 (17:25 +0200)] 
dump-noaddr.x: Remove debug statements.

* gcc.c-torture/unsorted/dump-noaddr.x: Remove debug statements.

From-SVN: r240320

8 years agobackport: re PR target/77326 ([avr] Invalid optimization omits comparison)
Georg-Johann Lay [Wed, 21 Sep 2016 14:11:59 +0000 (14:11 +0000)] 
backport: re PR target/77326 ([avr] Invalid optimization omits comparison)

gcc/
Backport from 2016-09-21 trunk r240306.
PR target/77326
* config/avr/avr.c (hard-reg-set.h): Move #include up in front
of rtl.h to that HARD_CONST is defined in rtl.h.
(avr_notice_update_cc) [CC_NONE]: If insn touches some regs
mentioned in cc_status, do CC_STATUS_INIT.

gcc/testsuite/
Backport from 2016-09-21 trunk r240306.
PR target/77326
* gcc.target/avr/torture/pr77326.c: New test.

From-SVN: r240315

8 years agoDaily bump.
GCC Administrator [Wed, 21 Sep 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240295

8 years agoReplace casts with floordiv operator in Python xmethods
Jonathan Wakely [Tue, 20 Sep 2016 10:03:07 +0000 (11:03 +0100)] 
Replace casts with floordiv operator in Python xmethods

* python/libstdcxx/v6/xmethods.py (DequeWorkerBase.__init__)
(DequeWorkerBase.index, VectorWorkerBase.get): Use // for division.

From-SVN: r240260

8 years agoDaily bump.
GCC Administrator [Tue, 20 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240252

8 years agolibstdc++/77645 fix deque and vector xmethods for Python 3
Jonathan Wakely [Mon, 19 Sep 2016 17:14:11 +0000 (18:14 +0100)] 
libstdc++/77645 fix deque and vector xmethods for Python 3

PR libstdc++/77645
* python/libstdcxx/v6/xmethods.py (DequeWorkerBase.__init__)
(DequeWorkerBase.index, VectorWorkerBase.get): Cast results of
division to int to work with Python 3.

From-SVN: r240242

8 years agoDaily bump.
GCC Administrator [Mon, 19 Sep 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240222

8 years agoDaily bump.
GCC Administrator [Sun, 18 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240216

8 years agoDaily bump.
GCC Administrator [Sat, 17 Sep 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240211

8 years agoFix documentation for overflow-checking builtins
Jonathan Wakely [Fri, 16 Sep 2016 21:38:50 +0000 (22:38 +0100)] 
Fix documentation for overflow-checking builtins

* doc/extend.texi (Integer Overflow Builtins): Fix type of out
parameters for functions taking long long arguments.

From-SVN: r240202

8 years agoDaily bump.
GCC Administrator [Fri, 16 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240170

8 years agoDaily bump.
GCC Administrator [Thu, 15 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240149

8 years agoDaily bump.
GCC Administrator [Wed, 14 Sep 2016 00:16:06 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240125

8 years agoDaily bump.
GCC Administrator [Tue, 13 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240104

8 years agoDaily bump.
GCC Administrator [Mon, 12 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240086

8 years agoDaily bump.
GCC Administrator [Sun, 11 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240077

8 years agoDaily bump.
GCC Administrator [Sat, 10 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240060

8 years agoDaily bump.
GCC Administrator [Fri, 9 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240040

8 years agoDaily bump.
GCC Administrator [Thu, 8 Sep 2016 00:16:04 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240034

8 years agoDaily bump.
GCC Administrator [Wed, 7 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240020

8 years agore PR debug/57519 (DW_TAG_imported_declaration put in wrong class (base class instead...
Dominique d'Humieres [Tue, 6 Sep 2016 22:26:11 +0000 (00:26 +0200)] 
re PR debug/57519 (DW_TAG_imported_declaration put in wrong class (base class instead of derived class))

2016-09-07  Dominique d'Humieres  <dominiq@lps.ens.fr>

PR debug/57519
* g++.dg/debug/dwarf2/imported-decl-2.C: Likewise.

From-SVN: r240017

8 years agoc_by_val_1.f: Correct the call to c_to_c and c_to_c8.
Uros Bizjak [Tue, 6 Sep 2016 15:25:09 +0000 (17:25 +0200)] 
c_by_val_1.f: Correct the call to c_to_c and c_to_c8.

* gfortran.dg/c_by_val_1.f: Correct the call to c_to_c and c_to_c8.

From-SVN: r240011

8 years agoDaily bump.
GCC Administrator [Tue, 6 Sep 2016 00:16:08 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r240002

8 years agoDaily bump.
GCC Administrator [Mon, 5 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r239983

8 years agoDaily bump.
GCC Administrator [Sun, 4 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r239972

8 years agoDaily bump.
GCC Administrator [Sat, 3 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r239967

8 years agoDaily bump.
GCC Administrator [Fri, 2 Sep 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r239950

8 years agoDaily bump.
GCC Administrator [Thu, 1 Sep 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r239909

8 years ago* config.host: Add support for arm*-*-phoenix* targets.
Jakub Sejdak [Wed, 31 Aug 2016 09:39:22 +0000 (09:39 +0000)] 
* config.host: Add support for arm*-*-phoenix* targets.

From-SVN: r239887

8 years agoconfig.gcc: Add support for arm*-*-phoenix* targets.
Jakub Sejdak [Wed, 31 Aug 2016 09:38:42 +0000 (09:38 +0000)] 
config.gcc: Add support for arm*-*-phoenix* targets.

* config.gcc: Add support for arm*-*-phoenix* targets.
* config/arm/t-phoenix: New.
* config/phoenix.h: New.

From-SVN: r239886

8 years ago* config.sub: Add support for Phoenix-RTOS targets.
Jakub Sejdak [Wed, 31 Aug 2016 09:37:05 +0000 (09:37 +0000)] 
* config.sub: Add support for Phoenix-RTOS targets.

From-SVN: r239885

8 years agoDaily bump.
GCC Administrator [Wed, 31 Aug 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r239876

8 years agoDaily bump.
GCC Administrator [Tue, 30 Aug 2016 00:16:07 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r239848

8 years agore PR target/77403 (assemble failure of vinserti64x4 with -masm=intel)
Uros Bizjak [Mon, 29 Aug 2016 20:26:13 +0000 (22:26 +0200)] 
re PR target/77403 (assemble failure of vinserti64x4 with -masm=intel)

PR target/77403
* config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
template for intel asm dialect.
(vec_set_hi_<mode><mask_name>): Ditto.

testsuite/ChangeLog:

PR target/77403
* gcc.target/i386/pr77403.c: New test.

From-SVN: r239842

8 years ago* Makefile.in (gcov-iov.h): Add dummy recipe.
Eric Botcazou [Mon, 29 Aug 2016 14:44:41 +0000 (14:44 +0000)] 
* Makefile.in (gcov-iov.h): Add dummy recipe.

From-SVN: r239825

8 years agobackport: re PR sanitizer/64078 (FAIL: c-c++-common/ubsan/object-size-9.c)
Tom de Vries [Mon, 29 Aug 2016 07:57:16 +0000 (07:57 +0000)] 
backport: re PR sanitizer/64078 (FAIL: c-c++-common/ubsan/object-size-9.c)

2016-08-29  Tom de Vries  <tom@codesourcery.com>

backport from trunk:
2015-09-17  Bernd Edlinger  <bernd.edlinger@hotmail.de>

PR sanitizer/64078
* c-c++-common/ubsan/object-size-9.c (s): Add alignment attribute.
(f2, f3): Make the function static.
* c-c++-common/ubsan/object-size-10.c (a, b): Add alignment attribute.

From-SVN: r239816

8 years agobackport: re PR testsuite/65940 (g++.dg/other/anon5.C requires dwarf4 support in...
Tom de Vries [Mon, 29 Aug 2016 07:20:03 +0000 (07:20 +0000)] 
backport: re PR testsuite/65940 (g++.dg/other/anon5.C requires dwarf4 support in  ld)

2016-08-29  Tom de Vries  <tom@codesourcery.com>

backport from trunk:
PR testsuite/65940
2016-02-01  Uros Bizjak  <ubizjak@gmail.com>

* g++.dg/other/anon5.C (dg-opetions): Use -gdwarf-2 instead of -g.

From-SVN: r239815

8 years agoDaily bump.
GCC Administrator [Mon, 29 Aug 2016 00:16:05 +0000 (00:16 +0000)] 
Daily bump.

From-SVN: r239812