public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug lto/58203] New: memset/memcpy are discarded with -flto @ 2013-08-20 15:27 kukyakya at gmail dot com 2013-08-20 15:28 ` [Bug lto/58203] " kukyakya at gmail dot com ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: kukyakya at gmail dot com @ 2013-08-20 15:27 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58203 Bug ID: 58203 Summary: memset/memcpy are discarded with -flto Product: gcc Version: 4.8.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: kukyakya at gmail dot com It might be a duplicate of bug 51205 but it's happening again. [test.cpp] typedef void (*action_t)(const unsigned char*); extern "C" void _start(action_t action) { const unsigned char foo[256] = {}; action(foo); } typedef __SIZE_TYPE__ size_t; extern "C" void* //__attribute__((externally_visible)) // Workaround memset(void* dst, int c, size_t len) { unsigned char * d = (unsigned char*)dst; while(len--) *d++ = c; return dst; } [error] $ arm-none-linux-gnueabi-g++ -fno-exceptions -nostartfiles -static -nostdlib -nodefaultlibs -flto test.cpp -o test `memset' referenced in section `.text' of /tmp/cc7ooAE0.ltrans0.ltrans.o: defined in discarded section `.text' of /tmp/ccVDnjy6.o (symbol from plugin) collect2: error: ld returned 1 exit status [versions] arm-none-linux-gnueabi-g++ --version : 4.8.1 arm-none-linux-gnueabi-ld --version : 2.23.2 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/58203] memset/memcpy are discarded with -flto 2013-08-20 15:27 [Bug lto/58203] New: memset/memcpy are discarded with -flto kukyakya at gmail dot com @ 2013-08-20 15:28 ` kukyakya at gmail dot com 2021-03-12 18:15 ` pinskia at gcc dot gnu.org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: kukyakya at gmail dot com @ 2013-08-20 15:28 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58203 --- Comment #1 from kukyakya at gmail dot com --- Created attachment 30679 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30679&action=edit Test case ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/58203] memset/memcpy are discarded with -flto 2013-08-20 15:27 [Bug lto/58203] New: memset/memcpy are discarded with -flto kukyakya at gmail dot com 2013-08-20 15:28 ` [Bug lto/58203] " kukyakya at gmail dot com @ 2021-03-12 18:15 ` pinskia at gcc dot gnu.org 2021-12-24 8:26 ` pinskia at gcc dot gnu.org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-03-12 18:15 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58203 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kabel at blackhole dot sk --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- *** Bug 99559 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/58203] memset/memcpy are discarded with -flto 2013-08-20 15:27 [Bug lto/58203] New: memset/memcpy are discarded with -flto kukyakya at gmail dot com 2013-08-20 15:28 ` [Bug lto/58203] " kukyakya at gmail dot com 2021-03-12 18:15 ` pinskia at gcc dot gnu.org @ 2021-12-24 8:26 ` pinskia at gcc dot gnu.org 2021-12-24 12:51 ` pinskia at gcc dot gnu.org 2021-12-24 12:51 ` pinskia at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-12-24 8:26 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58203 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |patrick.oppenlander at gmail dot c | |om --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- *** Bug 60395 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/58203] memset/memcpy are discarded with -flto 2013-08-20 15:27 [Bug lto/58203] New: memset/memcpy are discarded with -flto kukyakya at gmail dot com ` (2 preceding siblings ...) 2021-12-24 8:26 ` pinskia at gcc dot gnu.org @ 2021-12-24 12:51 ` pinskia at gcc dot gnu.org 2021-12-24 12:51 ` pinskia at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-12-24 12:51 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58203 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-12-24 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW --- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- . ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/58203] memset/memcpy are discarded with -flto 2013-08-20 15:27 [Bug lto/58203] New: memset/memcpy are discarded with -flto kukyakya at gmail dot com ` (3 preceding siblings ...) 2021-12-24 12:51 ` pinskia at gcc dot gnu.org @ 2021-12-24 12:51 ` pinskia at gcc dot gnu.org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu.org @ 2021-12-24 12:51 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58203 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |goswin-v-b at web dot de --- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- *** Bug 65199 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-12-24 12:51 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2013-08-20 15:27 [Bug lto/58203] New: memset/memcpy are discarded with -flto kukyakya at gmail dot com 2013-08-20 15:28 ` [Bug lto/58203] " kukyakya at gmail dot com 2021-03-12 18:15 ` pinskia at gcc dot gnu.org 2021-12-24 8:26 ` pinskia at gcc dot gnu.org 2021-12-24 12:51 ` pinskia at gcc dot gnu.org 2021-12-24 12:51 ` pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).