Re: [RFC] Assert DECL_ABSTRACT_ORIGIN is different from the decl itself

2016-12-05 Thread Jeff Law
On 12/01/2016 09:10 AM, Martin Jambor wrote: Hello, On Wed, Nov 30, 2016 at 02:09:19PM +0100, Martin Jambor wrote: On Tue, Nov 29, 2016 at 10:17:02AM -0700, Jeff Law wrote: ... So it seems that rather than an assert that we should just not walk down a self-referencing DECL_ABSTRACT_ORIGIN.

Re: [RFC] Assert DECL_ABSTRACT_ORIGIN is different from the decl itself

2016-12-01 Thread Martin Jambor
Hello, On Wed, Nov 30, 2016 at 02:09:19PM +0100, Martin Jambor wrote: > On Tue, Nov 29, 2016 at 10:17:02AM -0700, Jeff Law wrote: > > > > ... > > > > So it seems that rather than an assert that we should just not walk down a > > self-referencing DECL_ABSTRACT_ORIGIN. > > > > ... > > So I wonder

Re: [RFC] Assert DECL_ABSTRACT_ORIGIN is different from the decl itself

2016-11-30 Thread Martin Jambor
Hi, On Tue, Nov 29, 2016 at 10:17:02AM -0700, Jeff Law wrote: > On 11/29/2016 03:13 AM, Richard Biener wrote: > > On Mon, Nov 28, 2016 at 6:28 PM, Martin Jambor wrote: > > > Hi Jeff, > > > > > > On Mon, Nov 28, 2016 at 08:46:05AM -0700, Jeff Law wrote: > > > > On 11/28/2016 07:27 AM, Martin Jamb

Re: [RFC] Assert DECL_ABSTRACT_ORIGIN is different from the decl itself

2016-11-29 Thread Jeff Law
On 11/29/2016 03:13 AM, Richard Biener wrote: On Mon, Nov 28, 2016 at 6:28 PM, Martin Jambor wrote: Hi Jeff, On Mon, Nov 28, 2016 at 08:46:05AM -0700, Jeff Law wrote: On 11/28/2016 07:27 AM, Martin Jambor wrote: Hi, one of a number of symptoms of an otherwise unrelated HSA bug I've been deb

Re: [RFC] Assert DECL_ABSTRACT_ORIGIN is different from the decl itself

2016-11-29 Thread Richard Biener
On Mon, Nov 28, 2016 at 6:28 PM, Martin Jambor wrote: > Hi Jeff, > > On Mon, Nov 28, 2016 at 08:46:05AM -0700, Jeff Law wrote: >> On 11/28/2016 07:27 AM, Martin Jambor wrote: >> > Hi, >> > >> > one of a number of symptoms of an otherwise unrelated HSA bug I've >> > been debugging today is gcc cras

Re: [RFC] Assert DECL_ABSTRACT_ORIGIN is different from the decl itself

2016-11-28 Thread Martin Jambor
Hi Jeff, On Mon, Nov 28, 2016 at 08:46:05AM -0700, Jeff Law wrote: > On 11/28/2016 07:27 AM, Martin Jambor wrote: > > Hi, > > > > one of a number of symptoms of an otherwise unrelated HSA bug I've > > been debugging today is gcc crashing or hanging in the C++ pretty > > printer when attempting to

Re: [RFC] Assert DECL_ABSTRACT_ORIGIN is different from the decl itself

2016-11-28 Thread Jeff Law
On 11/28/2016 07:27 AM, Martin Jambor wrote: Hi, one of a number of symptoms of an otherwise unrelated HSA bug I've been debugging today is gcc crashing or hanging in the C++ pretty printer when attempting to emit a warning because dump_decl() ended up in an infinite recursion calling itself on

[RFC] Assert DECL_ABSTRACT_ORIGIN is different from the decl itself

2016-11-28 Thread Martin Jambor
Hi, one of a number of symptoms of an otherwise unrelated HSA bug I've been debugging today is gcc crashing or hanging in the C++ pretty printer when attempting to emit a warning because dump_decl() ended up in an infinite recursion calling itself on the DECL_ABSTRACT_ORIGIN of the decl it was loo