- 12 May, 2017 33 commits
-
-
From-SVN: r247996
Joseph Myers committed -
re PR testsuite/80643 (NA->FAIL: gcc.dg/pr79214.c gcc.dg/pr79222.c gcc.dg/pr79223.c gcc.dg/tree-ssa/builtins-folding-gimple-ub.c) gcc/testsuite/ChangeLog: PR testsuite/80643 * gfortran.dg/mvbits_7.f90: Prune diagnostic output incidental to the purpose of the test. From-SVN: r247993
Martin Sebor committed -
compare-elim.c (try_eliminate_compare): Canonicalize operation with embedded compare to [(set (reg:CCM) (compare:CCM... * compare-elim.c (try_eliminate_compare): Canonicalize operation with embedded compare to [(set (reg:CCM) (compare:CCM (operation) (immediate))) (set (reg) (operation)]. * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define. From-SVN: r247992
Uros Bizjak committed -
PR target/80723 * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the cost of adding a carry flag for ADC instruction. [case MINUS]: Ignore the cost of subtracting a carry flag for SBB instruction. From-SVN: r247991
Uros Bizjak committed -
[gcc] 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org> * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h, and x86intrin.h * config/rs6000/bmiintrin.h: New file. * config/rs6000/bmi2intrin.h: New file. * config/rs6000/x86intrin.h: New file. [gcc/testsuite] 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org> * gcc.target/powerpc/bmi-andn-1.c: New file * gcc.target/powerpc/bmi-andn-2.c: New file. * gcc.target/powerpc/bmi-bextr-1.c: New file. * gcc.target/powerpc/bmi-bextr-2.c: New file. * gcc.target/powerpc/bmi-bextr-4.c: New file. * gcc.target/powerpc/bmi-bextr-5.c: New file. * gcc.target/powerpc/bmi-blsi-1.c: New file. * gcc.target/powerpc/bmi-blsi-2.c: New file. * gcc.target/powerpc/bmi-blsmsk-1.c: new file. * gcc.target/powerpc/bmi-blsmsk-2.c: New file. * gcc.target/powerpc/bmi-blsr-1.c: New file. * gcc.target/powerpc/bmi-blsr-2.c: New File. * gcc.target/powerpc/bmi-check.h: New File. * gcc.target/powerpc/bmi-tzcnt-1.c: new file. * gcc.target/powerpc/bmi-tzcnt-2.c: New file. * gcc.target/powerpc/bmi2-bzhi32-1.c: New file. * gcc.target/powerpc/bmi2-bzhi64-1.c: New file. * gcc.target/powerpc/bmi2-bzhi64-1a.c: New file. * gcc.target/powerpc/bmi2-check.h: New file. * gcc.target/powerpc/bmi2-mulx32-1.c: New file. * gcc.target/powerpc/bmi2-mulx32-2.c: New file. * gcc.target/powerpc/bmi2-mulx64-1.c: New file. * gcc.target/powerpc/bmi2-mulx64-2.c: New file. * gcc.target/powerpc/bmi2-pdep32-1.c: New file. * gcc.target/powerpc/bmi2-pdep64-1.c: New file. * gcc.target/powerpc/bmi2-pext32-1.c: New File. * gcc.target/powerpc/bmi2-pext64-1.c: New file. * gcc.target/powerpc/bmi2-pext64-1a.c: New File. From-SVN: r247988
Steven Munroe committed -
2017-05-12 Paolo Carlini <paolo.carlini@oracle.com> PR c++/60430 * g++.dg/cpp0x/pr60430.C: New. From-SVN: r247986
Paolo Carlini committed -
* tree-vrp.c (vrp_dom_walker::before_dom_childern): Push unwinding markers. * g++.dg/tree-ssa/ssa-dom-thread-4.c: Update expected output. From-SVN: r247985
Jeff Law committed -
gcc/ PR middle-end/80707 * tree-cfg.c: Remove cfg edges of unreachable case statements. gcc/testsuite/ PR middle-end/80707 * g++.dg/pr80707.C: New test. From-SVN: r247984
Peter Bergner committed -
Pass in the calling (containing) Bfunction when invoking the Backend method call_expression(), so as to handle the case where generation of the call forces the creation of a temp var within the calling function. Reviewed-on: https://go-review.googlesource.com/43270 From-SVN: r247981
Than McIntosh committed -
* system-linux-arm.ads (Memory_Size): Use Long_Integer'Size instead of Word_Size. Revert 2017-03-28 Andreas Schwab <schwab@suse.de> PR ada/80117 * system-linux-aarch64-ilp32.ads: New file. * gcc-interface/Makefile.in (LIBGNAT_TARGET_PAIRS_COMMON): Rename from LIBGNAT_TARGET_PAIRS. (LIBGNAT_TARGET_PAIRS_32, LIBGNAT_TARGET_PAIRS_64): Define. (LIBGNAT_TARGET_PAIRS): Use LIBGNAT_TARGET_PAIRS_COMMON, and LIBGNAT_TARGET_PAIRS_64 or LIBGNAT_TARGET_PAIRS_32 for -mabi=lp64 or -mabi=ilp32, resp. From-SVN: r247979
Eric Botcazou committed -
[gcc] 2017-05-10 Will Schmidt <will_schmidt@vnet.ibm.com> * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for early expansion of vector divide builtins. (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of builtins identified as having unsigned arguments. [gcc/testsuite] 2017-05-10 Will Schmidt <will_schmidt@vnet.ibm.com> * gcc.target/powerpc/fold-vec-div-float.c: New. * gcc.target/powerpc/fold-vec-div-floatdouble.c: New. * gcc.target/powerpc/fold-vec-div-longlong.c: New. From-SVN: r247977
Will Schmidt committed -
[gcc] 2017-05-10 Will Schmidt <will_schmidt@vnet.ibm.com> * config/rs6000/rs6000.c (gimple-fold.h): New #include. (rs6000_gimple_fold_builtin): Add handling for early GIMPLE expansion of vector logical operations (and, andc, or, xor, nor, orc, nand) [gcc/testsuite] 2017-05-10 Will Schmidt <will_schmidt@vnet.ibm.com> * gcc.target/powerpc/fold-vec-logical-ands-char.c: New. * gcc.target/powerpc/fold-vec-logical-ands-int.c: New. * gcc.target/powerpc/fold-vec-logical-ands-longlong.c: New. * gcc.target/powerpc/fold-vec-logical-ands-short.c: New. * gcc.target/powerpc/fold-vec-logical-ors-char.c: New. * gcc.target/powerpc/fold-vec-logical-ors-int.c: New. * gcc.target/powerpc/fold-vec-logical-ors-longlong.c: New. * gcc.target/powerpc/fold-vec-logical-ors-short.c: New. * gcc.target/powerpc/fold-vec-logical-other-char.c: New. * gcc.target/powerpc/fold-vec-logical-other-int.c: New. * gcc.target/powerpc/fold-vec-logical-other-longlong.c: New. * gcc.target/powerpc/fold-vec-logical-other-short.c: New. From-SVN: r247976
Will Schmidt committed -
2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com> [gcc] * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration. * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype. From-SVN: r247975
Will Schmidt committed -
rs6000.c (rs6000_gimple_fold_builtin): Add handling for early GIMPLE expansion of vector multiplies. [gcc] 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com> * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for early GIMPLE expansion of vector multiplies. From-SVN: r247974
Will Schmidt committed -
PR libstdc++/78939 * include/std/utility (tuple_size<cv T>): Only define partial specializations when tuple_size<T>::value is valid. * testsuite/20_util/tuple/78939.cc: New. * testsuite/20_util/tuple/cv_tuple_size_neg.cc: New. From-SVN: r247973
Jonathan Wakely committed -
From-SVN: r247972
Uros Bizjak committed -
2017-05-12 Prakhar Bahuguna <prakhar.bahuguna@arm.com> gcc/ * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the TARGET_HAVE_MOVT conditional. (movt splitter): Likewise. From-SVN: r247971
Prakhar Bahuguna committed -
re PR c++/49604 (forward-declared enum's elements in class scope gets default access (class vs struct)) 2017-05-12 Paolo Carlini <paolo.carlini@oracle.com> PR c++/49604 * g++.dg/cpp0x/forw_enum14.C: New. * g++.dg/cpp0x/forw_enum15.C: Likewise. From-SVN: r247969
Paolo Carlini committed -
Change memory allocation accounting for stacks to use stacks_sys, since that seems to be what it is for. Reviewed-on: https://go-review.googlesource.com/43297 From-SVN: r247967
Ian Lance Taylor committed -
2017-05-12 Richard Biener <rguenther@suse.de> * tree-ssa-sccvn.h (has_VN_INFO): Declare. * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Fold all stmts not inplace. * g++.dg/tree-ssa/ssa-dse-2.C: Adjust. From-SVN: r247966
Richard Biener committed -
2017-05-12 Paolo Carlini <paolo.carlini@oracle.com> PR c++/67687 * g++.dg/cpp0x/constexpr-ice17.C: New. From-SVN: r247964
Paolo Carlini committed -
2017-05-12 Richard Biener <rguenther@suse.de> PR tree-optimization/80713 * tree-ssa-pre.c (remove_dead_inserted_code): Clear inserted_exprs bit for not removed stmts. * gcc.dg/torture/pr80713.c: New testcase. From-SVN: r247963
Richard Biener committed -
With high -j parallelism the autofdo tests can randomly fail. autofdo uses Linux perf to record profiling data. Linux perf uses a locked perf buffer. By default it has around 516k buffer per uid (/proc/sys/kernel/perf_event_mlock_kb). An individual perf record tries to grab the full 516k, which makes parallel perf record fail. This patch limits the perf buffer for individual perf record to 8k. With the default settings this allows a parallelism of the test cases of 16, which is hopefully good enough (if not would need to add some kind of semaphore, or ask the user to increase the limit as root) I also removed an unneeded -o perf.data option Thanks to Marcin to finally spotting the problem. Passes bootstrap and test on x86_64-linux. Ok for trunk? gcc/testsuite/: 2017-05-12 Andi Kleen <ak@linux.intel.com> PR testsuite/77684 * lib/target-supports.exp (profopt-perf-wrapper): Add -m8 option to increase parallelism. From-SVN: r247962
Andi Kleen committed -
gcc/c/ * c-parser.c (c_parser_omp_clause_num_gangs) (c_parser_omp_clause_num_workers) (c_parser_omp_clause_vector_length): Merge functions into... (c_parser_oacc_single_int_clause): ... this new function. Adjust all users. gcc/testsuite/ * c-c++-common/goacc/parallel-dims-1.c: New file. * c-c++-common/goacc/parallel-dims-2.c: Likewise. From-SVN: r247960
Thomas Schwinge committed -
libitm: * testsuite/lib/libitm.exp: Load scanlang.exp. libgomp: * testsuite/lib/libgomp.exp: Load scanlang.exp. libatomic: * testsuite/lib/libatomic.exp: Load scanlang.exp. From-SVN: r247959
Rainer Orth committed -
gcc/ PR middle-end/69921 * tree-parloops.c (create_parallel_loop): Set "oacc kernels parallelized" attribute for parallelized OpenACC kernels. * omp-offload.c (execute_oacc_device_lower): Use it. gcc/testsuite/ * c-c++-common/goacc/classify-kernels-unparallelized.c: Adjust. * c-c++-common/goacc/classify-kernels.c: Likewise. * c-c++-common/goacc/kernels-counter-vars-function-scope.c: Likewise. * c-c++-common/goacc/kernels-double-reduction-n.c: Likewise. * c-c++-common/goacc/kernels-double-reduction.c: Likewise. * c-c++-common/goacc/kernels-loop-2.c: Likewise. * c-c++-common/goacc/kernels-loop-3.c: Likewise. * c-c++-common/goacc/kernels-loop-g.c: Likewise. * c-c++-common/goacc/kernels-loop-mod-not-zero.c: Likewise. * c-c++-common/goacc/kernels-loop-n.c: Likewise. * c-c++-common/goacc/kernels-loop-nest.c: Likewise. * c-c++-common/goacc/kernels-loop.c: Likewise. * c-c++-common/goacc/kernels-one-counter-var.c: Likewise. * c-c++-common/goacc/kernels-reduction.c: Likewise. * gfortran.dg/goacc/classify-kernels-unparallelized.f95: Likewise. * gfortran.dg/goacc/classify-kernels.f95: Likewise. * gfortran.dg/goacc/kernels-loop-2.f95: Likewise. * gfortran.dg/goacc/kernels-loop-data-2.f95: Likewise. * gfortran.dg/goacc/kernels-loop-data-enter-exit-2.f95: Likewise. * gfortran.dg/goacc/kernels-loop-data-enter-exit.f95: Likewise. * gfortran.dg/goacc/kernels-loop-data-update.f95: Likewise. * gfortran.dg/goacc/kernels-loop-data.f95: Likewise. * gfortran.dg/goacc/kernels-loop-n.f95: Likewise. * gfortran.dg/goacc/kernels-loop.f95: Likewise. From-SVN: r247957
Thomas Schwinge committed -
gcc/ * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>: Set "oacc kernels" attribute. * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal parameter. Adjust all users. (oacc_fn_attrib_kernels_p): Remove function. * omp-offload.c (execute_oacc_device_lower): Look for "oacc kernels" attribute instead of calling oacc_fn_attrib_kernels_p. * tree-ssa-loop.c (gate_oacc_kernels): Likewise. * tree-parloops.c (create_parallel_loop): If oacc_kernels_p, assert "oacc kernels" attribute is set. gcc/testsuite/ * c-c++-common/goacc/classify-kernels-unparallelized.c: Adjust. * c-c++-common/goacc/classify-kernels.c: Likewise. * c-c++-common/goacc/classify-parallel.c: Likewise. * c-c++-common/goacc/classify-routine.c: Likewise. * gfortran.dg/goacc/classify-kernels-unparallelized.f95: Likewise. * gfortran.dg/goacc/classify-kernels.f95: Likewise. * gfortran.dg/goacc/classify-parallel.f95: Likewise. * gfortran.dg/goacc/classify-routine.f95: Likewise. From-SVN: r247955
Thomas Schwinge committed -
gcc/testsuite/ * c-c++-common/goacc/classify-kernels-unparallelized.c: New file. * c-c++-common/goacc/classify-kernels.c: Likewise. * c-c++-common/goacc/classify-parallel.c: Likewise. * c-c++-common/goacc/classify-routine.c: Likewise. * gfortran.dg/goacc/classify-kernels-unparallelized.f95: Likewise. * gfortran.dg/goacc/classify-kernels.f95: Likewise. * gfortran.dg/goacc/classify-parallel.f95: Likewise. * gfortran.dg/goacc/classify-routine.f95: Likewise. From-SVN: r247953
Thomas Schwinge committed -
libgfortran/ * runtime/environ.c (weak_secure_getenv): Fix "__secure_gettime" vs. "__secure_getenv" typo. (secure_getenv): Fix "HAVE__SECURE_GETENV" vs. "HAVE___SECURE_GETENV" typo. From-SVN: r247952
Thomas Schwinge committed -
On MIPS, SIGABRT is defined like this: #define SIGIOT 6 #define SIGABRT SIGIOT This breaks addsig which tries to append __SIGIOT_ to SIGLIST. Signal number 6 is later added to the output and go complains about a duplicate signal number. Fix by recursing once when obtaining the signal number from gen-sysinfo.go if the signal is defined as an alias of another signal. Also modify the sed expression to 's/.* = //' which is equivalent to the original expression but is less misleading given that it might not match a number. Reviewed-on: https://go-review.googlesource.com/43252 From-SVN: r247948
Ian Lance Taylor committed -
When using readdir64 on AIX, we must also use opendir64 and closedir64. Issue golang/go#19200 Reviewed-on: https://go-review.googlesource.com/43251 From-SVN: r247947
Ian Lance Taylor committed -
From-SVN: r247946
Nathan Sidwell committed -
From-SVN: r247945
GCC Administrator committed
-
- 11 May, 2017 7 commits
-
-
PR go/64238 * go-gcc.cc (Gcc_backend::implicit_variable_reference): Set DECL_EXTERNAL, clear TREE_STATIC. From-SVN: r247937
Ian Lance Taylor committed -
gcc/ChangeLog: 2017-05-11 Carl Love <cel@us.ibm.com> * config/rs6000/rs6000-c: Add support for built-in functions vector unsigned char vec_popcnt (vector signed char) vector unsigned char vec_popcnt (vector unsigned char) vector unsigned short vec_popcnt (vector signed short) vector unsigned short vec_popcnt (vector unsigned short) vector unsigned int vec_popcnt (vector signed int) vector unsigned int vec_popcnt (vector unsigned int) vector unsigned long long vec_popcnt (vector signed long long) vector unsigned long long vec_popcnt (vector unsigned long long) vector signed long long vec_slo (vector signed long long, vector signed char) vector signed long long vec_slo (vector signed long long, vector unsigned char) vector unsigned long long vec_slo (vector unsigned long long, vector signed char) vector unsigned long long vec_slo (vector unsigned long long, vector unsigned char) * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB, VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads. * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb, vec_popcnth, vec_popcntw and vec_popcntd built-in functions. * doc/extend.texi: Update the built-in documentation file for the new built-in functions. gcc/testsuite/ChangeLog: 2017-05-11 Carl Love <cel@us.ibm.com> * gcc.target/powerpc/builtins-3-p8.c: Add tests for the new built-ins to the test suite file. * gcc.target/powerpc/builtins-3.c: Add tests for the new built-ins to the test suite file. From-SVN: r247933
Carl Love committed -
attribs.h (sorted_attr_string): Move machine independent functions for target clone support from the i386 port... 2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com> * attribs.h (sorted_attr_string): Move machine independent functions for target clone support from the i386 port to common code. Rename ix86_function_versions to common_function_versions. Rename make_name to make_unique_name. (common_function_versions): Likewise. (make_unique_name): Likewise. (make_dispatcher_decl): Likewise. (is_function_default_version): Likewise. * attribs.c (attr_strcmp): Likewise. (sorted_attr_string): Likewise. (common_function_versions): Likewise. (make_unique_name): Likewise. (make_dispatcher_decl): Likewise. (is_function_default_version): Likewise. * config/i386/i386.c (attr_strcmp): Likewise. (sorted_attr_string): Likewise. (ix86_function_versions): Likewise. (make_name): Likewise. (make_dispatcher_decl): Likewise. (is_function_default_version): Likewise. (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook. From-SVN: r247932
Michael Meissner committed -
The gc toolchain decides whether a goroutine is a system goroutine by comparing startpc to a list of saved special PCs. In gccgo that approach does not work as startpc is often a thunk that invokes the real function with arguments, so the thunk address never matches the saved special PCs. This patch fixes gccgo's understanding of system goroutines. Since there are only a limited number of them, we simply change each one to mark itself as special. This fixes stack dumps and functions like runtime.NumGoroutine to behave more like gc. It also fixes the goprint test in the gc testsuite. Reviewed-on: https://go-review.googlesource.com/43156 From-SVN: r247931
Ian Lance Taylor committed -
2017-05-11 Jerry DeLisle <jvdelisle@gcc.gnu.org> PR fortran/78659 * io.c (dtio_procs_present): Add new function to check for DTIO procedures relative to I/O statement READ or WRITE. (gfc_resolve_dt): Add namelist checks using the new function. * resolve.c (dtio_procs_present): Remove function and related namelist checks. (resolve_fl_namelist): Add check specific to Fortran 95 restriction on namelist objects. * gfortran.dg/namelist_91.f90: New test. * gfortran.dg/namelist_92.f90: New test. * gfortran.dg/namelist_93.f90: New test. * gfortran.dg/namelist_94.f90: New test. From-SVN: r247930
Jerry DeLisle committed -
* include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION] (_Rb_tree_impl<>): Remove _Is_pod_comparator template parameter. From-SVN: r247929
François Dumont committed -
[gcc] 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR target/80695 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Account for direct move costs for vec_construct of integer vectors. [gcc/testsuite] 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com> PR target/80695 * gcc.target/powerpc/pr80695-p8.c: New file. * gcc.target/powerpc/pr80695-p9.c: New file. From-SVN: r247928
Bill Schmidt committed
-