Re: [rs6000] Fix reload failures in 64-bit mode with no special constant pool

2016-10-09 Thread Eric Botcazou
> Why does this not fail on darwin? It can reach this code afaics, and > it has ASM_OUTPUT_SPECIAL_POOL_ENTRY_P always 0. Probably because Darwin doesn't use the TOC at all. > Use "mode" instead of "Pmode" here? No, "mode" is the mode of the MEM, not that of the SYMBOL_REF. -- Eric Botcazou

Re: [PATCH] Implement new hook for max_align_t_align

2016-10-09 Thread Bernd Edlinger
On 10/08/16 19:36, John David Anglin wrote: > On 2016-10-08, at 1:01 PM, Bernd Edlinger wrote: > >> I think your callback should also directly control the >> alignment of max_align_t in stddef.h: >> >> >>long long __max_align_ll __attribute__((__aligned__(__alignof__(long >> long; >>lon

Re: [PATCH] Improve target pass registration

2016-10-09 Thread Eric Botcazou
> Here is updated patch, bootstrapped/regtested on x86_64-linux and > i686-linux. I'll still wait a few days before committing to see if somebody > likes to comment on the awk implementation of the script. > > 2016-10-05 Jakub Jelinek > > * gen-pass-instances.awk: Rewritten. This break

Re: Implement -Wimplicit-fallthrough (version 9)

2016-10-09 Thread Marek Polacek
On Sat, Oct 08, 2016 at 07:04:41PM +0200, Eric Botcazou wrote: > > testing completed successfully, so I've installed the patch with this > > ChangeLog entry: > > > > 2016-09-26 Rainer Orth > > > > gcc: > > * config/i386/i386.c (ix86_print_operand) > > [HAVE_AS_IX86_CMOV_SUN_SYNTAX]

Re: Implement -Wimplicit-fallthrough (version 9)

2016-10-09 Thread Eric Botcazou
> I really really don't see why anyone would think that those '...' bring > any additional information. Since Rainer has changed this, I see zero > point in changing it back. Yet doing it revealed an oversight in the first patch... > It wasn't overlooked, there was a bug that I've fixed already

[PATCH] PR 67585 Handle EINTR

2016-10-09 Thread Janne Blomqvist
Many POSIX systems have the bad habit of not restarting interrupted syscalls. On these systems it's up to the user to check for an error with errno == EINTR and restart manually. This patch does this for libgfortran, so that GFortran users don't have to do it. 2016-10-09 Janne Blomqvist

Re: [PATCH] 77864 Fix noexcept conditions for map/set default constructors

2016-10-09 Thread Jonathan Wakely
On 08/10/16 22:55 +0200, François Dumont wrote: On 06/10/2016 23:34, Jonathan Wakely wrote: On 06/10/16 22:17 +0200, François Dumont wrote: Another approach is to rely on existing compiler ability to compute conditional noexcept when defaulting implementations. This is what I have done in this

[PATCH] Improve performance of list::reverse

2016-10-09 Thread Elliot Goodrich
Hi, If we unroll the loop so that we iterate both forwards and backwards, we can take advantage of memory-level parallelism when chasing pointers. This means that reverse takes 35% less time when nodes are randomly scattered in memory and about the same time if nodes are contiguous. Further, as o

Re: [PATCH] 77864 Fix noexcept conditions for map/set default constructors

2016-10-09 Thread Jonathan Wakely
On 09/10/16 16:14 +0100, Jonathan Wakely wrote: On 08/10/16 22:55 +0200, François Dumont wrote: On 06/10/2016 23:34, Jonathan Wakely wrote: On 06/10/16 22:17 +0200, François Dumont wrote: Another approach is to rely on existing compiler ability to compute conditional noexcept when defaulting i

[committed] parisc: Define MALLOC_ABI_ALIGNMENT

2016-10-09 Thread John David Anglin
The attached patch defines MALLOC_ABI_ALIGNMENT so that it now reflects the alignment provided by malloc on hpux and linux. I also adjusted the comment for BIGGEST_ALIGNMENT so that the define is more understandable. Tested on hppa2.0w-hp-hpux11.11, hppa64-hp-hpux11.11 and hppa-unknown-linux-gn

Re: [PATCH] Implement new hook for max_align_t_align

2016-10-09 Thread John David Anglin
On 2016-10-09, at 4:34 AM, Bernd Edlinger wrote: > For instance have: > > typedef struct { > char __max_align[0] __attribute__((__aligned__(__MAX_ALIGN_T_ALIGN__))); > } max_align_t; > > Provided we do: > > builtin_define_with_value ("__MAX_ALIGN_T_ALIGN__", > targetm.max_align_t_align () / B

Re: [PATCH] Improve target pass registration

2016-10-09 Thread Eric Botcazou
> This breaks bootstrap on Solaris with nawk: > > nawk -f /homes/botcazou/gcc-head/src/gcc/gen-pass-instances.awk \ > /homes/botcazou/gcc-head/src/gcc/passes.def > pass-instances.def > nawk: you can only delete array[element] at source line 196 > context is > delete >>> pass

[Go] Remove obsolete lang_requires_boot_languages setting

2016-10-09 Thread Eric Botcazou
Hi, this gets rid of the "'c++' language required by 'go' in stage 1; enabling" obsolete message printed by the configure script. Tested on x86_64-suse-linux, OK for the mainline? 2016-10-09 Eric Botcazou * config-lang.in (lang_requires_boot_languages): Delete. -- Eric BotcazouIn

Re: [PATCH] Improve target pass registration

2016-10-09 Thread Jakub Jelinek
On Sun, Oct 09, 2016 at 10:51:10PM +0200, Eric Botcazou wrote: > > This breaks bootstrap on Solaris with nawk: > > > > nawk -f /homes/botcazou/gcc-head/src/gcc/gen-pass-instances.awk \ > > /homes/botcazou/gcc-head/src/gcc/passes.def > pass-instances.def > > nawk: you can only delete arr

Fix for libstdc++-v3's error_constants.h for MinGW-W64

2016-10-09 Thread niXman
Hi, Please apply to gcc-5-branch, gcc-6-branch and trunk. Index: libstdc++-v3/config/os/mingw32-w64/error_constants.h === --- libstdc++-v3/config/os/mingw32-w64/error_constants.h (revision 240904) +++ libstdc++-v3/config/os/ming

Re: [Go] Remove obsolete lang_requires_boot_languages setting

2016-10-09 Thread Ian Lance Taylor
On Sun, Oct 9, 2016 at 1:55 PM, Eric Botcazou wrote: > > this gets rid of the "'c++' language required by 'go' in stage 1; enabling" > obsolete message printed by the configure script. > > Tested on x86_64-suse-linux, OK for the mainline? > > > 2016-10-09 Eric Botcazou > > * config-lang

PING: [PATCH] Be more conservative in early inliner if FDO is enabled

2016-10-09 Thread Yuan, Pengfei
Hi, What is the decision on this patch? https://gcc.gnu.org/ml/gcc-patches/2016-09/msg01041.html Regards, Yuan, Pengfei > A new patch for trunk is attached. > > Regards, > Yuan, Pengfei > > > 2016-09-16 Yuan Pengfei > > * doc/invoke.texi (--param early-inlining-insns-feedback): New.

Re: [PATCH] Delete GCJ

2016-10-09 Thread Matthias Klose
On 07.10.2016 10:30, Iain Sandoe wrote: > >> On 7 Oct 2016, at 00:58, Matthias Klose wrote: >> >> On 06.10.2016 20:00, Mike Stump wrote: >>> On Oct 6, 2016, at 9:56 AM, Rainer Orth >>> wrote: I wouldn't hard-fail, but completely disable objc-gc with an appropriate warning. The Object