Article View: gnu.gcc.bug
Article #579Re: GCC 1.35 'const' makes wrong assumptions about assembler
From: Andrew Klossner
Date: Thu, 07 Sep 1989 16:23
Date: Thu, 07 Sep 1989 16:23
11 lines
1025 bytes
1025 bytes
Kevin O'Gorman (kevin@kosman.UUCP) reports that a "const" array
initialized to zero is translated to an assembly language "space"
pseudo-op in the text segment, and that the assembler allocates the
space but fills it with some non-zero value.
It's common for assemblers to satisfy a text "space" with no-op
instructions. GCC should not assume that "space" in the text segment
will generate zeros.
-=- Andrew Klossner (uunet!tektronix!frip.WV.TEK!andrew) [UUCP]
(andrew%frip.wv.tek.com@relay.cs.net) [ARPA]
Technical Details
Message-ID:
<4462@orca.WV.TEK.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!zephyr.ens.tek.com!orca!frip!andrewReferences:
<956@kosman.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.csd.uwm.edu!gem.mps.ohio-state.edu!ginosko!uunet!zephyr.ens.tek.com!orca!frip!andrew From: andrew@frip.WV.TEK.COM (Andrew Klossner) Newsgroups: gnu.gcc.bug Subject: Re: GCC 1.35 'const' makes wrong assumptions about assembler Message-ID: <4462@orca.WV.TEK.COM> Date: 7 Sep 89 16:23:46 GMT References: <956@kosman.UUCP> Sender: nobody@orca.WV.TEK.COM Organization: Tektronix, Wilsonville, Oregon Lines: 11