Better merging of -fPIC/pic/PIE/pie in lto-wrapper

2017-07-08 Thread Jan Hubicka
Hi, PR lto/80838 is about lto+profiledbootstrapped compiler being slower than profiledboostrapped compiler. This is caused by a fact that some of object files linked into cc1plus binary are built with -fPIC and lto-wrapper then decides to make whole binary PIC that is very slow. While we probably

*Ping* [patch, libgfortran] Use memcpy in a few more places for eoshift

2017-07-08 Thread Thomas Koenig
Am 04.07.2017 um 00:06 schrieb Thomas Koenig: attached are a few more speedups for special eoshift cases. This time, nothing fancy, just use memcpy for copying in the contiguous case. Ping? Regards Thomas

[committed] Fix build/min-insn-modes.o rule

2017-07-08 Thread Richard Sandiford
Jeff pointed out privately that r249881 left build/min-insn-modes.o with no dependence on insn-modes.h, which could cause a build failure in highly-parallel builds. Fixed with the patch below. I also cleaned up some uses of machmode.h and double-int.h that have been out-of-date for a while; these

Re: RFC: [PATCH] Add warn_if_not_aligned attribute

2017-07-08 Thread H.J. Lu
On Thu, Jul 06, 2017 at 03:44:57PM +, Joseph Myers wrote: > On Fri, 16 Jun 2017, H.J. Lu wrote: > > > +@code{warning: alignment 8 of 'struct foo' is less than 16}. > > I think @samp is better than @code for warnings, throughout, since they > aren't pieces of program code. Done. > > > +Thi

[PATCHv3][PR 57371] Remove useless floating point casts in comparisons

2017-07-08 Thread Yuri Gribov
Hi all, This is an updated version of patch in https://gcc.gnu.org/ml/gcc-patches/2017-07/msg00351.html . It adds Inf and NaN tests suggested by Joseph. Bootstrapped and regtested on x64. Ok for trunk? -Y pr57371-3a.patch Description: Binary data

Re: [PING^3][RFC, PATCH][ASAN] Implement dynamic allocas/VLAs sanitization.​

2017-07-08 Thread Andreas Schwab
This breaks gcc.dg/asan/pr80168.c on aarch64 -mabi=ilp32: /opt/gcc/gcc-20170708/gcc/testsuite/gcc.dg/asan/pr80168.c:7:1: internal compiler error: in emit_library_call_value_1, at calls.c:4555 0x701577 emit_library_call_value_1 ../../gcc/calls.c:4554 0x7068d7 emit_library_call_value

[PATCH] enhance overflow and truncation detection in strncpy and strncat (PR 81117)

2017-07-08 Thread Martin Sebor
PR 81117 asks for improved detection of common misuses(*) of strncpy and strncat. The attached patch is my solution. It consists of three related sets of changes: 1) Adds a new option, -Wstringop-truncation, that diagnoses calls to strncpy, and stpncpy (and also strncat) that truncate the copy.

committed: Remove libgcc/config.host check for aout NetBSD releases

2017-07-08 Thread Krister Walfridsson
I have committed the attached patch to remove a check for obsolete NetBSD aout releases from the 1990s. Bootstrapped and tested on i386-unknown-netbsdelf6.1 and x86_64-unknown-netbsd6.1. /Krister 2017-07-09 Krister Walfridsson * config.host (*-*-netbsd*): Remove check for aout N

committed: Always assume NetBSD support pthreads

2017-07-08 Thread Krister Walfridsson
I have committed the attached patch to remove checks for obsolete NetBSD releases from the 1990s that do not support pthreads. Bootstrapped and tested on i386-unknown-netbsdelf6.1 and x86_64-unknown-netbsd6.1. /Krister 2017-07-09 Krister Walfridsson * config.gcc (*-*-netbsd*): R