🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #6055

bug in optimizer

#6055
From: Mandr
Date: Thu, 12 Dec 1996 00:00
27 lines
1588 bytes

Hi,

   I have written a program that works normally without any optimization
   parameters, but gives incorrect results when any of the -OX optimizer
   option is used.  Is this a known bug in the compiler?  or do I have
   to program in a certain ways to get around the problem?

   GCC version: 2.7.2 / 2.7.2.1
   platform : SunOS 4.1.4 1 sun4m  / HP-UX B.10.01 A 9000/735
	      (tried on both machines)

   the program uses realloc to allocate memory for the data structures,
   and array of long integers to store 256bit bit vectors.
   free() is never used in the program.

   any help would be appreciated.


Mandr
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
          ____           Albert Kwong - Computer Engineering - U of Alberta
Mountain-|     \         email - akwong@ee.ualberta.ca
         |      )-Mandr  phone - (Edmonton) 403-437-4167 (HK) 852-23622744
   River-|____ /         www - http://www.ee.ualberta.ca/~akwong
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID: <58npmg$12r2@pulp.ucs.ualberta.ca>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 113d02,5b6ee777f6d51fca,start
X-Google-Attributes: gid113d02,public
From: akwong@ee.ualberta.ca (Mandr)
Subject: bug in optimizer
Date: 1996/12/12
Message-ID: <58npmg$12r2@pulp.ucs.ualberta.ca>
X-Deja-AN: 203613200
sender: bug-gcc-request@prep.ai.mit.edu
organization: University of Alberta Electrical Engineering Department
x-gateway: relay3.UU.NET from bug-gcc to gnu.gcc.bug; Wed, 11 Dec 1996 21:12:50 EST
newsgroups: gnu.gcc.bug