[Bug middle-end/59125] [4.8/4.9 Regression] gcc triggers wrong strncpy_chk

2013-11-18 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59125 --- Comment #6 from Richard Biener --- Author: rguenth Date: Mon Nov 18 15:25:05 2013 New Revision: 204966 URL: http://gcc.gnu.org/viewcvs?rev=204966&root=gcc&view=rev Log: 2013-11-18 Richard Biener PR tree-optimization/59125 PR tree-

[Bug middle-end/59125] [4.8/4.9 Regression] gcc triggers wrong strncpy_chk

2013-11-15 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59125 --- Comment #5 from Richard Biener --- Related bug is PR54570.

[Bug middle-end/59125] [4.8/4.9 Regression] gcc triggers wrong strncpy_chk

2013-11-15 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59125 Richard Biener changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #4

[Bug middle-end/59125] [4.8/4.9 Regression] gcc triggers wrong strncpy_chk

2013-11-14 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59125 --- Comment #3 from Richard Biener --- It doesn't work that easily. But we could "refine" a folding result without actually doing the folding by adding an additional argument to the builtin which serves as a (sofar) known maximum/minimum value.

[Bug middle-end/59125] [4.8/4.9 Regression] gcc triggers wrong strncpy_chk

2013-11-14 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59125 --- Comment #2 from Richard Biener --- We already re-fold whenever we fold the object-size stmt via fold_stmt looking up the def of the address - inlining for example triggers this. We'd later pick up more opportunities if we'd enhance forwprop f

[Bug middle-end/59125] [4.8/4.9 Regression] gcc triggers wrong strncpy_chk

2013-11-14 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59125 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |ASSIGNED Last reconfirmed|