Path: utzoo!utgpu!watmath!clyde!att!rutgers!ucsd!net1!corrigan
From: corrigan@net1.ucsd.edu (Mike Corrigan)
Newsgroups: comp.sys.hp
Subject: Re: Initialization bug in Series 800 C compiler?
Message-ID: <1292@ucsd.EDU>
Date: 2 Dec 88 09:28:50 GMT
References: <105@bnr-vpa.UUCP>
Sender: news@ucsd.EDU
Reply-To: corrigan@net1.UUCP (Mike Corrigan)
Organization: UCSD Network Operations Group
Lines: 18

In article <105@bnr-vpa.UUCP> bruce@bnr-vpa.UUCP (Bruce Townsend) writes:
>I have run across what seems to be a bug in the HP-UX C compiler [2.0]
>static short big_array[] = {
>    . with more than 64K bytes data.
>}
>an object file that is very small (about 700 bytes).  If the data is
>reduced to just below 64K bytes, it compiles correctly.
>Is this a known bug?  Hopefully it will be fixed in upcoming releases.
>Bruce Townsend (bnr-vpa!bruce)	Phone:	(613) 763-3008
>Bell-Northern Research		Usenet: {utzoo, utcs}!bnr-vpa!bruce
>P.O. Box 3511, Station C, Ottawa, Ontario, Canada, K1Y 4H7

Doing this on HP-UX 2.1 -> same results => it still a bug in this release.
You may be able to edit the output of cc -S and add the missing
data back into the assembler code. The assembly is actually readable,
but there is a difference between running the sequence cc -c file.c->file.o
and cc -S file.c->file.S followed by cc -c file.S->file.o of an unknown (to me)
nature.