Re: Trying to convert to LRA, running into an ICE (infinite reload loop)

2018-08-20 Thread Paul Koning
> On Aug 20, 2018, at 7:17 AM, Segher Boessenkool > wrote: > > On Tue, Aug 14, 2018 at 03:32:01PM -0400, Paul Koning wrote: >> I'm trying to convert the pdp11 target to use LRA. >> >> A lot of it "just works". But one of the test suite files fails in a way >> that I can't figure out at all

Re: Trying to convert to LRA, running into an ICE (infinite reload loop)

2018-08-20 Thread Jeff Law
On 08/20/2018 10:50 AM, Paul Koning wrote: > > >> On Aug 20, 2018, at 7:17 AM, Segher Boessenkool >> wrote: >> >> On Tue, Aug 14, 2018 at 03:32:01PM -0400, Paul Koning wrote: >>> I'm trying to convert the pdp11 target to use LRA. >>> >>> A lot of it "just works". But one of the test suite file

Re: Trying to convert to LRA, running into an ICE (infinite reload loop)

2018-08-20 Thread Paul Koning
> On Aug 20, 2018, at 7:17 AM, Segher Boessenkool > wrote: > > On Tue, Aug 14, 2018 at 03:32:01PM -0400, Paul Koning wrote: >> I'm trying to convert the pdp11 target to use LRA. >> >> A lot of it "just works". But one of the test suite files fails in a way >> that I can't figure out at all

Re: RTL compression in GCC

2018-08-20 Thread Martin Jambor
Hello Alfonso, On Sat, Aug 18 2018, ALFONSO LUIS CASTANO MARIN wrote: > Dear Martin, > > I am interested in contributing to GCC to speed-up the compiler and I > thought that the issues related with RTL are very interesting. I wonder if > still there has not been done any job in RTL compression and

Is it easy getting online reviews for your business?

2018-08-20 Thread Wilfred Buckelew
Effortlessly manage your online reputation. Hey, I noticed you already have some great reviews on a few different sites for your business! I would like the opportunity to show you how the Word Of Mouth BOT at Wombot.io got over 300 reviews for one of our users recently in about 9

Re: Can offsetting a non-null pointer result in a null one?

2018-08-20 Thread Marc Glisse
On Mon, 20 Aug 2018, Richard Biener wrote: P p+ N is nonnull if P or N is known to be nonnull (and something similar for &p->field and others) But we already do that. Oups... I never noticed, I should have checked. else if (code == POINTER_PLUS_EXPR) { /* For pointer t

Re: Can offsetting a non-null pointer result in a null one?

2018-08-20 Thread Richard Biener
On Mon, Aug 20, 2018 at 1:05 PM Marc Glisse wrote: > > On Mon, 20 Aug 2018, Richard Biener wrote: > > > On Mon, Aug 20, 2018 at 10:53 AM Andreas Schwab wrote: > >> > >> On Aug 20 2018, Richard Biener wrote: > >> > >>> Btw, I can't find wording in the standards that nullptr + 1 is > >>> invoking

Re: Trying to convert to LRA, running into an ICE (infinite reload loop)

2018-08-20 Thread Segher Boessenkool
On Tue, Aug 14, 2018 at 03:32:01PM -0400, Paul Koning wrote: > I'm trying to convert the pdp11 target to use LRA. > > A lot of it "just works". But one of the test suite files fails in a way > that I can't figure out at all. I'm hoping for some help or hints to track > down the cause and come

Re: Can offsetting a non-null pointer result in a null one?

2018-08-20 Thread Marc Glisse
On Mon, 20 Aug 2018, Richard Biener wrote: On Mon, Aug 20, 2018 at 10:53 AM Andreas Schwab wrote: On Aug 20 2018, Richard Biener wrote: Btw, I can't find wording in the standards that nullptr + 1 is invoking undefined behavior, that is, that pointer arithmetic is only allowed on pointers p

Re: Can offsetting a non-null pointer result in a null one?

2018-08-20 Thread Richard Biener
On Mon, Aug 20, 2018 at 10:53 AM Andreas Schwab wrote: > > On Aug 20 2018, Richard Biener wrote: > > > Btw, I can't find wording in the standards that nullptr + 1 is > > invoking undefined behavior, > > that is, that pointer arithmetic is only allowed on pointers pointing > > to a valid object. >

Re: Can offsetting a non-null pointer result in a null one?

2018-08-20 Thread Andreas Schwab
On Aug 20 2018, Richard Biener wrote: > Btw, I can't find wording in the standards that nullptr + 1 is > invoking undefined behavior, > that is, that pointer arithmetic is only allowed on pointers pointing > to a valid object. > Any specific pointers? All of 5.7 talks about pointers pointing to

Re: Can offsetting a non-null pointer result in a null one?

2018-08-20 Thread Jonathan Wakely
On Mon, 20 Aug 2018 at 09:41, Jonathan Wakely wrote: > C++17 has similar wording in 8.7 [expr.add] paragraph 4. N.B. C++ adds a special case for adding the value 0 to null pointers, so that it's well-defined (paragraph 7).

Re: Can offsetting a non-null pointer result in a null one?

2018-08-20 Thread Liu Hao
在 2018-08-20 16:27, Richard Biener 写道: > Btw, I can't find wording in the standards that nullptr + 1 is > invoking undefined behavior, > that is, that pointer arithmetic is only allowed on pointers pointing > to a valid object. > Any specific pointers? > The C standard only defines addition and s

Re: Can offsetting a non-null pointer result in a null one?

2018-08-20 Thread Jonathan Wakely
On Mon, 20 Aug 2018 at 09:27, Richard Biener wrote: > > On Wed, Aug 15, 2018 at 7:44 AM Liu Hao wrote: > > > > 在 2018-08-15 12:48, Jeff Law 写道: > > > I just don't think anyone's ever bothered to catch this case. I believe > > > there is a BZ which touches on this issue. > > > > > > > Yes, here i

Re: Can offsetting a non-null pointer result in a null one?

2018-08-20 Thread Richard Biener
On Wed, Aug 15, 2018 at 7:44 AM Liu Hao wrote: > > 在 2018-08-15 12:48, Jeff Law 写道: > > I just don't think anyone's ever bothered to catch this case. I believe > > there is a BZ which touches on this issue. > > > > Yes, here it is: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78655 > > This PR us