[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-08-01 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 --- Comment #18 from rguenther at suse dot de --- On Fri, 1 Aug 2014, froydnj at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 > > --- Comment #17 from Nathan Froyd --- > (In reply to Richard Biener from comment #

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-08-01 Thread froydnj at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 --- Comment #17 from Nathan Froyd --- (In reply to Richard Biener from comment #15) > Instead aligned the string. This is kind of unfortunate, as the motivating testcase was something more like: ... static const char string[] = "Private"; u

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-08-01 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 --- Comment #16 from Richard Biener --- Author: rguenth Date: Fri Aug 1 12:40:37 2014 New Revision: 213454 URL: https://gcc.gnu.org/viewcvs?rev=213454&root=gcc&view=rev Log: 2014-08-01 Richard Biener PR middle-end/61762 * gcc.dg/pr6

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-08-01 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-08-01 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 --- Comment #14 from Richard Biener --- Argh. Then we fall into the c_strlen wart to not break strlenopt... which means the fancy folding never triggers. Oh well. I guess simply XFAIL for strict-align targets.

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-08-01 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 --- Comment #13 from Richard Biener --- Does the following additional patch fix the existing testcase? Index: varpool.c === --- varpool.c (revision 213342) +++ varpool.c (workin

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-08-01 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 Richard Biener changed: What|Removed |Added CC||hubicka at gcc dot gnu.org --- Comment

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-07-31 Thread ro at CeBiTec dot Uni-Bielefeld.DE
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 --- Comment #11 from ro at CeBiTec dot Uni-Bielefeld.DE --- > --- Comment #10 from Richard Biener --- [...] > Patch attached, it may still help SPARC passing the testcase. The patch doesn't make a difference, unfortunately. Rainer

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-07-31 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 --- Comment #10 from Richard Biener --- Created attachment 33218 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33218&action=edit patch I have a patch but as the relevant folding already triggers during C parsing it is too early for the cg

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-07-28 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 Richard Biener changed: What|Removed |Added Status|REOPENED|ASSIGNED --- Comment #9 from Richard Bi

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-07-28 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 --- Comment #8 from Rainer Orth --- Created attachment 33196 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33196&action=edit -fdump-tree-release_ssa dump on sparc-sun-solaris2.11

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-07-28 Thread ro at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 Rainer Orth changed: What|Removed |Added Status|RESOLVED|REOPENED CC|

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 Richard Biener changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-07-25 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 --- Comment #5 from Richard Biener --- Author: rguenth Date: Fri Jul 25 07:44:57 2014 New Revision: 213045 URL: https://gcc.gnu.org/viewcvs?rev=213045&root=gcc&view=rev Log: 2014-07-25 Richard Biener PR middle-end/61762 PR middle-end

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-07-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 --- Comment #4 from Jakub Jelinek --- Ah, no, we've optimized the memcpy to the assignment and so we don't go through expand_builtin_memcpy then that would be able to handle this.

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-07-10 Thread rguenther at suse dot de
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 --- Comment #3 from rguenther at suse dot de --- On Thu, 10 Jul 2014, jakub at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 > > Jakub Jelinek changed: > >What|Removed |Added >

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-07-10 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #2

[Bug middle-end/61762] failure to optimize memcpy from constant string

2014-07-10 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61762 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|