Article View: gnu.gcc.bug
Article #2825Alignment bug? on 386
From: chase
Date: Fri, 12 Jan 1990 01:09
Date: Fri, 12 Jan 1990 01:09
20 lines
1296 bytes
1296 bytes
This is a crappy bug report on two counts, but I'm reporting it anyway and will try to provide more information in the future. First, this may be only a misfeature, and not a bug, and (second) I don't have anything like a small program that provokes it (yet). The bug: On a 386, running Mach, and using gcc (v 1.36), gcc-as, and gcc-ld, it is possible for a variable "x" declared "static void * x;" to have an odd address. This doesn't seem to happen usually. I realize that the 386 copes with this situation perfectly well, but it doesn't appear to be what is intended to happen; pointers allocated within records are aligned to a four-byte boundary, and pointers declared in all my simple test programs are aligned to a four-byte boundary. Besides, it gives the garbage collector fits. David
Technical Details
Message-ID:
<48839@ricerca.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!lll-winken!decwrl!orc!orc.olivetti.com!chaseShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!lll-winken!decwrl!orc!orc.olivetti.com!chase From: chase@orc.olivetti.com Newsgroups: gnu.gcc.bug Subject: Alignment bug? on 386 Summary: Maybe this is just a misfeature Message-ID: <48839@ricerca.UUCP> Date: 12 Jan 90 01:09:28 GMT Sender: news@orc.Olivetti.Com Reply-To: chase@orc.olivetti.com (David Chase) Distribution: gnu Organization: Olivetti Research California (Menlo Park) Lines: 20