🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: att.lang.c++
Article #242

Sun Compiler and getting stepped on

#242
From: Keith Gallie
Date: Thu, 02 Jul 1992 08:08
29 lines
1863 bytes

	We have been having a lot of trouble with optimization.

	It seems that more often than not when we link an optimized library,
	classes in the library end up getting private data members stepped on.

	In one case a private data member had the same address as a driver
	(main) variable. Private data ends up being set to the value of the
	drivers variable.

	The classes we are having trouble with have shorts and chars in
	addition to longs as private data.

	We are running on Sun4's, Sparcstations, and Sparc 2's.

	Any ideas , help?

	Thanks in advance
	
--
Keith A. Gallie
Keith.Gallie@FtCollins.NCR.COM - uunet!ncrlnk!ncr-mpd!bach!keithg 
NCR MPD Fort Collins  2001 Danfield Court  Fort Collins, CO 80525 
----------------------------------------------------------------------------
  All thoughts, opinions, etc., are my own. Not that anyone listens to me. 
----------------------------------------------------------------------------
                    Cubs in second - 6 back - 06/17/92 - :-o
---------------------------------------------------------------------------- 
Technical Details
Message-ID: <KEITH.GALLIE.92Jul2090806@mozart.FtCollins.NCR.COM>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!psuvax1!rutgers!psinntp!psinntp!ncrlnk!ncr-mpd!Keith.Gallie

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,cc380d008bfe36a4,start
X-Google-Attributes: gid109fba,public
X-Google-Thread: 10d4ba,cc380d008bfe36a4,start
X-Google-Attributes: gid10d4ba,public
X-Google-ArrivalTime: 1992-07-02 09:13:08 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!psuvax1!rutgers!psinntp!psinntp!ncrlnk!ncr-mpd!Keith.Gallie
From: Keith.Gallie@FtCollins.NCR.COM (Keith Gallie)
Newsgroups: att.lang.c++,comp.lang.c++
Subject: Sun Compiler and getting stepped on
Message-ID: <KEITH.GALLIE.92Jul2090806@mozart.FtCollins.NCR.COM>
Date: 2 Jul 92 08:08:06 GMT
Sender: uucp@ncr-mpd.FtCollins.NCR.COM
Reply-To: Keith.Gallie@FtCollinsCO.NCR.COM
Distribution: usa
Organization: NCR Microelectronics, Ft. Collins, CO
Lines: 29