Go patch committed: Fix length of roots array

2016-12-29 Thread Ian Lance Taylor
This patch by Than McIntosh fixes the length of the type of the roots array in Gogo::register_gc_vars. Bootstrapped and ran Go testsuite on x86_64-pc-linux-gnu. Committed to mainline. Ian Index: gcc/go/gofrontend/MERGE === ---

[Committed] Lower iterator count on gcc.dg/atomic/c11-atomic-exec-5.c for AARCH64

2016-12-29 Thread Andrew Pinski
Since AARCH64 does not have a native 128bit atomics, this testcase can take a long time with the default iteration count on a "fast" multi-core machine. This is because the thread which incrementing the counter is not able to acquire the mutex before the other thread has already acquired it. I

[PATCH/AARCH64] Add -mcpu=thunderx2t99 support

2016-12-29 Thread Andrew Pinski
Hi, This patch adds -mcpu=thunderx2t99. Cavium has acquired the Vulcan IP from Broadcom. I am keeping the old -mcpu=vulcan as backwards compatible but renaming all of the structures to be based on the new name of the chip. In the next few weeks, I am auditing the current tuning and will be

[PATCH], PR 71977/70568/78823: Improve PowerPC code that uses SFmode in unions

2016-12-29 Thread Michael Meissner
This is both a fix to a regression (since GCC 4.9), a code improvement for GLIBC, and fixes potential bugs with the recent changes to allow small integers (32-bit integer, SImode in particular) in floating point and vector registers. The core of the problem is when a SFmode (32-bit binary

[wwwdocs] Move the generic redirect for /java/ past all more specific ones

2016-12-29 Thread Gerald Pfeifer
Move the generic redirect for /java/ past all more specific ones for pages formerly under /java/... With this change, the redirects that you can see as context in the patch below actually work again. Applied. Gerald Index: .htaccess

[PATCH, i386]: Remove unneeded *extvqi sign-extract pattern

2016-12-29 Thread Uros Bizjak
Hello! Attached patch removes unneeded *extvqi sign-extract pattern. Combine is smart enough to create zero-extract RTX in case QImode value is extracted to QImode register. OTOH, the following testcase --cut here-- struct S1 { char pad1; char val; short pad2; }; struct S1 test_add

Re: [PATCH] PR 78534 Change character length from int to size_t

2016-12-29 Thread Gerald Pfeifer
On Tue, 20 Dec 2016, FX wrote: > Finally, if we’re making this change, we welcome any feedback on how > to make it as easy as possible to handle in user code. Documentation, > preprocessor macros, etc. I believe including this in the (yet to be created) gcc-7/porting_to.html, would be great.

[PATCH] Optimize X << Y with low bits of Y known to be 0 (PR tree-optimization/71563, take 2)

2016-12-29 Thread Jakub Jelinek
Hi! On Tue, Dec 20, 2016 at 09:45:03PM +0100, Jakub Jelinek wrote: > > Note that you can write (shift @0 SSA_NAME@1) in the pattern instead of a > > separate test. > > That is what I tried first, but there is some bug in genmatch.c that > prevents it. The: > (for vec (VECTOR_CST CONSTRUCTOR) >

[PATCH] genmatch fix (PR tree-optimization/71563)

2016-12-29 Thread Jakub Jelinek
Hi! On Tue, Dec 20, 2016 at 09:45:03PM +0100, Jakub Jelinek wrote: > That is what I tried first, but there is some bug in genmatch.c that > prevents it. The: > (for vec (VECTOR_CST CONSTRUCTOR) > (simplify >(shiftrotate @0 vec@1) > results in case SSA_NAME: being added to a switch: >

[wwwdocs] Remove reference to GCJ FAQ

2016-12-29 Thread Gerald Pfeifer
...from our main FAQ, plus the GCJ FAQ to begin with. Applied. Gerald Index: java/faq.html === RCS file: java/faq.html diff -N java/faq.html --- java/faq.html 29 Jun 2014 19:39:16 - 1.74 +++ /dev/null 1 Jan 1970

[wwwdocs] More changes around openmp.org

2016-12-29 Thread Gerald Pfeifer
It turns out that the locations of the OpenMP standards documents have been moved as well. This patch adjust this for some of our references (index.html, gcc-5/changes.html) and replaces it with the more generic location of OpenMP specifications for older entries (news.html) since I expect that

Re: [v3 PATCH] Implement 2801, Default-constructibility of unique_ptr.

2016-12-29 Thread Ville Voutilainen
On 29 December 2016 at 21:57, Ville Voutilainen wrote: >> Instead of repeating this condition half a dozen times, we could put >> it in the __uniq_ptr_impl class template and reuse it, as in the >> attached patch (and similarly for the unique_ptr specialization).

Re: [v3 PATCH] Implement 2801, Default-constructibility of unique_ptr.

2016-12-29 Thread Ville Voutilainen
On 22 December 2016 at 19:11, Jonathan Wakely wrote: >> /// Default constructor, creates a unique_ptr that owns nothing. >> + template > + typename enable_if< >> + __and_<__not_>, >> +

Re: PR78631 fix

2016-12-29 Thread Uros Bizjak
On Thu, Dec 29, 2016 at 4:26 PM, Jakub Jelinek wrote: > On Tue, Dec 27, 2016 at 06:36:11PM +0300, Alexander Ivchenko wrote: >> Committed as r243942 with the ChangeLog entries > > Unfortunately it fails if assembler has mpx support, but hw doesn't support > it. > > The following

Re: [PATCH], Add PowerPC ISA 3.0 vec_vinsert4b and vec_vextract4b built-in functions

2016-12-29 Thread Michael Meissner
Thanks. I fixed the error messages. -- Michael Meissner, IBM IBM, M/S 2506R, 550 King Street, Littleton, MA 01460-6245, USA email: meiss...@linux.vnet.ibm.com, phone: +1 (978) 899-4797

Re: PR78631 fix

2016-12-29 Thread Jakub Jelinek
On Tue, Dec 27, 2016 at 06:36:11PM +0300, Alexander Ivchenko wrote: > Committed as r243942 with the ChangeLog entries Unfortunately it fails if assembler has mpx support, but hw doesn't support it. The following patch should fix that. Tested on x86_64-linux, ok for trunk? 2016-12-29 Jakub

[C++ PATCH] Fix -Wunused-but-set-* false positive with ~ of vector type (PR c++/78949)

2016-12-29 Thread Jakub Jelinek
Hi! For integral arg, mark_exp_read is called during cp_perform_integral_promotions, for complex type it is called during cp_default_conversion, but for vector types nothing actually calls it. Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2016-12-29 Jakub

[PATCH] Fix exgettext to handle multi-line help texts from *.opt files (PR translation/78745)

2016-12-29 Thread Jakub Jelinek
Hi! As mentioned in the PR, the option handling for multi-line help texts concatenates those lines with spaces in between (essentially replaces newlines with spaces), but exgettext extracts just the first line from the multiline help text and throws away the rest. With this patch, there are

[C++ PATCH] Fix decomp handling of fields with reference type (PR c++/78931)

2016-12-29 Thread Jakub Jelinek
Hi! When a field has reference type, we correctly used the reference type as the type of the var with value expr, but the DECL_VALUE_EXPR had the type/value after convert_from_reference, which leads to invalid IL. Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux, ok for

[doc] www.cilkplus.org now defaults to https (and a bit more)

2016-12-29 Thread Gerald Pfeifer
Applied (as revision 243962), and I am planning to backport to the GCC 6 and probably GCC 5 branches. Gerald 2016-12-29 Gerald Pfeifer * doc/extend.texi (Cilk Plus Builtins): cilkplus.org now uses https by default. * doc/passes.texi (Cilk Plus

[wwwdocs] news/dfa.html and news/ssa.html -- redhat.com now defaults to https

2016-12-29 Thread Gerald Pfeifer
Applied. Gerald Index: news/dfa.html === RCS file: /cvs/gcc/wwwdocs/htdocs/news/dfa.html,v retrieving revision 1.6 diff -u -r1.6 dfa.html --- news/dfa.html 27 Jun 2014 15:04:40 - 1.6 +++ news/dfa.html 29 Dec

Re: [PATCH] PR 78534 Change character length from int to size_t

2016-12-29 Thread Andre Vehreschild
Hi Janne, hi FX, On Tue, 27 Dec 2016 12:56:19 +0200 Janne Blomqvist wrote: > >> I also changed the _size member in vtables from int to size_t, as > >> there were some cases where character lengths and sizes were > >> apparently mixed up and caused regressions

Re: [PATCH] Add RejectNegative for a c option.

2016-12-29 Thread Martin Liška
On 12/27/2016 07:18 PM, Sandra Loosemore wrote: > On 12/27/2016 09:26 AM, Martin Liška wrote: >> Without RejectNegative one can cause an ICE in the compiler. >> Patch can bootstrap on ppc64le-redhat-linux and survives regression tests. >> >> Ready to be installed? >> Martin > > Any chance you can

Re: [PATCH] Enable SGX intrinsics

2016-12-29 Thread Yulia Koval
Sorry, didn't include changelog. Here is it: gcc/ * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET, OPTION_MASK_ISA_SGX_SET): New. (ix86_handle_option): Handle OPT_msgx. * config.gcc: Added sgxintrin.h. * config/i386/cpuid.h (bit_SGX): New. *

[PATCH] Enable SGX intrinsics

2016-12-29 Thread Koval, Julia
Hi, This patch enables Intel SGX instructions (Reference: https://software.intel.com/sites/default/files/managed/39/c5/325462-sdm-vol-1-2abcd-3abcd.pdf page 4478 in pdf and 3D 41-1 in page numbers) Ok for trunk? Thanks, Julia 0001-Enable-SGX.patch Description: 0001-Enable-SGX.patch