aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-02-19re PR fortran/79335 (Conditional jump or move depends on uninitialised in ↵Andre Vehreschild3-5/+18
value get_scalar_to_descriptor_type(tree_node*, symbol_attribute) (trans-expr.c:53)) gcc/fortran/ChangeLog: 2017-02-19 Andre Vehreschild <vehre@gcc.gnu.org> PR fortran/79335 * trans-array.c (duplicate_allocatable_coarray): Ensure attributes passed are properly initialized. (structure_alloc_comps): Same. * trans-expr.c (gfc_trans_structure_assign): Same. From-SVN: r245579
2017-02-19re PR c++/79380 (ICE on C++11 code with illegal alignas specifier on ↵Paolo Carlini4-0/+24
x86_64-linux-gnu: unexpected expression ‘f’ of kind overload) /cp 2017-02-19 Paolo Carlini <paolo.carlini@oracle.com> PR c++/79380 * typeck.c (cxx_alignas_expr): Reject a non-integral alignas argument. /testsuite 2017-02-19 Paolo Carlini <paolo.carlini@oracle.com> PR c++/79380 * g++.dg/cpp0x/alignas8.C: New. From-SVN: r245578
2017-02-19Revert:Uros Bizjak2-1/+8
2016-05-30 Uros Bizjak <ubizjak@gmail.com> * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)". From-SVN: r245577
2017-02-19C++17 GB50 resolution (P0505R0)Dinka Ranns5-11/+114
2017-02-19 Dinka Ranns <dinka.ranns@googlemail.com> C++17 GB50 resolution * include/std/chrono (duration::operator++()): Add _GLIBCXX17_CONSTEXPR. (duration::operator++(int)): Likewise. (duration::operator--()): Likewise. (duration::operator--(int)): Likewise. (duration::operator+=(const duration&)): Likewise. (duration::operator-=(const duration&)): Likewise. (duration::operator*=(const rep&)): Likewise. (duration::operator/=(const rep&)): Likewise. (duration::operator%=(const rep&)): Likewise. (duration::operator%=(const duration&)): Likewise. (time_point::operator+=(const duration&)): Likewise. (time_point::operator-=(const duration&)): Likewise. * testsuite/20_util/duration/arithmetic/constexpr_c++17.cc: New test. * testsuite/20_util/duration/literals/range.cc: Adjust dg-error. * testsuite/20_util/time_point/arithmetic/constexpr.cc: New test. From-SVN: r245575
2017-02-19PR c++/69523 make -Wliteral-suffix control warningJonathan Wakely6-2/+39
gcc: PR c++/69523 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update description. gcc/cp: 2017-02-19 Eric Fiselier <eric@efcs.ca> Jonathan Wakely <jwakely@redhat.com> PR c++/69523 * parser.c (cp_parser_unqualified_id): Use OPT_Wliteral_suffix to control warning about literal suffix identifiers without a leading underscore. gcc/testsuite: 2017-02-19 Eric Fiselier <eric@efcs.ca> Jonathan Wakely <jwakely@redhat.com> PR c++/69523 * g++.dg/cpp0x/Wliteral-suffix2.C: New test. From-SVN: r245574
2017-02-19* doc/xml/manual/debug.xml: Adjust link to ThreadSanitizer.Gerald Pfeifer2-1/+5
From-SVN: r245572
2017-02-19gimple-parser.c (c_parser_gimple_postfix_expression): Check return value of ↵Prathamesh Kulkarni2-0/+15
c_parser_parse_ssa_name against error_mark_node and emit... 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> * gimple-parser.c (c_parser_gimple_postfix_expression): Check return value of c_parser_parse_ssa_name against error_mark_node and emit error if ssa name is anonymous and written as default definition. From-SVN: r245571
2017-02-19gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format for ↵Prathamesh Kulkarni6-5/+70
FMA_EXPR. 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org> * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format for FMA_EXPR. c/ * gimple-parser.c (c_parser_gimple_postfix_expression): Handle FMA_EXPR. testsuite/ * gcc.dg/gimplefe-26.c: New test. From-SVN: r245570
2017-02-19Daily bump.GCC Administrator1-1/+1
From-SVN: r245569
2017-02-18io.xml: Update link to groups.google.com.Gerald Pfeifer2-2/+7
* doc/xml/manual/io.xml: Update link to groups.google.com. Tweak link description. From-SVN: r245565
2017-02-18final.c (last_columnnum, [...]): New variables.Jakub Jelinek10-47/+143
* final.c (last_columnnum, override_columnnum): New variables. (final_start_function): Set last_columnnum, pass it to begin_prologue hook and pass 0 to dwarf2out_begin_prologue. (final_scan_insn): Update override_columnnum. Pass last_columnnum to source_line debug hook. (notice_source_line): Compute last_columnnum and for debug_column_info return true on column changes. * debug.h (struct gcc_debug_hooks): Add column argument to source_line and begin_prologue hooks. (debug_nothing_int_charstar_int_bool): Remove prototype. (debug_nothing_int_int_charstar, debug_nothing_int_int_charstar_int_bool): New prototypes. (dwarf2out_begin_prologue): Add column argument. * debug.c (do_nothing_debug_hooks): Adjust source_line and begin_prologue hooks. (debug_nothing_int_charstar_int_bool): Remove. (debug_nothing_int_int_charstar, debug_nothing_int_int_charstar_int_bool): New functions. * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it through to dwarf2out_source_line. (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook. (dwarf2out_source_line): Add column argument, emit it if requested. * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column arguments. * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise. * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise. * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it through to dwarf2out_begin_prologue. (vmsdbgout_source_line): Add column argument, pass it through to dwarf2out_source_line. * dbxout.c (dbxout_begin_prologue): Add column argument, adjust dbxout_source_line caller. (dbxout_source_line): Add column argument. From-SVN: r245564
2017-02-18common.opt (gno-column-info, [...]): New options.Jakub Jelinek4-6/+60
* common.opt (gno-column-info, gcolumn-info): New options. * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix. (check_die): Also test for multiple DW_AT_decl_column attributes. (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add DW_AT_decl_column if requested. (gen_subprogram_die): Compare and/or add also DW_AT_decl_column if requested. (gen_variable_die): Likewise. (add_call_src_coords_attributes): Add DW_AT_call_column if requested. * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document. From-SVN: r245563
2017-02-18thread_local-order2.C: xfail on hppa*-*-hpux*.John David Anglin2-1/+5
* g++.dg/tls/thread_local-order2.C: xfail on hppa*-*-hpux*. From-SVN: r245562
2017-02-18re PR target/79569 (Unrecognized command line option ‘-m3dnowa’)Jakub Jelinek7-12/+46
PR target/79569 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report. * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define. (ix86_handle_option): Handle OPT_m3dnowa. * doc/invoke.texi (-m3dnowa): Document. * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use -m3dnowa instead of -m3dnow -march=athlon. * gcc.target/i386/3dnowA-3.c: New test. From-SVN: r245561
2017-02-18re PR target/79559 (ICE in ix86_print_operand, at config/i386/i386.c:18189)Jakub Jelinek4-15/+49
PR target/79559 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage instead of gcc_assert for K, r and R code checks. Formatting fixes. * gcc.target/i386/pr79559.c: New test. From-SVN: r245560
2017-02-18* doc/xml/manual/profile_mode.xml: Fix link.Gerald Pfeifer2-1/+5
From-SVN: r245559
2017-02-18Daily bump.GCC Administrator1-1/+1
From-SVN: r245558
2017-02-17Restore DECIMAL_DIG macro to C99/C11 value.Joseph Myers11-32/+27
By extending the set of floating types, TS 18661-3 thereby affected the definition of DECIMAL_DIG, which is defined in terms of the "widest supported floating type". This is not conditional on whether __STDC_WANT_IEC_60559_TYPES_EXT__ is defined when <float.h> is included. I raised this possible incompatibility with C11 (an implementation should be able to conform simultaneously with C11, and with C11 + TS 18661) in DR#501. This is not yet resolved, but the latest proposal <http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2108.pdf> would obsolete DECIMAL_DIG with the intention of limiting it to the C11 types (so making it equivalent to LDBL_DECIMAL_DIG). (This proposal is intended to go along with a corresponding change to TS 18661-3 to avoid the new types and non-arithmetic interchange encodings affecting the value of DECIMAL_DIG.) To avoid releasing GCC 7 with a wider-than-C11 value of DECIMAL_DIG and possibly reverting back to a C11 value in a future release, this patch reverts back to the C11 value now. If the proposed resolution to DR#501 changes again so that DECIMAL_DIG *should* have a wider-than-C11 value, we can move back to a wider-than-C11 value in GCC 8. Bootstrapped with no regressions on x86_64-pc-linux-gnu. gcc/c-family: * c-cppbuiltin.c (builtin_define_float_constants): Define __DECIMAL_DIG__ to the value for long double. gcc/testsuite: * gcc.dg/c11-float-2.c: New test. * gcc.dg/torture/float128-floath.c, gcc.dg/torture/float128x-floath.c, gcc.dg/torture/float16-floath.c, gcc.dg/torture/float32-floath.c, gcc.dg/torture/float32x-floath.c, gcc.dg/torture/float64-floath.c, gcc.dg/torture/float64x-floath.c: Do not test comparison of *_DECIMAL_DIG macros with DECIMAL_DIG. From-SVN: r245555
2017-02-17PR c++/79508 - lookup error with member templateJason Merrill3-1/+33
* parser.c (cp_parser_template_name): Clear parser->context->object_type if we aren't doing lookup. From-SVN: r245553
2017-02-17PR c++/78690 - ICE with using and global type with same nameJason Merrill3-0/+25
* pt.c (type_dependent_object_expression_p): True for IDENTIFIER_NODE. From-SVN: r245549
2017-02-17re PR target/79261 (vec_xxpermdi appears to have endian issues)Bill Schmidt6-6/+125
[gcc] 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR target/79261 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be. * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call generator for vsx_xxpermdi_<mode>_be. * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to force big-endian semantics. (vsx_xxpermdi_<mode>_be): New define_expand with same implementation as previous version of vsx_xxpermdi_<mode>. [gcc/testsuite] 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR target/79261 * gcc.target/powerpc/vec-xxpermdi.c: New file. From-SVN: r245545
2017-02-17PR c++/79549 - C++17 ICE with non-type auto template parameter packJason Merrill3-2/+23
* pt.c (convert_template_argument): Just return an auto arg pack. (tsubst_template_args): Don't tsubst an auto pack type. From-SVN: r245544
2017-02-17PR c++/79556 - C++17 ICE with non-type autoJason Merrill3-0/+15
* pt.c (do_auto_deduction): Don't try to deduce from null type. From-SVN: r245543
2017-02-17re PR tree-optimization/79327 (wrong code at -O2 and -fprintf-return-value)Jakub Jelinek2-20/+15
PR tree-optimization/79327 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust variable, its initialization and use. From-SVN: r245542
2017-02-17i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.Julia Koval20-10/+113
* common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New. (OPTION_MASK_ISA_PKU_UNSET): New. (ix86_handle_option): Handle -mrdpid. * config/i386/cpuid.h (bit_RDPID): New. * config/i386/driver-i386.c (host_detect_local_cpu): Detect RDPID feature. * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New. * config/i386/i386-c.c (ix86_target_macros_internal): Handle RDPID flag. * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts. (ix86_valid_target_attribute_inner_p): Add "rdpid". (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID. * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New. * config/i386/i386.md (define_insn "rdpid"): New. * config/i386/i386.opt Add -mrdpid. * config/i386/immintrin.h (_rdpid_u32): New. testsuite/ChangeLog: * gcc.target/i386/rdpid.c New test. * gcc.target/i386/sse-12.c: Add -mrdpid. * gcc.target/i386/sse-13.c: Ditto. * gcc.target/i386/sse-14.c: Ditto. * gcc.target/i386/sse-22.c: Ditto. * gcc.target/i386/sse-23.c: Ditto. * g++.dg/other/i386-2.C: Ditto. * g++.dg/other/i386-3.C: Ditto. From-SVN: r245540
2017-02-17PR c++/79533 - C++17 ICE with temporary cast to referenceJason Merrill3-1/+25
* call.c (build_over_call): Conversion to a reference prevents copy elision. From-SVN: r245538
2017-02-17re PR rtl-optimization/79541 (lra reads uninitialized memory (with invalid ↵Vladimir Makarov2-3/+9
input)) 2017-02-17 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/79541 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn instead of transforming it into USE. From-SVN: r245536
2017-02-17libgo: update to final Go 1.8 releaseIan Lance Taylor20-265/+894
Along with the update this fixes a problem that was always present but only showed up with the new reflect test. When a program used a **unsafe.Pointer and stored the value in an interface type, the generated type descriptor pointed to the GC data for *unsafe.Pointer. It did that by name, but we were not generating a variable with the right name. Reviewed-on: https://go-review.googlesource.com/37144 From-SVN: r245535
2017-02-17rs6000: Fix extendsfdf2 for signaling NaNsSegher Boessenkool2-4/+26
A cast from float to double should turn a signaling NaN into a quiet NaN, if using -fsignaling-nans. On PowerPC single-precision floats are stored as double precision in registers, and so, the cast normally does nothing. This causes gcc.dg/pr59833.c to fail (it does such a cast, and expects a quiet NaN as output). This patch adds a new pattern, used with -fsignaling-nans in effect, that creates an frsp instruction (or xsrsp) in this case. Since the input already is SFmode, that instruction turns signaling NaNs into quiet NaNs and does nothing more. * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments. If HONOR_SNANS (SFmode) force the input to a register. (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition. (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates an frsp or similar insn. From-SVN: r245534
2017-02-17testsuite: pr59833.c and pr61441.c should use -fsignaling-nansSegher Boessenkool3-2/+7
The testcases pr59833.c and pr61441.c check whether signaling NaNs as input to some operation result in quiet NaNs. Without -fsignaling-nans this is not guaranteed to happen. So, this patch add this option to these testcases. * gcc.dg/pr59833.c: Add -fsignaling-nans to options. * gcc.dg/pr61441.c: Ditto. From-SVN: r245533
2017-02-17Increase minimum for a param (PR rtl-optimization/79577).Martin Liska2-1/+6
2017-02-17 Martin Liska <mliska@suse.cz> PR rtl-optimization/79577 * params.def (selsched-max-sched-times): Increase minimum to 1. From-SVN: r245532
2017-02-17Use HOST_WIDE_INT for a param calculation (PR rtl-optimization/79574).Martin Liska4-2/+23
2017-02-17 Martin Liska <mliska@suse.cz> PR rtl-optimization/79574 * gcc.dg/pr79574.c: New test. 2017-02-17 Martin Liska <mliska@suse.cz> PR rtl-optimization/79574 * gcse.c (want_to_gcse_p): Prevent integer overflow. From-SVN: r245531
2017-02-17Introduce ssa_defined_default_def_p function (PR tree-optimization/79529).Martin Liska4-10/+33
2017-02-17 Martin Liska <mliska@suse.cz> PR tree-optimization/79529 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use ssa_defined_default_def_p to handle cases which are implicitly defined. * tree-ssa.c (ssa_defined_default_def_p): New function. (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases which are implicitly defined. * tree-ssa.h (ssa_defined_default_def_p): Declare. From-SVN: r245530
2017-02-17re PR tree-optimization/79576 (ICE in gimple_stmt_nonnegative_warnv_p in ↵Richard Biener2-1/+6
gcc/gimple-fold.c:6979) 2017-02-17 Richard Biener <rguenther@suse.de> PR middle-end/79576 * params.def (max-ssa-name-query-depth): Limit to 10. From-SVN: r245529
2017-02-17re PR inline-asm/79552 (Wrong code generation due to -fschedule-insns, with ↵Richard Biener2-2/+14
__restrict__ and inline asm) 2017-02-17 Richard Biener <rguenther@suse.de> PR tree-optimization/79552 * tree-ssa-structalias.c (visit_loadstore): Properly verify default defs. From-SVN: r245528
2017-02-17re PR bootstrap/79567 (Compiler-warning "unknown escape sequence '\x'" about ↵Richard Biener2-0/+10
genmatch-generated C-files on mingw-host) 2017-02-17 Richard Biener <rguenther@suse.de> PR bootstrap/79567 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2. From-SVN: r245527
2017-02-17re PR middle-end/79536 (ICE in fold_binary_loc, at fold-const.c:9060)Marek Polacek4-10/+45
PR middle-end/79536 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr. (fold_negate_expr): New wrapper. * gcc.dg/torture/pr79536.c: New test. From-SVN: r245526
2017-02-16invoke.texi (C++ Dialect Options): Correct terminology and de-emphasize ↵Sandra Loosemore2-13/+12
pre-standard behavior. 2017-02-16 Sandra Loosemore <sandra@codesourcery.com> gcc/ * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: Correct terminology and de-emphasize pre-standard behavior. From-SVN: r245525
2017-02-17Daily bump.GCC Administrator1-1/+1
From-SVN: r245524
2017-02-16re PR rtl-optimization/79286 (ira and lra wrong code at -O2 and -Os on ↵Alan Modra4-2/+80
i686-linux) 2017-02-16 Alan Modra <amodra@gmail.com> PR rtl-optimization/79286 * ira.c (def_dominates_uses): New function. (update_equiv_regs): Don't create an equivalence for insns that may trap where the register def does not dominate the use. * gcc.c-torture/execute/pr79286.c: New. From-SVN: r245521
2017-02-16re PR sanitizer/79562 (sanitizer breaks bootstrap of x86_64-*-freebsd)Andreas Tobler2-6/+7
2017-02-16 Andreas Tobler <andreast@gcc.gnu.org> PR sanitizer/79562 * sanitizer_common/sanitizer_platform_limits_posix.cc: Cherry-pick upstream r294806. From-SVN: r245520
2017-02-16PR c++/79502 - lost nodiscard attributeJakub Jelinek6-9/+107
* pt.c (apply_late_template_attributes): Do apply non-dependent attributes to types. Co-Authored-By: Jason Merrill <jason@redhat.com> From-SVN: r245516
2017-02-16* g++.dg/cpp0x/constexpr-70001-[34].C: Only run as C++14.Jason Merrill2-2/+6
From-SVN: r245515
2017-02-16re PR rtl-optimization/78127 (AArch64 internal compiler error: in ↵Vladimir Makarov2-8/+24
lra_eliminate, at lra-eliminations.c:1440) 2017-02-16 Vladimir Makarov <vmakarov@redhat.com> PR rtl-optimization/78127 * lra.c (lra): Call lra_eliminate before finish the loop after lra_constraint. From-SVN: r245514
2017-02-16exgettext (BUGURL): Introduce, and use instead of four hardcoded instances.Gerald Pfeifer2-4/+11
* exgettext (BUGURL): Introduce, and use instead of four hardcoded instances. From-SVN: r245513
2017-02-16PR c++/78572 - ICE with self-modifying array initializerJason Merrill3-1/+16
* constexpr.c (cxx_eval_store_expression): The object we're initializing is outside the constant-expression. From-SVN: r245511
2017-02-16PR c++/79050 - ICE with undeduced auto and LTOJason Merrill3-2/+17
* decl.c (poplevel): Remove undeduced auto decls. From-SVN: r245510
2017-02-16value-unwind.h: New file.Andrew Pinski3-0/+35
* config/aarch64/value-unwind.h: New file. * config.host (aarch64*-*-*): Add aarch64/value-unwind.h to tm_file. From-SVN: r245508
2017-02-16policy_data_structures.xml: Simplify and standardize references to boost.org.Gerald Pfeifer4-5/+13
* doc/xml/manual/policy_data_structures.xml: Simplify and standardize references to boost.org. * doc/xml/manual/policy_data_structures_biblio.xml: Ditto. * doc/xml/manual/shared_ptr.xml: Ditto. From-SVN: r245507
2017-02-16PR libstdc++/60936 fix length calculationJonathan Wakely2-1/+7
PR libstdc++/60936 * src/c++11/snprintf_lite.cc (__concat_size_t): Calculate length written to buffer, not length remaining in buffer. From-SVN: r245505