Article View: gnu.gcc.bug
Article #6115long long bug?
From: Staale L. Hansen
Date: Tue, 03 Dec 1996 00:00
Date: Tue, 03 Dec 1996 00:00
18 lines
1339 bytes
1339 bytes
In a loop reading data from disk I have a global counter of type "long long", which is incremented by the number of bytes read. The counter increases normally for a while, but suddenly it jumps to a gigantic number (~120E12). If I change the variable type to "long", or make it volatile, this does not happen. The code is too long to post here, but it is compiled with gcc 2.7.2.1 on Solaris x86 (Pentium) 2.5, with no optimization Has anyone else seen this? Are there any known bugs with "long long"'s? -- Staale L. Hansen, M.Sc. | Spacetec A.S, Prestvannv. 38, Software Engineer | N-9005 Tromsoe, Norway EMail: staale@spacetec.no | Phone: +47 77 66 08 00 WWW: http://www.spacetec.no | Fax: +47 77 65 58 59
Technical Details
Message-ID:
<32A488AA.75B6@spacetec.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,731dc3ea5e89329b,start X-Google-Attributes: gid113d02,public From: "Staale L. Hansen" <staale@spacetec.no> Subject: long long bug? Date: 1996/12/03 Message-ID: <32A488AA.75B6@spacetec.no> X-Deja-AN: 202211903 sender: bug-gcc-request@prep.ai.mit.edu content-type: text/plain; charset=us-ascii organization: Kongsberg Spacetec as x-gateway: relay2.UU.NET from bug-gcc to gnu.gcc.bug; Tue, 3 Dec 1996 21:03:18 EST mime-version: 1.0 newsgroups: gnu.gcc.bug x-mailer: Mozilla 3.01 (X11; I; SunOS 5.5 sun4m)