[Bug tree-optimization/89043] strcat (strcpy (d, a), b) not folded to stpcpy (strcpy (d, a), b)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89043 Andrew Pinski changed: What|Removed |Added Severity|normal |enhancement
[Bug tree-optimization/89043] strcat (strcpy (d, a), b) not folded to stpcpy (strcpy (d, a), b)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89043 --- Comment #7 from Eric Gallager --- Anyways my point about bringing up which standards stpcpy() is in is to remind people to keep portability concerns in mind when doing this change. Please check the gnulib docs on stpcpy() for specifics: https://www.gnu.org/software/gnulib/manual/html_node/stpcpy.html
[Bug tree-optimization/89043] strcat (strcpy (d, a), b) not folded to stpcpy (strcpy (d, a), b)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89043 Richard Biener changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed||2019-01-25 Ever confirmed|0 |1 --- Comment #6 from Richard Biener --- Confirmed.
[Bug tree-optimization/89043] strcat (strcpy (d, a), b) not folded to stpcpy (strcpy (d, a), b)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89043 --- Comment #5 from Martin Sebor --- Ah, makes sense. I briefly wondered how stpcpy could have been "updated for alignment with the ISO/IEC 9899:1999 standard." That's the trade-off of a 4k monitor: it fits tons of stuff on the screen but everything is so tiny that I end up guessing as much as reading.
[Bug tree-optimization/89043] strcat (strcpy (d, a), b) not folded to stpcpy (strcpy (d, a), b)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89043 --- Comment #4 from joseph at codesourcery dot com --- On Thu, 24 Jan 2019, msebor at gcc dot gnu.org wrote: > The CHANGE HISTORY section for stpcpy says the function was first released in > Issue 1 and derived from Issue 1 of the SVID: > http://pubs.opengroup.org/onlinepubs/9699919799/functions/stpcpy.html That's a CHANGE HISTORY for the page as a whole (also covering strcpy) - the addition of stpcpy is listed there under issue 7 "The stpcpy() function is added from The Open Group Technical Standard, 2006, Extended API Set Part 1.". I checked and stpcpy is not in issue 1 or 3 of XPG or issue 1 or 2 of SVID.
[Bug tree-optimization/89043] strcat (strcpy (d, a), b) not folded to stpcpy (strcpy (d, a), b)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89043 --- Comment #3 from Martin Sebor --- The CHANGE HISTORY section for stpcpy says the function was first released in Issue 1 and derived from Issue 1 of the SVID: http://pubs.opengroup.org/onlinepubs/9699919799/functions/stpcpy.html
[Bug tree-optimization/89043] strcat (strcpy (d, a), b) not folded to stpcpy (strcpy (d, a), b)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89043 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment #2 from Eric Gallager --- stpcpy() is POSIX? Which version? My (admittedly old) manpage says "The stpcpy() function is an MS-DOS and GNUism. The stpcpy() function conforms to no standard."
[Bug tree-optimization/89043] strcat (strcpy (d, a), b) not folded to stpcpy (strcpy (d, a), b)
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89043 Martin Sebor changed: What|Removed |Added Keywords||missed-optimization See Also||https://gcc.gnu.org/bugzill ||a/show_bug.cgi?id=82429 Blocks||83819 --- Comment #1 from Martin Sebor --- But see bug 82429 that enables the strcpy -> stpcpy optimization only under some very restricted conditions. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83819 [Bug 83819] [meta-bug] missing strlen optimizations