[Bug c/59219] ____builtin___memcpy_chk and -fno-builtin-memcpy

2013-11-25 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59219 Richard Biener changed: What|Removed |Added Status|WAITING |NEW --- Comment #5 from Richard Biener

[Bug c/59219] ____builtin___memcpy_chk and -fno-builtin-memcpy

2013-11-22 Thread msebor at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59219 --- Comment #4 from Martin Sebor --- I understand. The current semantics of __builtin__xxx_chk are to: a) check the constraints of the xxx function at compile time, and b) diagnose constraint violations detected in (a) and call __xxx_chk, or c) e

[Bug c/59219] ____builtin___memcpy_chk and -fno-builtin-memcpy

2013-11-22 Thread rguenth at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59219 --- Comment #3 from Richard Biener --- But if you are using __builtin__xxx_chk you are using a builtin and thus are required to follow the builtins semantic. You can use __memcpy_chk instead (but you won't get the optimization to memcpy for unkno

[Bug c/59219] ____builtin___memcpy_chk and -fno-builtin-memcpy

2013-11-21 Thread msebor at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59219 --- Comment #2 from Martin Sebor --- I'm suggesting that when -fno-builtin is used, __builtin___memcpy_chk (and other __bultin_xxx_chk) invocations that are determined not to exceed the size of the buffer boundaries expand to a call to memcpy inst

[Bug c/59219] ____builtin___memcpy_chk and -fno-builtin-memcpy

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