[Bug ld/11175] ld marks destructor hidden global

2010-01-19 Thread raj dot khem at gmail dot com
--- Additional Comments From raj dot khem at gmail dot com 2010-01-19 18:18 --- as I see in the code for lnkproperties.h public: // WARNING: Do *NOT* define this yourself. The SL5xxx from SHARP does NOT // have this class. #ifdef QTOPIA_INTERNAL_FSLP LnkProperties( AppLnk* lnk,

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-16 01:06 --- Here is a testcase: [...@gnu-6 pr11175]$ cat z.cc class QObject { public: virtual ~QObject(); virtual const char *className() const; }; class LnkProperties : public QObject { public: const char *clas

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread raj dot khem at gmail dot com
--- Additional Comments From raj dot khem at gmail dot com 2010-01-16 00:27 --- (In reply to comment #18) > Created an attachment (id=4524) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4524&action=view) > preprocessed testcase > -fvisibility-inlines-hidden is making this diff

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-16 00:41 --- (In reply to comment #19) > (In reply to comment #18) > > Created an attachment (id=4524) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4524&action=view) > > preprocessed testcase > > > > -fvisibi

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread raj dot khem at gmail dot com
--- Additional Comments From raj dot khem at gmail dot com 2010-01-16 00:25 --- Created an attachment (id=4524) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4524&action=view) preprocessed testcase -- http://sourceware.org/bugzilla/show_bug.cgi?id=11175 --- You are rec

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-15 22:11 --- (In reply to comment #16) > (In reply to comment #15) > > `-fvisibility-inlines-hidden' > > This switch declares that the user does not attempt to compare > > pointers to inline methods where the a

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread raj dot khem at gmail dot com
-- What|Removed |Added Attachment #4523|application/octet-stream|application/x-bzip mime type|| http://sourceware.org/bugzilla/show_bug.c

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread raj dot khem at gmail dot com
--- Additional Comments From raj dot khem at gmail dot com 2010-01-15 21:37 --- (In reply to comment #15) > `-fvisibility-inlines-hidden' > This switch declares that the user does not attempt to compare > pointers to inline methods where the addresses of the two functions >

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-15 19:22 --- `-fvisibility-inlines-hidden' This switch declares that the user does not attempt to compare pointers to inline methods where the addresses of the two functions were taken in different shared

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-15 19:15 --- (In reply to comment #12) > after reading the googlegroups thread if ld will propagate most restrictive > visibility to the output for a symbol irrespective of its definition then I > think this is not what

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-15 19:04 --- Created an attachment (id=4523) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4523&action=view) A simple testcase [...@gnu-6 pr11175]$ make cc -fPIC -c -o x.o x.c cc -fPIC -c -o foo.o foo.c cc

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread raj dot khem at gmail dot com
--- Additional Comments From raj dot khem at gmail dot com 2010-01-15 18:42 --- after reading the googlegroups thread if ld will propagate most restrictive visibility to the output for a symbol irrespective of its definition then I think this is not what gcc thinks when generating code i

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread raj dot khem at gmail dot com
--- Additional Comments From raj dot khem at gmail dot com 2010-01-15 18:29 --- (In reply to comment #9) > (In reply to comment #8) > > In reply to comment #6. Look again. > > $ nm -o *.o | grep _ZN13LnkPropertiesD1Ev > > fileselector.o: U _ZN13LnkPropertiesD1Ev > > lnkpropertie

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-15 17:34 --- (In reply to comment #7) > (In reply to comment #5) > > HJ, I don't understand your point in comment #3. > > If your 9679 testcase isn't valid C then you had no reason to apply your > > 9679 > > patch. If

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-15 16:01 --- (In reply to comment #8) > In reply to comment #6. Look again. > $ nm -o *.o | grep _ZN13LnkPropertiesD1Ev > fileselector.o: U _ZN13LnkPropertiesD1Ev > lnkproperties.o:0ae9 T _ZN13LnkPropertiesD

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread amodra at gmail dot com
--- Additional Comments From amodra at gmail dot com 2010-01-15 14:05 --- In reply to comment #6. Look again. $ nm -o *.o | grep _ZN13LnkPropertiesD1Ev fileselector.o: U _ZN13LnkPropertiesD1Ev lnkproperties.o:0ae9 T _ZN13LnkPropertiesD1Ev moc_lnkproperties.o:0001 W _ZN13

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-15 14:00 --- (In reply to comment #5) > HJ, I don't understand your point in comment #3. > If your 9679 testcase isn't valid C then you had no reason to apply your 9679 > patch. If your 9679 testcase is valid (and I thi

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-15 13:56 --- (In reply to comment #1) > the testcase is here > > http://uclibc.org/~kraj/ld-pr11175.tar.bz2 The testcase is invalid. Linker never saw any definition of `LnkProperties::~LnkProperties()'. -- http://s

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread amodra at gmail dot com
--- Additional Comments From amodra at gmail dot com 2010-01-15 13:55 --- HJ, I don't understand your point in comment #3. If your 9679 testcase isn't valid C then you had no reason to apply your 9679 patch. If your 9679 testcase is valid (and I think it is), then I believe the link err

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-15 13:37 --- In ./libqpe/moc_lnkproperties.o: 140: 000152 FUNCWEAK HIDDEN37 _ZN13LnkPropertiesD1Ev It is ignored only if there is a definition. -- http://sourceware.org/bugzilla/show_bug.cgi?id=1

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread hjl dot tools at gmail dot com
--- Additional Comments From hjl dot tools at gmail dot com 2010-01-15 13:13 --- (In reply to comment #2) > The sysv gabi says: > "When the link editor combines several relocatable object files, it does not > allow multiple definitions of STB_GLOBAL symbols with the same name. On the >

[Bug ld/11175] ld marks destructor hidden global

2010-01-15 Thread amodra at gmail dot com
--- Additional Comments From amodra at gmail dot com 2010-01-15 09:37 --- The sysv gabi says: "When the link editor combines several relocatable object files, it does not allow multiple definitions of STB_GLOBAL symbols with the same name. On the other hand, if a defined global symbol e

[Bug ld/11175] ld marks destructor hidden global

2010-01-14 Thread raj dot khem at gmail dot com
--- Additional Comments From raj dot khem at gmail dot com 2010-01-15 06:33 --- the testcase is here http://uclibc.org/~kraj/ld-pr11175.tar.bz2 -- What|Removed |Added