NightStrike
add5b95a4a
Don't use Win32 functions on CYGWIN.
...
This was a workaround for a cygwin bug which was fixed 4 years ago,
and cygwin hasn't supported affected versions for a long time.
2017-03-15 NightStrike <nightstrike@gmail.com>
Janne Blomqvist <jb@gcc.gnu.org>
* intrinsics/random.c (getosrandom): Remove check for __CYGWIN__
preprocessor flag.
* intrinsics/system_clock.c: Likewise.
(system_clock_4): Likewise.
(system_clock_8): Likewise.
* intrinsics/time_1.h: Don't include windows.h if __CYGWIN__ is
defined.
Co-Authored-By: Janne Blomqvist <jb@gcc.gnu.org>
From-SVN: r246162
2017-03-15 15:46:35 +02:00
Uros Bizjak
05f659104f
re PR target/80019 (ICE in ix86_vector_duplicate_value, at config/i386/i386.c:42584)
...
PR target/80019
* config/i386/i386.c (ix86_vector_duplicate_value): Create
subreg of inner mode for values already in registers.
testsuite/ChangeLog:
PR target/80019
* gcc.target/i386/pr80019.c: New test.
From-SVN: r246161
2017-03-15 14:38:51 +01:00
Bernd Schmidt
6c194efb23
c6x.c (hwloop_optimize): Handle case where the old iteration reg is used after the loop.
...
* config/c6x/c6x.c (hwloop_optimize): Handle case where the old
iteration reg is used after the loop.
From-SVN: r246160
2017-03-15 13:36:50 +00:00
Marek Polacek
d579c38510
* c-parser.c (c_parser_enum_specifier): Remove redundant line.
...
From-SVN: r246156
2017-03-15 11:18:26 +00:00
Martin Liska
94285a7d56
Removed unused dg-error.
...
2017-03-15 Martin Liska <mliska@suse.cz>
* gcc.dg/tree-prof/pr66295.c: Removed unused dg-error.
From-SVN: r246154
2017-03-15 10:06:10 +00:00
Thomas Koenig
20305b5047
re PR libfortran/79956 (many new -Wmaybe-uninitialized warnings with bootstrap-O3)
...
2017-03-15 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/79956
* libgfortran.h (GFC_ASSERT): New macro.
* m4/reshape.m4 (reshape_'rtype_ccode`): Use GFC_ASSERT
to specify that sdim > 0 and rdim > 0.
* intrinsic/reshape_generic.c (reshape_internal): Likweise.
* generated/reshape_c10.c: Regenerated.
* generated/reshape_c16.c: Regenerated.
* generated/reshape_c4.c: Regenerated.
* generated/reshape_c8.c: Regenerated.
* generated/reshape_i16.c: Regenerated.
* generated/reshape_i4.c: Regenerated.
* generated/reshape_i8.c: Regenerated.
* generated/reshape_r10.c: Regenerated.
* generated/reshape_r16.c: Regenerated.
* generated/reshape_r4.c: Regenerated.
* generated/reshape_r8.c: Regenerated.
From-SVN: r246153
2017-03-15 07:45:39 +00:00
Yaakov Selkowitz
142b99a888
re PR bootstrap/79771 (in-tree zlib breaks build)
...
2017-03-15 Yaakov Selkowitz <yselkowitz@redhat.com>
PR bootstrap/79771
* gzguts.h (WIDECHAR): Do not define for __CYGWIN__.
* zlib.h (gzopen_w): Do not declare for __CYGWIN__.
* win32/zlib.def: Remove gzopen_w.
From-SVN: r246152
2017-03-14 23:01:23 -06:00
Martin Sebor
a983542b60
re PR tree-optimization/79800 (wrong snprintf result range with precision in a narrow negative-positive range)
...
PR tree-optimization/79800
* gimple-ssa-sprintf.c (format_floating: Add argument. Handle
precision in negative-positive range.
(format_floating): Call non-const overload with adjusted precision.
PR tree-optimization/79800
* gcc.dg/tree-ssa/builtin-sprintf-warn-15.c: Add test cases.
* gcc.dg/tree-ssa/pr79800.c: New test.
From-SVN: r246151
2017-03-14 22:31:27 -06:00
Michael Meissner
76ca5f401d
re PR target/79947 (ICE in rs6000_emit_swsqrt at gcc/config/rs6000/rs6000.c:37570)
...
[gcc]
2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/79947
* config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
-mpowerpc-gfxopt.
[gcc/testsuite]
2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
PR target/79947
* gcc.target/powerpc/pr79947.c: New test.
From-SVN: r246150
2017-03-15 00:25:10 +00:00
GCC Administrator
568c347cda
Daily bump.
...
From-SVN: r246149
2017-03-15 00:16:12 +00:00
Martin Sebor
5d9a283ac6
re PR middle-end/80020 (gcc confused about aligned_alloc argument order)
...
PR middle-end/80020
* builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
* builtins.def (aligned_alloc): Use it.
PR middle-end/80020
* gcc.dg/attr-alloc_size-6.c: Correct aligned_alloc argument order.
* gcc.dg/attr-alloc_size-7.c: Same.
* gcc.dg/attr-alloc_size-9.c: Same.
* gcc.dg/builtin-alloc-size.c: Same.
* gcc.dg/pr80020.c: New test.
From-SVN: r246145
2017-03-14 16:16:27 -06:00
Martin Sebor
6bf29a7e40
re PR c/79936 (ICE with -Walloc-size-larger-than=32767)
...
PR c/79936
* Makefile.in (GTFILES): Add calls.c.
* calls.c: Include "gt-calls.h".
From-SVN: r246144
2017-03-14 16:09:40 -06:00
Bernd Schmidt
4692943dac
re PR rtl-optimization/79728 (ICE in setup_pressure_classes, at ira.c:912)
...
PR rtl-optimization/79728
* regs.h (struct target_regs): New field
x_contains_allocatable_regs_of_mode.
(contains_allocatable_regs_of_mode): New macro.
* reginfo.c (init_reg_sets_1): Initialize it, and change
contains_reg_of_mode so it includes global regs as well.
* reload.c (push_reload): Use contains_allocatable_regs_of_mode
rather than contains_regs_of_mode.
PR rtl-optimization/79728
* gcc.target/i386/sse-globalreg.c: New test.
From-SVN: r246138
2017-03-14 11:50:46 -06:00
Martin Liska
6c841832df
Document options that can't be combined with -fcheck-pointer-bounds.
...
2017-03-14 Martin Liska <mliska@suse.cz>
* doc/invoke.texi: Document options that can't be combined with
-fcheck-pointer-bounds.
From-SVN: r246130
2017-03-14 15:32:23 +00:00
Martin Liska
54d5850a75
Document -Wchkp (PR middle-end/79831).
...
2017-03-14 Martin Liska <mliska@suse.cz>
PR middle-end/79831
* doc/invoke.texi (-Wchkp): Document the option.
From-SVN: r246129
2017-03-14 15:31:53 +00:00
Jonathan Wakely
4f83482f46
PR libstdc++/79162 disambiguate assignment from string_view
...
PR libstdc++/79162
* include/bits/basic_string.h [_GLIBCXX_USE_CXX11_ABI]
(basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Replace
with a constrained template.
[!_GLIBCXX_USE_CXX11_ABI]
(basic_string<C,T,A>::operator=(basic_string_view<C,T>)): Likewise.
* testsuite/21_strings/basic_string/cons/char/79162.cc: New test.
* testsuite/21_strings/basic_string/cons/wchar_t/79162.cc: New test.
From-SVN: r246128
2017-03-14 14:51:19 +00:00
Nathan Sidwell
9b74f93310
PR c++/79393 DR 1658 workaround
...
PR c++/79393 DR 1658 workaround
* method.c (synthesized_method_base_walk): Inihibit abstract class
virtual base access check here.
(synthesized_method_walk): Not here.
From-SVN: r246126
2017-03-14 14:41:53 +00:00
Martin Liska
9275950866
Install gcov-dump.
...
2017-03-14 Martin Liska <mliska@suse.cz>
* Makefile.in: Install gcov-dump.
From-SVN: r246125
2017-03-14 14:25:09 +00:00
Martin Liska
f7486ecb3c
Do not ICE on an invalid input for MV.
...
2017-03-14 Martin Liska <mliska@suse.cz>
* multiple_target.c (expand_target_clones): Bail out for
an invalid attribute.
From-SVN: r246124
2017-03-14 14:24:49 +00:00
Richard Biener
34e8234204
alias.c (struct alias_set_entry): Pack properly.
...
2017-03-14 Richard Biener <rguenther@suse.de>
* alias.c (struct alias_set_entry): Pack properly.
* cfgloop.h (struct loop): Likewise.
* cse.c (struct set): Likewise.
* ipa-utils.c (struct searchc_env): Likewise.
* loop-invariant.c (struct invariant): Likewise.
* lra-remat.c (struct cand): Likewise.
* recog.c (struct change_t): Likewise.
* rtl.h (struct address_info): Likewise.
* symbol-summary.h (function_summary): Likewise.
* tree-loop-distribution.c (struct partition): Likewise.
* tree-object-size.c (struct object_size_info): Likewise.
* tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
* tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
* tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
* tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
* tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
* tree-vectorizer.h (struct _loop_vec_info): Likewise.
(struct _stmt_vec_info): Likewise.
From-SVN: r246121
2017-03-14 12:47:42 +00:00
Martin Liska
546eb36c7e
Verify that target can create a dispatcher call (PR target/79892).
...
2017-03-14 Martin Liska <mliska@suse.cz>
PR target/79892
* multiple_target.c (create_dispatcher_calls): Check that
a target can create a function dispatcher.
From-SVN: r246120
2017-03-14 12:05:29 +00:00
Martin Liska
861d9d5e6a
Fix multiple target clones nodes (PR lto/66295).
...
2017-03-14 Martin Liska <mliska@suse.cz>
PR lto/66295
* multiple_target.c (expand_target_clones): Drop local.local
flag for default implementation.
2017-03-14 Martin Liska <mliska@suse.cz>
PR lto/66295
* gcc.dg/tree-prof/pr66295.c: New test.
From-SVN: r246119
2017-03-14 11:59:59 +00:00
James Cowgill
e3e8f22f78
s-osinte-linux.ads (struct_sigaction): Use correct type for sa_flags.
...
2017-03-14 James Cowgill <James.Cowgill@imgtec.com>
* s-osinte-linux.ads (struct_sigaction): Use correct type for sa_flags.
From-SVN: r246118
2017-03-14 09:26:17 +00:00
Richard Biener
778dd3b627
re PR tree-optimization/80030 (valgrind error in vect_get_slp_defs at tree-vect-slp.c:3360)
...
2017-03-14 Richard Biener <rguenther@suse.de>
PR tree-optimization/80030
* tree-vect-stmts.c (vectorizable_store): Plug memleak.
From-SVN: r246117
2017-03-14 08:02:34 +00:00
Kito Cheng
cccfcff414
Use gcc_fallthrough() instead of __attribute__((fallthrough)
...
Without this my build breaks on older compilers like GCC-5.4.
gcc/ChangeLog:
2017-03-13 Kito Cheng <kito.cheng@gmail.com>
* config/riscv/riscv.c (riscv_emit_float_compare>: Use
gcc_fallthrough() instead of __attribute__((fallthrough));
From-SVN: r246116
2017-03-14 03:51:24 +00:00
GCC Administrator
a7af75b2fa
Daily bump.
...
From-SVN: r246115
2017-03-14 00:16:18 +00:00
Joseph Myers
7f20430c91
* es.po: Update.
...
From-SVN: r246112
2017-03-13 23:07:17 +00:00
Gerald Pfeifer
344a2b50b2
gcc.texi: Remove "up" link to (DIR).
...
* doc/gcc.texi: Remove "up" link to (DIR).
* doc/gccint.texi: Ditto.
From-SVN: r246111
2017-03-13 22:27:59 +00:00
Gerald Pfeifer
6abe316eb9
install.texi (Specific): Remove reference to binutils 2.13.
...
* doc/install.texi (Specific) <avr>: Remove reference to
binutils 2.13.
From-SVN: r246110
2017-03-13 21:56:43 +00:00
Ville Voutilainen
648c989484
re PR libstdc++/80034 (unqualified calls to std::distance in std::list::sort)
...
PR libstdc++/80034
* include/bits/list.tcc (merge(list&&)): Use const for the size_t
in the catch-block.
(merge(list&&, _StrictWeakOrdering)): Likewise.
* testsuite/23_containers/list/operations/80034.cc: New.
From-SVN: r246107
2017-03-13 21:41:50 +02:00
Joseph Myers
a00a486562
* de.po, fr.po: Update.
...
From-SVN: r246106
2017-03-13 18:43:28 +00:00
Mark Wielaard
9905ca975c
libiberty: Initialize d_printing in all cplus_demangle_fill_* functions.
...
While integrating the d_printing recursion guard change into gdb I
noticed we forgot to initialize the demangle_component d_printing
field in cplus_demangle_fill_{name,extended_operator,ctor,dtor}.
As is done in cplus_demangle_fill_{component,builtin_type,operator}.
It happened to work because in gcc all demangle_components were
allocated through d_make_empty. But gdb has its own allocation
mechanism (as might other users).
libiberty/ChangeLog:
* cp-demangle.c (cplus_demangle_fill_name): Initialize
demangle_component d_printing.
(cplus_demangle_fill_extended_operator): Likewise.
(cplus_demangle_fill_ctor): Likewise.
(cplus_demangle_fill_dtor): Likewise.
From-SVN: r246105
2017-03-13 18:26:47 +00:00
Ville Voutilainen
fd231ad75a
Implement LWG 2806, Base class of bad_optional_access.
...
* include/std/optional (bad_optional_access):
Derive from std::exception.
(bad_optional_access::bad_optional_access): Adjust.
(bad_optional_access::what): New.
(__throw_bad_optional_access(const char*)):
Remove the parameter and adjust calls.
* testsuite/20_util/optional/cons/value_neg.cc: Adjust.
* testsuite/20_util/optional/typedefs.cc: Likewise.
From-SVN: r246103
2017-03-13 20:03:30 +02:00
Jeff Law
dce15db61b
riscv.c (riscv_emit_float_compare): Use fallthru attribute rather than comments.
...
* config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
attribute rather than comments.
From-SVN: r246101
2017-03-13 11:49:40 -06:00
Jeff Law
097de8ffcb
pdp11.md (movmemhi): Adjust operand numbers to match_scratch operand is highest.
...
* config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
match_scratch operand is highest.
From-SVN: r246100
2017-03-13 11:43:19 -06:00
Martin Liska
a48018b5dc
Do not warn -Wsuggest-attribute=noreturn for main.chkp (PR middle-end/78339).
...
2017-03-13 Martin Liska <mliska@suse.cz>
PR middle-end/78339
* ipa-pure-const.c (warn_function_noreturn): If the declarations
is a CHKP clone, use original declaration.
2017-03-13 Martin Liska <mliska@suse.cz>
PR middle-end/78339
* gcc.target/i386/mpx/pr78339.c: New test.
From-SVN: r246098
2017-03-13 15:30:17 +00:00
Claudiu Zissulescu
0e5172ebf2
[ARC] Code size modifications.
...
gcc/
2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.c (arc_init): Use multiplier whenever we have it.
(arc_conditional_register_usage): Use a different allocation order
when optimizing for size.
* common/config/arc/arc-common.c (arc_option_optimization_table):
Section anchors default on when optimizing for size.
From-SVN: r246091
2017-03-13 13:56:22 +01:00
Claudiu Zissulescu
8c56cc5a88
[ARC] Fix tst_bitfield_tst pattern.
...
gcc/
2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
gcc/testsuite
2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
* testsuite/gcc.target/arc/bitfield.c: New file.
From-SVN: r246090
2017-03-13 13:56:11 +01:00
Claudiu Zissulescu
fa9c1b3c07
[ARC] Add code density instructions.
...
gcc/
2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.c (arc_output_addsi): Emit code density adds.
* config/arc/arc.md (cpu_facility): Add cd variant.
(*movqi_insn): Add code density variant.
(*movhi_insn): Likewise.
(*movqi_insn): Likewise.
(*addsi3_mixed): Likewise.
(subsi3_insn): Likewise.
From-SVN: r246089
2017-03-13 13:56:00 +01:00
Claudiu Zissulescu
27ffcc3602
[ARC] Fix conditional move contstraint
...
Move pattern (movsi_insn) allows predicated instructions to be
instructions which can hold all registers. However, the conditional
variant doesn't. This patch fixes this problem.
2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.md (movsi_cond_exec): Update constraint.
From-SVN: r246088
2017-03-13 13:55:50 +01:00
Claudiu Zissulescu
14555394f4
[ARC] Handle complex PIC move patterns.
...
fwprop step is placing in the REG_EQUIV notes constant pic unspecs
expressions. Then, loop may use these notes for optimizations
rezulting in complex patterns that are not supported by the current
implementation.
The patch adds handling of complex PIC addresses having MINUS or UNARY
operations.
gcc/
2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
expressions with MINUS and UNARY ops.
gcc/testsuite
2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
* gcc.target/arc/pr9001090948.c: New file.
From-SVN: r246087
2017-03-13 13:55:38 +01:00
Nathan Sidwell
16e93e4b0b
PR c++/79393 DR 1658 workaround
...
PR c++/79393 DR 1658 workaround
* method.c (synthesized_method_walk): Check vbases of abstract
classes for dtor walk.
From-SVN: r246085
2017-03-13 11:58:15 +00:00
Kyrylo Tkachov
b8c3660369
[ARM] PR target/79911: Invalid vec_select arguments
...
PR target/79911
* config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
Rename to...
(vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
between vec_select and vector argument.
(vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
(vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
(vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
(vec_sel_widen_usum_lo<mode><V_half>3): ... This.
(vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
(vec_sel_widen_usum_hi<mode><V_half>3): ... This.
From-SVN: r246084
2017-03-13 10:58:48 +00:00
Richard Biener
91cd87db7e
re PR other/79991 (typo in params.def, PARAM_VECT_MAX_PEELING_FOR_ALIGNMENT)
...
2017-03-13 Richard Biener <rguenther@suse.de>
PR other/79991
* params.def (vect-max-peeling-for-alignment): Fix typo.
From-SVN: r246083
2017-03-13 09:13:14 +00:00
GCC Administrator
b510747862
Daily bump.
...
From-SVN: r246082
2017-03-13 00:16:18 +00:00
Gerald Pfeifer
9c88861276
install.texi (Specific): Remove description of issue that only occurred with binutils below 2.18.
...
* doc/install.texi (Specific) <mips-*-*>: Remove description of
issue that only occurred with binutils below 2.18.
From-SVN: r246079
2017-03-12 17:31:00 +00:00
Gerald Pfeifer
665accdffa
install.texi (Specific): No longer refer to binutils 2.11/2.12 minimum.
...
* doc/install.texi (Specific) <cris-axis-elf>: No longer
refer to binutils 2.11/2.12 minimum.
From-SVN: r246078
2017-03-12 13:47:03 +00:00
Gerald Pfeifer
983bd86ddb
install.texi (Specific): Remove link to ftp.kernel.org and simplify binutils requirement.
...
* doc/install.texi (Specific) <powerpc-*-*>: Remove link to
ftp.kernel.org and simplify binutils requirement.
From-SVN: r246077
2017-03-12 11:06:59 +00:00
Ville Voutilainen
06272afbd3
Implement LWG 2934, optional<const T> doesn't compare with T.
...
* include/std/optional
(operator==(const optional<_Tp>&, const optional<_Tp>&)):
Turn into operator==(const optional<_Tp>&, const optional<_Up>&).
(operator!=(const optional<_Tp>&, const optional<_Tp>&)):
Turn into operator!=(const optional<_Tp>&, const optional<_Up>&).
(operator<(const optional<_Tp>&, const optional<_Tp>&)):
Turn into operator<(const optional<_Tp>&, const optional<_Up>&.
(operator>(const optional<_Tp>&, const optional<_Tp>&)):
Turn into operator>(const optional<_Tp>&, const optional<_Up>&.
(operator<=(const optional<_Tp>&, const optional<_Tp>&)):
Turn into operator<=(const optional<_Tp>&, const optional<_Up>&).
(operator>=(const optional<_Tp>&, const optional<_Tp>&)):
Turn into operator>=(const optional<_Tp>&, const optional<_Up>&).
(operator==(const optional<_Tp>&, const _Tp&)):
Turn into operator==(const optional<_Tp>&, const _Up&).
(operator==(const _Tp&, const optional<_Tp>&)):
Turn into operator==(const _Up&, const optional<_Tp>&).
(operator!=(const optional<_Tp>&, const _Tp&)):
Turn into operator!=(const optional<_Tp>&, const _Up&).
(operator!=(const _Tp&, const optional<_Tp>&)):
Turn into operator!=(const _Up&, const optional<_Tp>&).
(operator<(const optional<_Tp>&, const _Tp&)):
Turn into operator<(const optional<_Tp>&, const _Up&).
(operator<(const _Tp&, const optional<_Tp>&)):
Turn into operator<(const _Up&, const optional<_Tp>&).
(operator>(const optional<_Tp>&, const _Tp&)):
Turn into operator>(const optional<_Tp>&, const _Up&).
(operator>(const _Tp&, const optional<_Tp>&)):
Turn into operator>(const _Up&, const optional<_Tp>&).
(operator<=(const optional<_Tp>&, const _Tp&)):
Turn into operator<=(const optional<_Tp>&, const _Up&).
(operator<=(const _Tp&, const optional<_Tp>&)):
Turn into operator<=(const _Up&, const optional<_Tp>&).
(operator>=(const optional<_Tp>&, const _Tp&)):
Turn into operator>=(const optional<_Tp>&, const _Up&).
(operator>=(const _Tp&, const optional<_Tp>&)):
Turn into operator>=(const _Up&, const optional<_Tp>&).
* testsuite/20_util/optional/relops/7.cc: New.
From-SVN: r246076
2017-03-12 12:32:31 +02:00
GCC Administrator
dc5551339d
Daily bump.
...
From-SVN: r246075
2017-03-12 00:16:22 +00:00