- 07 Feb, 2018 24 commits
-
-
From-SVN: r257464
Joseph Myers committed -
The escape analysis support is not yet good enough to avoid escaping the argument to funcPC. This causes unnecessary and often harmful memory allocation. E.g., (*cpuProfile).addExtra can be called from a signal handler, and it must not allocate memory. Move the calls to funcPC to use variables instead. This was done in the original migration to using funcPC, but was not done for newer code. In one case, in signal handling code, use getSigtramp. Reviewed-on: https://go-review.googlesource.com/92735 From-SVN: r257463
Ian Lance Taylor committed -
2018-02-07 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/68560 * trans-intrinsic.c (gfc_conv_intrinsic_shape): New function. (gfc_conv_intrinsic_function): Call it. 2018-02-07 Thomas Koenig <tkoenig@gcc.gnu.org> PR fortran/68560 * gfortran.dg/shape_9.f90: New test. From-SVN: r257462
Thomas Koenig committed -
2018-02-06 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/82049 * match.c (gfc_match_type_spec): If the charlen is non-NULL, then try to resolve it. While here return early if possible. 2018-02-06 Steven G. Kargl <kargl@gcc.gnu.org> PR fortran/82049 * gfortran.dg/assumed_charlen_parameter.f90: New test. From-SVN: r257459
Steven G. Kargl committed -
* testsuite/libgomp.oacc-c-c++-common/pr84217.c (abort) [__cplusplus]: Declare extern "C". From-SVN: r257457
Rainer Orth committed -
lookup_name_fuzzy can offer some reserved words as suggestions for misspelled words, helping with "singed"/"signed" typos. PR c++/81610 and PR c++/80567 report problems where the C++ frontend suggested "if", "for" and "else" as corrections for misspelled variable names. The root cause is that in r247233 ("Fix spelling suggestions for reserved words (PR c++/80177)") I loosened the conditions on these reserved words, adding this condition: if (kind == FUZZY_LOOKUP_TYPENAME) to the logic for rejecting words that don't start decl-specifiers, to allow for "static_assert" to be offered. This is too loose a condition: we don't want to suggest *any* reserved word when we're in a context where we don't know we expect a typename. For the kinds of error-recover situations where we're suggesting spelling corrections we don't have much contextual information, so it seems prudent to be stricter about which reserved words we offer as spelling suggestions; I don't think it makes sense for us to suggest e.g. "for". This patch implements that by effectively reinstating the old logic, but special-casing RID_STATIC_ASSERT, moving the logic to a new subroutine (in case we want to allow for other special-cases). I attempted to add suggestions for the various RID_*CAST, to cope with e.g. "reinterptet_cast" (I can never type that correctly on the first try), but the following '<' token confuses the error-recovery enough that the suggestion code isn't triggered. gcc/cp/ChangeLog: PR c++/81610 PR c++/80567 * name-lookup.c (suggest_rid_p): New function. (lookup_name_fuzzy): Replace enum-rid-filtering logic with call to suggest_rid_p. gcc/testsuite/ChangeLog: PR c++/81610 PR c++/80567 * g++.dg/spellcheck-reswords.C: New test case. * g++.dg/spellcheck-stdlib.C: Remove xfail from dg-bogus suggestion of "if". From-SVN: r257456
David Malcolm committed -
2018-02-07 Alan Hayward <alan.hayward@arm.com> * genextract.c (push_pathstr_operand): New function to support [a-zA-Z]. (walk_rtx): Call push_pathstr_operand. (print_path): Support [a-zA-Z]. From-SVN: r257455
Alan Hayward committed -
PR c++/84181 * pt.c (extract_locals_r, extract_local_specs): New. (tsubst_pack_expansion): Use them. From-SVN: r257454
Jason Merrill committed -
2018-02-07 Richard Biener <rguenther@suse.de> PR tree-optimization/84037 * tree-vectorizer.h (struct _loop_vec_info): Add ivexpr_map member. (cse_and_gimplify_to_preheader): Declare. (vect_get_place_in_interleaving_chain): Likewise. * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize ivexpr_map. (_loop_vec_info::~_loop_vec_info): Delete it. (cse_and_gimplify_to_preheader): New function. * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Export. * tree-vect-stmts.c (vectorizable_store): CSE base and steps. (vectorizable_load): Likewise. For grouped stores always base the IV on the first element. * tree-vect-loop-manip.c (vect_loop_versioning): Unshare versioning condition before gimplifying. From-SVN: r257453
Richard Biener committed -
2018-02-07 Martin Liska <mliska@suse.cz> PR c++/84059. * class.c (add_method): Append argument value. * cp-tree.h (maybe_version_functions): Add new argument. * decl.c (decls_match): Call it if a declaration does not have DECL_FUNCTION_VERSIONED. (maybe_version_functions): record argument is added. 2018-02-07 Martin Liska <mliska@suse.cz> PR c++/84059. * g++.dg/ext/mv26.C: New test. From-SVN: r257451
Martin Liska committed -
* tree-eh.c (operation_could_trap_helper_p): Ignore honor_trapv for *DIV_EXPR and *MOD_EXPR. From-SVN: r257450
Jakub Jelinek committed -
2018-02-07 Tom de Vries <tom@codesourcery.com> * gcc.dg/pr83844.c: Require effective target alloca. From-SVN: r257447
Tom de Vries committed -
2018-02-07 Tom de Vries <tom@codesourcery.com> * gcc.dg/torture/pr83055.c: Require effective target global_constructor. From-SVN: r257446
Tom de Vries committed -
Since -fcf-protection requires both -mshstk and -mibt, use -fcf-protection=return with -mshstk in cet-intrin-4.c. PR target/84243 * gcc.target/i386/cet-intrin-4.c (dg-options): Use -fcf-protection=return. From-SVN: r257445
H.J. Lu committed -
Since ix86_option_override_internal sets the CF_SET bit in flag_cf_protection and it can be called more than once via pragma, we need to mask out the CF_SET bit when checking flag_cf_protection. PR target/84248 * config/i386/i386.c (ix86_option_override_internal): Mask out the CF_SET bit when checking -fcf-protection. From-SVN: r257444
H.J. Lu committed -
2018-02-07 Tom de Vries <tom@codesourcery.com> PR libgomp/84217 * omp-expand.c (expand_oacc_collapse_init): Ensure diff_type is large enough. * c-c++-common/goacc/pr84217.c: New test. * gfortran.dg/goacc/pr84217.f90: New test. * testsuite/libgomp.oacc-c-c++-common/pr84217.c: New test. From-SVN: r257443
Tom de Vries committed -
From-SVN: r257442
Jan Hubicka committed -
re PR tree-optimization/84204 ([graphite] ICE in set_codegen_error, at graphite-isl-ast-to-gimple.c:206) 2018-02-07 Richard Biener <rguenther@suse.de> PR tree-optimization/84204 * tree-chrec.c (chrec_fold_plus_1): Remove size limiting in this place. * gcc.dg/graphite/pr84204.c: New testcase. PR tree-optimization/84205 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Also special-case isl_ast_op_zdiv_r. * gcc.dg/graphite/pr84205.c: New testcase. PR tree-optimization/84223 * graphite-scop-detection.c (gather_bbs::before_dom_children): Only add conditions from within the region. (gather_bbs::after_dom_children): Adjust. * gfortran.dg/graphite/pr84223.f90: New testcase. From-SVN: r257441
Richard Biener committed -
PR target/84209 * config/avr/avr.h (GENERAL_REGNO_P, GENERAL_REG_P): New macros. * config/avr/avr.md: Only post-reload split REG-REG moves if either register is REGERAL_REG_P. From-SVN: r257440
Georg-Johann Lay committed -
re PR c++/71662 ([DR 1485] ICE on invalid C++11 code with unqualified name look up: in tsubst_copy, at cp/pt.c:14010) 2018-02-07 Paolo Carlini <paolo.carlini@oracle.com> PR c++/71662 * g++.dg/cpp0x/scoped_enum7.C: New. From-SVN: r257439
Paolo Carlini committed -
2018-02-07 Christophe Lyon <christophe.lyon@linaro.org> PR tree-optimization/83008 * gcc.dg/cse_recip.c: Add -fno-tree-slp-vectorize. From-SVN: r257438
Christophe Lyon committed -
PR tree-optimization/84235 * tree-ssa-scopedtables.c (avail_exprs_stack::simplify_binary_operation): Fir MINUS_EXPR, punt if the subtraction is performed in floating point type where NaNs are honored. For *DIV_EXPR, punt for ALL_FRACT_MODE_Ps where we can't build 1. Formatting fix. * gcc.c-torture/execute/ieee/pr84235.c: New test. From-SVN: r257437
Jakub Jelinek committed -
Normally we ensure to build a single Btype for identical types. We did not do this for methods table of identical interface types, however. If there are two identical interface type I, I2, they have the same Btype BI, but different Btypes for their methods tables, BM and BM2. From the backend's point of view only one of them is linked to BI. This can cause inconsitency in the backend's type system, like unresolved placeholder. This CL ensures we create a single Btype for methods table of identical interface type. Reviewed-on: https://go-review.googlesource.com/92436 From-SVN: r257436
Ian Lance Taylor committed -
From-SVN: r257435
GCC Administrator committed
-
- 06 Feb, 2018 16 commits
-
-
Don't pass x86-only options on non-x86 targets in c-c++-common/fcf-protection-[67].c (PR testsuite/84243) PR testsuite/84243 * c-c++-common/fcf-protection-6.c: Only pass -mshstk on x86 targets. * c-c++-common/fcf-protection-7.c: Likewise for -mibt. From-SVN: r257432
Rainer Orth committed -
PR target/84146 * config/i386/i386.c (rest_of_insert_endbranch): Only skip NOTE_INSN_CALL_ARG_LOCATION after a call, not anything else, and skip it regardless of bb boundaries. Use CALL_P macro, don't test INSN_P (insn) together with CALL_P or JUMP_P check unnecessarily, formatting fix. * gcc.target/i386/pr84146.c: New test. From-SVN: r257431
Jakub Jelinek committed -
* config/arm/thumb2.md: (*thumb2_mov_negscc): Split only if TARGET_THUMB2 && !arm_restrict_it. (*thumb_mov_notscc): Ditto. * gcc.target/arm/pr7676.c: New testcase. From-SVN: r257430
Michael Collison committed -
re PR target/84154 (PowerPC GCC 7 and 8 have regression in converting fp to short/char and returning it) 2018-02-06 Michael Meissner <meissner@linux.vnet.ibm.com> PR target/84154 * config/rs6000/rs6000.md (su code attribute): Use "u" for unsigned_fix, not "s". From-SVN: r257429
Michael Meissner committed -
* configure.ac (gcc_fn_eh_frame_ro): New function. (gcc_cv_as_cfi_directive): Check both 32 and 64-bit assembler for correct .eh_frame permissions. * configure: Regenerate. From-SVN: r257424
Rainer Orth committed -
* doc/invoke.texi: Add section for the PowerPC SPE backend. Remove irrelevant options. From-SVN: r257422
Andrew Jenner committed -
PR tree-optimization/84225 Add test for previous commit for PR84225. From-SVN: r257420
Aldy Hernandez committed -
rs6000.c (rs6000_option_override_internal): Display warning message for -mno-speculate-indirect-jumps. [gcc] 2018-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com> * config/rs6000/rs6000.c (rs6000_option_override_internal): Display warning message for -mno-speculate-indirect-jumps. [gcc/testsuite] 2018-02-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com> * gcc.target/powerpc/safe-indirect-jump-1.c: Detect deprecation warning for -mno-speculate-indirect-jumps. * gcc.target/powerpc/safe-indirect-jump-2.c: Likewise. * gcc.target/powerpc/safe-indirect-jump-3.c: Likewise. * gcc.target/powerpc/safe-indirect-jump-4.c: Likewise. * gcc.target/powerpc/safe-indirect-jump-5.c: Likewise. * gcc.target/powerpc/safe-indirect-jump-6.c: Likewise. * gcc.target/powerpc/safe-indirect-jump-7.c: Likewise. From-SVN: r257419
Bill Schmidt committed -
* config/powerpcspe/powerpcspe.opt: (msimple-fpu, mfpu) Add Undocumented. * config/powerpcspe/sysv4.opt (mbit-align): Likewise. From-SVN: r257417
Andrew Jenner committed -
PR tree-optimization/84225 * tree-eh.c (find_trapping_overflow): Only call operation_no_trapping_overflow when ANY_INTEGRAL_TYPE_P. From-SVN: r257416
Aldy Hernandez committed -
Check for negative numbers with very small magnitudes that will round to negative zero, and force them to positive zero instead. This implements the spec clarification in https://golang.org/cl/14727. The test is in https://golang.org/cl/91895. Fixes golang/go#12621 Reviewed-on: https://go-review.googlesource.com/92175 From-SVN: r257415
Ian Lance Taylor committed -
PR target/84145 * config/i386/i386.c: Reimplement the check of possible options -mibt/-mshstk conbination. Change error messages. * doc/invoke.texi: Fix a typo: remove extra '='. * c-c++-common/fcf-protection-1.c: Change a compared message. * c-c++-common/fcf-protection-2.c: Likewise. * c-c++-common/fcf-protection-3.c: Likewise. * c-c++-common/fcf-protection-5.c: Likewise. * c-c++-common/fcf-protection-6.c: New test. * c-c++-common/fcf-protection-7.c: Likewise. From-SVN: r257414
Igor Tsimbalist committed -
The offset field in structfield has changed to offsetAnon, and now requires a shift to get the actual offset value. Fixes golang/go#23391 Reviewed-on: https://go-review.googlesource.com/92275 From-SVN: r257413
Ian Lance Taylor committed -
PR lto/81004 * lto.c: Include builtins.h (register_resolution): Merge resolutions in case trees was merged across units. (lto_maybe_register_decl): Break out from ... (lto_read_decls): ... here. (unify_scc): Also register decls here. (read_cgraph_and_symbols): Sanity check that all resolutions was read. From-SVN: r257412
Jan Hubicka committed -
PR tree-optimization/84228 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Skip debug statements. * c-c++-common/Wstringop-truncation-3.c: New test. From-SVN: r257411
Marek Polacek committed -
re PR target/82641 (Unable to enable crc32 for a certain function with target attribute on ARM (aarch32)) 2018-02-06 Tamar Christina <tamar.christina@arm.com> PR target/82641 * config/arm/arm.c (arm_print_asm_arch_directives): Record already emitted arch directives. * config/arm/arm-c.c (arm_cpu_builtins): Undefine __ARM_ARCH and __ARM_FEATURE_COPROC before changing architectures. gcc/testsuite 2018-02-06 Tamar Christina <tamar.christina@arm.com> PR target/82641 * gcc.target/arm/pragma_arch_switch_2.c: New. From-SVN: r257410
Tamar Christina committed
-