public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/18925] New: Invalid gprel relocation in PIC
@ 2004-12-10 13:54 schwab at suse dot de
  2004-12-10 13:54 ` [Bug target/18925] " schwab at suse dot de
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: schwab at suse dot de @ 2004-12-10 13:54 UTC (permalink / raw)
  To: gcc-bugs

$ cat gprel.cc 
class __attribute__ ((visibility("default"))) Type 
{ 
 private: 
  static long _staticTypeCount; 
 public: 
  Type() { _staticTypeCount++; } 
  ~Type(); 
}; 
 
long Type::_staticTypeCount = 0; 
 
Type::~Type() 
{ 
 _staticTypeCount--; 
} 
$ gcc -fPIC -fvisibility=hidden -S gprel.cc 
$ grep _staticTypeCount gprel.s 
	.global _ZN4Type16_staticTypeCountE# 
	.type	_ZN4Type16_staticTypeCountE#, @object 
	.size	_ZN4Type16_staticTypeCountE#, 8 
_ZN4Type16_staticTypeCountE: 
	addl r14 = @gprel(_ZN4Type16_staticTypeCountE#), gp 
	addl r14 = @gprel(_ZN4Type16_staticTypeCountE#), gp 
	addl r14 = @gprel(_ZN4Type16_staticTypeCountE#), gp 
	addl r14 = @gprel(_ZN4Type16_staticTypeCountE#), gp

-- 
           Summary: Invalid gprel relocation in PIC
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: schwab at suse dot de
                CC: gcc-bugs at gcc dot gnu dot org
GCC target triplet: ia64-*-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18925


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-12-14  2:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-10 13:54 [Bug target/18925] New: Invalid gprel relocation in PIC schwab at suse dot de
2004-12-10 13:54 ` [Bug target/18925] " schwab at suse dot de
2004-12-10 13:55 ` schwab at suse dot de
2004-12-10 15:11 ` [Bug target/18925] [4.0 regression] " schwab at suse dot de
2004-12-10 16:23 ` schwab at suse dot de
2004-12-14  2:16 ` cvs-commit at gcc dot gnu dot org
2004-12-14  2:18 ` mmitchel at gcc dot gnu dot 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).