Re: [PATCH] middle-end: Improve RTL expansion in expand_mul_overflow,

2020-07-11 Thread Segher Boessenkool
Hi all, On Thu, Jul 09, 2020 at 10:29:44AM +0200, Jakub Jelinek via Gcc-patches wrote: > On Thu, Jul 09, 2020 at 09:17:46AM +0100, Richard Sandiford wrote: > > If target-independent code is going to optimise for “no subreg operand” > > targets like nvptx, I think it needs to know that the target w

[PATCH] value-range: Fix handling of POLY_INT_CST anti-ranges [PR96146]

2020-07-11 Thread Richard Sandiford
The range infrastructure has code to decompose POLY_INT_CST ranges to worst-case integer bounds. However, it had the fundamental flaw (obvious in hindsight) that it applied to anti-ranges too, meaning that a range 2+2X would end up with a range of ~[2, +INF], i.e. [-INF, 1]. This patch decays to

Re: [PATCH] rs6000: add effective-target test ppc_mma_hw

2020-07-11 Thread Segher Boessenkool
Hi Aaron, On Fri, Jul 10, 2020 at 05:58:59PM -0500, Aaron Sawdey via Gcc-patches wrote: > Add a test for dejagnu to determine if execution of MMA instructions is > supported in the test environment. Add an execution test to make sure > that __builtin_cpu_supports("mma") is true if we can execute M

Re: [PATCH] ipa-devirt: Fix crash in obj_type_ref_class [PR95114]

