[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-12 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #26 from rguenther at suse dot de --- On Tue, 12 Jul 2016, npl at chello dot at wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 > > --- Comment #25 from npl at chello dot at --- > Yes, that works fine. I just meant to

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-12 Thread npl at chello dot at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #25 from npl at chello dot at --- Yes, that works fine. I just meant to say it needs more work than casting to a type with less alignment, and unless explicitly marked with this pragma you can expect a compiler to access like the

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-12 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #24 from Oleg Endo --- (In reply to npl from comment #22) > > Its also generally quite hard to force the compiler to do less-aligned > accesses, and I haven`t seen this "solution" anywhere. (Probably because it > doesn`t work on any

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-12 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #23 from rguenther at suse dot de --- On Tue, 12 Jul 2016, npl at chello dot at wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 > > --- Comment #22 from npl at chello dot at --- > > > 0014 : > > > 14: e3a03000

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-12 Thread npl at chello dot at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #22 from npl at chello dot at --- (In reply to Richard Biener from comment #21) > (In reply to Georg-Johann Lay from comment #18) > > (In reply to rguent...@suse.de from comment #12) > > > On Fri, 8 Jul 2016, olegendo at gcc dot

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #21 from Richard Biener --- (In reply to Georg-Johann Lay from comment #18) > (In reply to rguent...@suse.de from comment #12) > > On Fri, 8 Jul 2016, olegendo at gcc dot gnu.org wrote: > > > > > void test (const int *a, int *b) > >

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #20 from Richard Biener --- Created attachment 38879 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38879=edit patch to remove memcpy inline expansion misalign limit This patch lifts the restrictions on memcpy to assignment

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-12 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #19 from Richard Biener --- (In reply to npl from comment #17) > I got interrupted by a colleague at work, part 2 of the ramblings... > > Everything you could argue against memcpy beeing replaced by simpler > instructions, doesnt

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-09 Thread gjl at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #18 from Georg-Johann Lay --- (In reply to rguent...@suse.de from comment #12) > On Fri, 8 Jul 2016, olegendo at gcc dot gnu.org wrote: > > > void test (const int *a, int *b) > > { > > a[100] = 1; > > b[200] = 2; > > > >

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-08 Thread npl at chello dot at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #17 from npl at chello dot at --- I got interrupted by a colleague at work, part 2 of the ramblings... Everything you could argue against memcpy beeing replaced by simpler instructions, doesnt change that the same issue persists with

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-08 Thread npl at chello dot at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #16 from npl at chello dot at --- rguenther: Funny enough, I am using memcpy because thats the only standard conform way to move data around that might be aliased. And I use this often to parse binary streams from a network. I think

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-08 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #15 from Richard Biener --- Doesn't sanitize anything for int main() { int i, j;

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-08 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #14 from rguenther at suse dot de --- On Fri, 8 Jul 2016, olegendo at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 > > --- Comment #13 from Oleg Endo --- > (In reply to rguent...@suse.de from comment

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-08 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #13 from Oleg Endo --- (In reply to rguent...@suse.de from comment #12) > > No, because the access is performed as 'int'. > > > Why should memcpy be any different? > > Because the memcpy stmt doesn't constitute a memory access

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-08 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #12 from rguenther at suse dot de --- On Fri, 8 Jul 2016, olegendo at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 > > --- Comment #11 from Oleg Endo --- > (In reply to rguent...@suse.de from comment

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-08 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #11 from Oleg Endo --- (In reply to rguent...@suse.de from comment #10) > > What makes the parameter type special? Would > > void test (const int *a, int *b) > { > std::memcpy ((char *)b, (char *)a, t); > } > > be invalid to

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-08 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #10 from rguenther at suse dot de --- On Fri, 8 Jul 2016, olegendo at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 > > --- Comment #9 from Oleg Endo --- > (In reply to rguent...@suse.de from comment

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-08 Thread olegendo at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #9 from Oleg Endo --- (In reply to rguent...@suse.de from comment #8) > > But there is no good reasoning that can be applied that it is a valid > transform. What does clang do when s is void * and you cast that to > uint32_t *?

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-08 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #8 from rguenther at suse dot de --- On Fri, 8 Jul 2016, npl at chello dot at wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 > > npl at chello dot at changed: > >What|Removed |Added

[Bug tree-optimization/50417] regression: memcpy with known alignment

2016-07-08 Thread npl at chello dot at
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 npl at chello dot at changed: What|Removed |Added CC||npl at chello dot at --- Comment

[Bug tree-optimization/50417] regression: memcpy with known alignment

2015-09-22 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 --- Comment #6 from Richard Biener --- *** Bug 67676 has been marked as a duplicate of this bug. ***

[Bug tree-optimization/50417] regression: memcpy with known alignment

2014-04-02 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 Richard Biener rguenth at gcc dot gnu.org changed: What|Removed |Added CC||anton at samba

[Bug tree-optimization/50417] regression: memcpy with known alignment

2013-10-09 Thread gjl at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 Georg-Johann Lay gjl at gcc dot gnu.org changed: What|Removed |Added Keywords|

[Bug tree-optimization/50417] regression: memcpy with known alignment

2013-07-14 Thread olegendo at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 Oleg Endo olegendo at gcc dot gnu.org changed: What|Removed |Added Target||sh*-*-* arm*-*-*

[Bug tree-optimization/50417] regression: memcpy with known alignment

2012-06-06 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added CC||jay.foad at

[Bug tree-optimization/50417] regression: memcpy with known alignment

2011-09-25 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50417 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added CC||rguenth at