[Bug ld/16934] gc-sections fails to remove unused C++ member functions

2022-07-29 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16934 Alan Modra changed: What|Removed |Added Resolution|--- |INVALID Status|WAITING

[Bug ld/16934] gc-sections fails to remove unused C++ member functions

2014-06-19 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16934 --- Comment #7 from curaga at operamail dot com --- That's why this is an enhancement request :) I'd like to see that sophistication added to the linker. This is needed separately from LTO for various reasons: - use with older compilers that d

[Bug ld/16934] gc-sections fails to remove unused C++ member functions

2014-06-18 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16934 --- Comment #6 from Nick Clifton --- Have you tried enabling link-time optimization in gcc. Ie compiling with -lfto added to the g++ command lines. This appears to work for the test case you supplied. The problem I believe is related to the

[Bug ld/16934] gc-sections fails to remove unused C++ member functions

2014-06-18 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16934 curaga at operamail dot com changed: What|Removed |Added Version|2.23|2.25 (HEAD) -- You are

[Bug ld/16934] gc-sections fails to remove unused C++ member functions

2014-06-18 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16934 --- Comment #5 from curaga at operamail dot com --- It fails to remove the function foo, which is in its own section _ZN7myclass3fooEv and unused. It still happens on current git, 2.24.51.20140618 or 6a83deeaa804 (Brown paper bag ...). -- Yo

[Bug ld/16934] gc-sections fails to remove unused C++ member functions

2014-06-17 Thread nickc at redhat dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16934 Nick Clifton changed: What|Removed |Added Status|NEW |WAITING CC|

[Bug ld/16934] gc-sections fails to remove unused C++ member functions

2014-05-12 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16934 --- Comment #2 from curaga at operamail dot com --- lib.cpp: #include #include "lib.h" class myclass: public interface { public: void foo() { puts("foo"); } void bar() { puts("bar"); } }; interface *getclass() { return new myc

[Bug ld/16934] gc-sections fails to remove unused C++ member functions

2014-05-12 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16934 --- Comment #3 from curaga at operamail dot com --- app.cpp: #include "lib.h" int main() { interface *i = getclass(); i->bar(); return 0; } -- You are receiving this mail because: You are on the CC list for the bug. _

[Bug ld/16934] gc-sections fails to remove unused C++ member functions

2014-05-12 Thread curaga at operamail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=16934 --- Comment #1 from curaga at operamail dot com --- lib.h: #ifndef FOO_H #define FOO_H class interface { public: virtual void foo() = 0; virtual void bar() = 0; }; interface* getclass(); #endif -- You are receiving this mail becau