2020-07-11 Thread Richard Sandiford
Jan Hubicka writes: >> Jan Hubicka writes: >> >> The testcase has failed since r9-5035, because obj_type_ref_class >> >> tries to look up an ODR type when no ODR type information is >> >> available. (The information was available earlier in the >> >> compilation, but was freed during pass_ipa_fr

Re: [PATCH][RFC] __builtin_shuffle sometimes should produce zip1 rather than TBL (PR82199)

2020-07-11 Thread Richard Sandiford
Dmitrij Pochepko writes: > Hi, > > please take a look at updated version (attached). Looks good, but a couple more points, sorry: > + /* Convert the perm constant if we can. Require even, odd as the pairs. > */ > + for (unsigned int i = 0; i < nelt; i += 2) > +{ > + poly_int64 elt0

Re: [PATCH][RFC] vector creation from two parts of two vectors produces TBL rather than ins (PR93720)

2020-07-11 Thread Richard Sandiford
Dmitrij Pochepko writes: > Hi, > > thank you for reviewing it. > > Please check updated version(attached) with all comments addressed. > > Thanks, > Dmitrij > > On Tue, Jun 23, 2020 at 06:10:52PM +0100, Richard Sandiford wrote: > ... >> >> I think it would be better to test this as part of the lo

Re: [PATCH] value-range: Fix handling of POLY_INT_CST anti-ranges [PR96146]

2020-07-11 Thread Richard Biener via Gcc-patches
On July 11, 2020 10:01:41 AM GMT+02:00, Richard Sandiford wrote: >The range infrastructure has code to decompose POLY_INT_CST ranges >to worst-case integer bounds. However, it had the fundamental flaw >(obvious in hindsight) that it applied to anti-ranges too, meaning >that a range 2+2X would en

Re: [PATCH] Add gdc support to macOS

2020-07-11 Thread ciel via Gcc-patches
Iain-san, I have not heard (or do not find) any news for one year after your reply 500657. I have just tried my patch for gcc 10.1.0 release and the patch just worked, which is unexpected for me... How is your patch going? T. Yamada > On Tue, 14 May 2019 at 17:05, ciel wrote: > > > > Dear GCC

Re: [PATCH v2] c++: Make convert_like complain about bad ck_ref_bind again [PR95789]

2020-07-11 Thread Jason Merrill via Gcc-patches
On 7/8/20 4:35 PM, Marek Polacek wrote: On Fri, Jul 03, 2020 at 05:24:34PM -0400, Jason Merrill via Gcc-patches wrote: On 6/22/20 10:09 PM, Marek Polacek wrote: convert_like issues errors about bad_p conversions at the beginning of the function, but in the ck_ref_bind case, it only issues them

[patch, fortran, committed] Fix PR 96073, ICE on new warning

2020-07-11 Thread Thomas Koenig via Gcc-patches
Hello world, I have just committed the attached patch to master as obvious and simple. Explanation is in the ChangeLog below. Best regards Thomas Fix ICE on warning with new interface check (the patch for PR 27318). In the test case, there was a warning about INTENT where an EXTERNAL

[PATCH] middle-end: Remove truly_noop_truncation check from convert.c

2020-07-11 Thread Roger Sayle
This patch eliminates a check of targetm.truly_noop_truncation from the early middle-end, where the gimple/generic being generated by GCC's front-ends is being inappropriately influenced by the target's TRULY_NOOP_TRUNCATION. The (recent) intention of TRULY_NOOP_TRUNCATION is to indicate that a b

[PATCH] nvptx: Support 16-bit shifts and extendqihi2.

2020-07-11 Thread Roger Sayle
The following patch adds support for 16-bits shifts and for sign extension from 8 bits to 16 bits. This patch has been tested on nvptx-none with no new regressions. Ok for mainline? 2020-07-11 Roger Sayle gcc/ChangeLog * config/nvptx/nvptx.md (extendqihi2): New instruction. (a

Go patch committed: Handle aliases to pointer types with interfaces

2020-07-11 Thread Ian Lance Taylor via Gcc-patches
The Go frontend miscompiled some cases where a program defined an alias to a pointer type, and then tried to convert that type to an interface type, or build a method table for that type. This patch fixes those problems. The test case is https://golang.org/cl/241997. Bootstrapped and ran Go tests

Go patch committed: Avoid generating unnamed bool type descriptor

2020-07-11 Thread Ian Lance Taylor via Gcc-patches
This patch to the Go frontend avoids generating a type descriptor for the unnamed abstract boolean type. We were generating it in cases where a boolean expression was converted directly to an empty interface type, which caused equality comparisons to fail. This patch adds a check that we never ge

[PATCH] libgomp: Add OMPD functions in 5.5.6 and related data types.

2020-07-11 Thread y2s1982 via Gcc-patches
This patch adds function definition described in the section 5.5.6 of the OpenMP API Specificiation 5.0. It also partially defines some of the handler data types related to the section. 2020-07-11 Tony Sim libgomp/ChangeLog: * libgompd.h (ompd_thread_handle_t): Add. (ompd_para

[PATCH] x86: Provide expanders for truncdisi2 and friends.

2020-07-11 Thread Roger Sayle
Even by my standards, this is an odd patch. This adds expanders to i386.md requesting that integer truncations be represented in RTL using SUBREGs. This exactly matches the (current) default behaviour when TARGET_TRULY_NOOP_TRUNCATION is undefined. Hence this patch is mostly for documentation/

RE: [PATCH] x86: Provide expanders for truncdisi2 and friends.

2020-07-11 Thread Roger Sayle
Doh! With the attachment. -Original Message- From: Roger Sayle Sent: 12 July 2020 00:29 To: 'gcc-patches@gcc.gnu.org' Subject: [PATCH] x86: Provide expanders for truncdisi2 and friends. Even by my standards, this is an odd patch. This adds expanders to i386.md requesting that integ

[PATCH] MIPS: Fix __builtin_longjmp (PR 64242)

2020-07-11 Thread Paul Hua via Gcc-patches
>From 589dbe8a1c2397bfafefa4e84abe5ec6e6798928 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Wed, 12 Feb 2020 11:42:57 + Subject: [PATCH] MIPS: Fix __builtin_longjmp (PR 64242) The problem here is mips has its own builtin_longjmp pattern and it was not fixed when expand_builtin_longjmp w