🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2210

improper code generation for char *...

#2210
From: Adam R de Boor
Date: Thu, 26 Jan 1989 06:12
23 lines
850 bytes
if you declare something

static char foo[] = { "hi", "there" };

you get the improper code:

.text
LC0:
	.ascii "hi\0"
LC1:
	.ascii "there\0"
.data
_foo:
	.byte LC0
	.byte LC1

It does given a warning about initializing an integer from a pointer
but generates the bogus code indicated. I'm running on an ISI machine (to
my sadness) using their assembler with various bugs and annoyances fixed.
The gcc release is 1.31.

a
Technical Details
Message-ID: <8901260612.AA25301@sniff.bsw.com>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!sniff.bsw.com!adam

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!mit-eddie!bloom-beacon!tut.cis.ohio-state.edu!sniff.bsw.com!adam
From: adam@sniff.bsw.com (Adam R de Boor)
Newsgroups: gnu.gcc.bug
Subject: improper code generation for char *...
Message-ID: <8901260612.AA25301@sniff.bsw.com>
Date: 26 Jan 89 06:12:11 GMT
Sender: news@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 23