Re: [PATCH 9f] Add a way for the C frontend to compile __RTL-tagged functions

2017-01-21 Thread Jeff Law
On 01/16/2017 04:23 PM, David Malcolm wrote: On Mon, 2017-01-16 at 14:54 -0700, Jeff Law wrote: On 01/09/2017 07:38 PM, David Malcolm wrote: The backend is full of singleton state, so we have to compile __RTL-functions as soon as we parse them. This means that the C frontend needs to invoke th

Re: RFA: Update XFAIL comments in

2017-01-21 Thread Segher Boessenkool
On Fri, Jan 20, 2017 at 06:45:54PM +0100, Andreas Schwab wrote: > > /* { dg-final { scan-rtl-dump "Performing shrink-wrapping" > > "pro_and_epilogue" { xfail arm*-*-* powerpc*-*-* } } } */ > > Shouldn't that rather be target { ! { arm*-*-* powerpc*-*-* } }? The way it is written we'll be inform

Re: RFA: Update XFAIL comments in

2017-01-21 Thread Segher Boessenkool
Hi, On Fri, Jan 20, 2017 at 05:05:56PM +, Nick Clifton wrote: > I would like to close out PR 70681 by applying the patch below. It > updates the XFAIL comments in the two affected tests, explaining why > the check for shrink-wrapping will fail. There is nothing actually > wrong here.

Re: [libcc1] add support for C++

2017-01-21 Thread Alexandre Oliva
On Jan 13, 2017, Jason Merrill wrote: > Again, sorry for the delay, and thank you for the continued pings. Thanks for the detailed review, and sorry about the delayed response. It caught me on the way out for a family vacation trip, and I could only see it when I got back home today. I'll have

Re: [PATCH] Use INCLUDE_xxx macros in gcov.c for pulling in standard C++ headers

2017-01-21 Thread Gerald Pfeifer
Honza, Nathan, On Sat, 21 Jan 2017, Dimitry Andric wrote: > As discussed with the FreeBSD gcc ports maintainer [1], building trunk > gcc with libc++ requires standard C++ headers to be included *before* > gcc/system.h, otherwise the redefinition of abort() to fancy_abort() > will cause trouble. >

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

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

[doc] www.akkadia.org now uses https

2017-01-21 Thread Gerald Pfeifer
Committed (as revision 244751), and I'll probably push back to GCC 6 and GCC 5 later. Gerald 2017-01-21 Gerald Pfeifer * doc/extend.texi (Thread-Local): Change www.akkadia.org reference to https. * doc/invoke.texi (Code Gen Options): Ditto. Index: doc/extend.texi ===

[fortran,doc] Change references to www.akkadia.org to https

2017-01-21 Thread Gerald Pfeifer
Committed (revision 244750), and I'll probably merge this back to GCC 6 and possibly GCC 5. Gerald 2017-01-21 Gerald Pfeifer * gfc-internals.texi (Symbol Versioning): Change references to www.akkadia.org to https. Index: gfc-internals.texi

Re: [RFC] fix bootstrap on aarch64-*-freebsd and probably others

2017-01-21 Thread Andreas Tobler
On 21.01.17 00:42, Jakub Jelinek wrote: On Fri, Jan 20, 2017 at 01:37:13PM -0700, Jeff Law wrote: Which is best will depend on what the front/mid ends might have done to apply the documented limit. Here I know not enough to give a decision. In tree the priority_type is unsigned short. In varas

Fix updating of probabilities in update_bb_profile_for_threading

2017-01-21 Thread Jan Hubicka
Hi, this is another small fix to improve upatting fater profile. update_bb_profile_for_threading was buggy in years by computing probability before updating frequency. Moreover for bugus profiles it is better to avoid dropping count to complete 0 because that implies optimization for size. Bootst

[PATCH] Use INCLUDE_xxx macros in gcov.c for pulling in standard C++ headers

2017-01-21 Thread Dimitry Andric
As discussed with the FreeBSD gcc ports maintainer [1], building trunk gcc with libc++ requires standard C++ headers to be included *before* gcc/system.h, otherwise the redefinition of abort() to fancy_abort() will cause trouble. In r235362, most gcc C++ sources were updated to define INCLUDE_xxx

Re: [PATCH] Allow building GCC with PTX offloading even without CUDA being installed (gcc and nvptx-tools patches)

