Re: [wwwdocs] gcc-4.8/porting_to.html

2015-04-12 Thread Gerald Pfeifer
On Wed, 13 Mar 2013, Benjamin De Kosnik wrote: > Hey! Here is the first pass at the 4.8 porting documentation. Lovely, thank you, I know this really has proven useful. And with some unfortunate of delay, some updates from my side: - Use run-time performance (instead of runtime performance which

Re: [wwwdocs] gcc-4.8/porting_to.html

2013-03-14 Thread Jakub Jelinek
On Thu, Mar 14, 2013 at 03:07:36PM +0400, Alexander Monakov wrote: > > It still references memcpy in -Wsizeof-pointer-memaccess section. Let me > suggest instead: > > To fix, properly pass the size of cleared memory as the last argument: > either dereference the pointer argument to sizeo

Re: [wwwdocs] gcc-4.8/porting_to.html

2013-03-14 Thread Alexander Monakov
It still references memcpy in -Wsizeof-pointer-memaccess section. Let me suggest instead: To fix, properly pass the size of cleared memory as the last argument: either dereference the pointer argument to sizeof when clearing *one pointed-to element*, or in addition to that multiply s

Re: [wwwdocs] gcc-4.8/porting_to.html

2013-03-13 Thread Benjamin De Kosnik
> Here is round two, as checked-in. ... and here are the validation patches. -benjamin2013-03-13 Benjamin Kosnik * htdocs/gcc-4.8/porting_to.html: Fix markup. * htdocs/gcc-4.8/changes.html: Same. Index: changes.html ===

Re: [wwwdocs] gcc-4.8/porting_to.html

2013-03-13 Thread Benjamin De Kosnik
Here is round two, as checked-in. -benjamin 2013-03-13 Benjamin Kosnik * htdocs/gcc-4.8/porting_to.html: Add. * htdocs/gcc-4.8/changes.html: Add link. Index: changes.html === RCS file: /cvs/gcc/wwwdocs/htdocs/gc

Re: [wwwdocs] gcc-4.8/porting_to.html

2013-03-13 Thread Benjamin De Kosnik
> It doesn't make sense. memcpy from NULL src pointer? Indeed, that doesn't make sense. Thanks. -benjamin

Re: [wwwdocs] gcc-4.8/porting_to.html

2013-03-13 Thread Mikael Pettersson
Alexander Monakov writes: > > > On Wed, 13 Mar 2013, Mikael Pettersson wrote: > > > Benjamin De Kosnik writes: > > > > > > Hey! Here is the first pass at the 4.8 porting documentation. > > .. > > > + memset(p1, 0, sizeof(p1)); // error, use memcopy > > > > s/memcopy/memcpy/ >

Re: [wwwdocs] gcc-4.8/porting_to.html

2013-03-13 Thread Alexander Monakov
On Wed, 13 Mar 2013, Mikael Pettersson wrote: > Benjamin De Kosnik writes: > > > > Hey! Here is the first pass at the 4.8 porting documentation. > .. > > + memset(p1, 0, sizeof(p1)); // error, use memcopy > > s/memcopy/memcpy/ It doesn't make sense. memcpy from NULL src pointer? Alex

Re: [wwwdocs] gcc-4.8/porting_to.html

2013-03-13 Thread Mikael Pettersson
Benjamin De Kosnik writes: > > Hey! Here is the first pass at the 4.8 porting documentation. .. > + memset(p1, 0, sizeof(p1)); // error, use memcopy s/memcopy/memcpy/ > + memset(p1, 0, sizeof(p1)); // error, use memcopy likewise > + To fix, either use memcopy or dereference the last

Re: [wwwdocs] gcc-4.8/porting_to.html

2013-03-13 Thread Tobias Burnus
Benjamin De Kosnik wrote: Hey! Here is the first pass at the 4.8 porting documentation. This seems to reflect the current trunk reality. I'm not quite sure to about the best way to talk about the more aggressive loop optimizations WRT undefined sematincs, but this seems reasonable. Of course, if

[wwwdocs] gcc-4.8/porting_to.html

2013-03-13 Thread Benjamin De Kosnik
Hey! Here is the first pass at the 4.8 porting documentation. This seems to reflect the current trunk reality. I'm not quite sure to about the best way to talk about the more aggressive loop optimizations WRT undefined sematincs, but this seems reasonable. Of course, if anybody has better ideas,