Re: [PATCH] warn on overflow in calls to allocation functions (bugs 77531 and 78284)

2016-12-02 Thread Jeff Law
On 11/19/2016 05:55 PM, Martin Sebor wrote: The attached update is an attempt to incorporate the feedback I received last week during the discussion of the prerequisite patch to avoid calling alloca(0)​. The important changes are: 1) Add attribute returns_nonnull to __builtin_alloca. This shoul

[PATCH] simplify-rtx: Fix the last fix (PR78638)

2016-12-02 Thread Segher Boessenkool
I managed to get the last obvious fix wrong: mode is M1, GET_MODE (op) is M2. Checking this in as obvious fix (to the obvious fix). Let's hope it ends here. Tested on powerpc64-linux and powerpc64le-linux. Segher 2016-12-02 Segher Boessenkool * simplify-rtx.c (simplify_truncation

[PATCH] fix integer overflow bugs in gimple-ssa-sprintf.c (PR 78608)

2016-12-02 Thread Martin Sebor
Bug 78608 - gimple-ssa-sprintf.c:570:17: runtime error: negation of -9223372036854775808 cannot be represented in type 'long int' points out an integer overflow bug in the pass caught by ubsan. The bug was due to negating a number without checking for equality to INT_MIN. In addition, my recent c

Fix various arm failures with config-list.mk

2016-12-02 Thread Jeff Law
ARM targets are failing to build due to an unused variable in arm_handle_cmse_nonsecure_call. Fixed in the obvious way. Verified all but arm-netbsdelf and arm-wrs-vxworks now build correctly. Jeff commit eb0d047665fc3067095d89f5592da1b2183fe72f Author: law Date: Sat Dec 3 02:02:51

Re: [RFA] Handle target with no length attributes sanely in bb-reorder.c

2016-12-02 Thread Jeff Law
On 12/02/2016 03:22 PM, Segher Boessenkool wrote: On Fri, Dec 02, 2016 at 09:47:00AM +0100, Richard Biener wrote: STC tries to make as large as possible consecutive "traces", mainly to help with instruction cache utilization and hit rate etc. It cannot do a very good job if it isn't allowed to

Re: [Patches] Add variant constexpr support for visit, comparisons and get

2016-12-02 Thread Tim Shen
On Wed, Nov 30, 2016 at 8:27 AM, Jonathan Wakely wrote: > On 26/11/16 21:38 -0800, Tim Shen wrote: >> >> This 4-patch series contains the following in order: >> >> a.diff: Remove uses-allocator ctors. They are going away, and removing >> it reduces the maintenance burden from now on. > > > Yay! les

Re: [Patch, Fortran] PR 78392: ICE in gfc_trans_auto_array_allocation, at fortran/trans-array.c:5979

2016-12-02 Thread Janus Weil
double-ping! 2016-11-26 10:45 GMT+01:00 Janus Weil : > ping! > > > 2016-11-19 10:12 GMT+01:00 Janus Weil : >> Hi all, >> >>> I previously assumed that the test case for this PR would be legal, >>> but by now I think that's wrong. The test case should be rejected, and >>> we already have checking

[Committed,fortran] Remove unneeded initialization

2016-12-02 Thread Steve Kargl
I've committed the following patch. It removes an unneeded initialization. A pointer is set to NULL, and then in the next line of code the pointer is set a memory address. 2016-12-02 Steven G. Kargl * expr.c (gfc_build_conversion): Remove unneeded initialization. Index: expr.c ===

<    1   2