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

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Nov 14 12:59:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59125

--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
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.



More information about the Gcc-bugs mailing list