2017-01-21 Thread Jakub Jelinek
On Sat, Jan 21, 2017 at 03:50:43PM +0100, Thomas Schwinge wrote: > > In order to configure gcc to load libcuda.so.1 dynamically, > > one has to either configure it --without-cuda-driver, or without > > --with-cuda-driver=/--with-cuda-driver-lib=/--with-cuda-driver-include= > > options if cuda.h and

Re: [PATCH] Allow building GCC with PTX offloading even without CUDA being installed (gcc and nvptx-tools patches)

2017-01-21 Thread Thomas Schwinge
Hi! On Fri, 13 Jan 2017 19:11:23 +0100, Jakub Jelinek wrote: > This is something that has been discussed already during the last Cauldron. > Especially for distributions it is undesirable to need to have proprietary > CUDA libraries and headers installed when building GCC. ACK. > These two patc

Fix g++.dg/warn/Wduplicated-branches1.C with -funsigned-char

2017-01-21 Thread Marek Polacek
This test failed on architectures where char is unsigned by default, or on x86_64 with -funsigned-char. Fixed by using 'signed' explicitly. Tested on x86_64-linux, applying to trunk. 2017-01-21 Marek Polacek PR testsuite/79169 * g++.dg/warn/Wduplicated-branches1.C: Use signed

[Ada] Get rid of useless index checks generated for modular types

2017-01-21 Thread Eric Botcazou
This fixes the pessimization introduced by yesterday's change to the function, which resulted in useless index checks generated for simple loops running over modular types and the couple of regressions in the gnat.dg testsuite. Tested on x86_64-suse-linux, applied on the mainline. 2017-01-21 E

Re: [PATCH] Fix Fortran FE -Wformat-security warnings

2017-01-21 Thread Paul Richard Thomas
Hi Jakub, Yes, of course - OK for trunk. Thanks Paul On 20 January 2017 at 23:32, Jakub Jelinek wrote: > Hi! > > The Fortran FE has huge amounts of -Wformat-security warnings everywhere, > but in the end they are only a result of a few commonly used things: > 1) gfc_get_string uses a printf-li

Re: [libgcc] i386/cygming-crtbegin.c: remove LIBGCJ_SONAME

2017-01-21 Thread Richard Biener
On January 20, 2017 4:23:11 PM GMT+01:00, Gerald Pfeifer wrote: >Not a regression in the strict sense, but a left over from the Java >removal. Can we still get that in? Sure. Richard. >(I think I pretty much committed all other changes of things I found >as left overs from the GCJ/libgcj remo

Re: [PATCH] Add AVX512 k-mask intrinsics

2017-01-21 Thread Richard Biener
On January 20, 2017 9:03:53 PM GMT+01:00, Andrew Senkevich wrote: >2017-01-20 20:08 GMT+03:00 Kirill Yukhin : >> Hi, >> On 20 Jan 14:46, Uros Bizjak wrote: >>> On Fri, Jan 20, 2017 at 2:32 PM, Andrew Senkevich >>> wrote: >>> >>> > here is intrinsics for ktest{b,w,d,q} and kortest{b,w,d,q}. Is it

Re: [PATCH] Fix PR78515

2017-01-21 Thread Richard Biener
On January 20, 2017 11:27:04 PM GMT+01:00, Martin Jambor wrote: >Hi, > >On Fri, Nov 25, 2016 at 02:55:29PM +0100, Richard Biener wrote: >> On Fri, 25 Nov 2016, Martin Jambor wrote: >> >> ... >> >> > > There's still that odd 'stmt2' >> > > hanging around that gets set to sth else than stmt with >>

Re: [PATCH] Some further --with-gcc-major-version-only fixes

2017-01-21 Thread Richard Biener
On January 21, 2017 12:38:43 AM GMT+01:00, Jakub Jelinek wrote: >Hi! > >I've discovered today that while I've handled all */Makefile* and >toplevel, >in the */*/Makefile* files there are some cat .../BASE-VER constructs >left >(for NVPTX offloading testing it actually caused the accel compiler no

Re: A + B CMP A -> A CMP' CST' match.pd patterns [was [PATCH] avoid calling memset et al. with excessively large sizes (PR 79095)]

2017-01-21 Thread Marc Glisse
On Fri, 20 Jan 2017, Jeff Law wrote: On 01/20/2017 04:30 PM, Jeff Law wrote: Going to work from the self-contained test... Here's a test case that's closer to the one from the bug. It also ends up with the out of bounds memset even at -O1, during PRE. typedef __SIZE_TYPE__ size_t; struct