https://sourceware.org/bugzilla/show_bug.cgi?id=16934
Alan Modra changed:
What|Removed |Added
Resolution|--- |INVALID
Status|WAITING
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
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
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
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
https://sourceware.org/bugzilla/show_bug.cgi?id=16934
Nick Clifton changed:
What|Removed |Added
Status|NEW |WAITING
CC|
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
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.
_
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