From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 References: <43a5572d-ea50-41a8-9897-9900f13c5a00@www.fastmail.com> <20190402003532.GA55021@wopr> <20190402022256.GA36424@wopr> <20190402162558.GA14506@alice> In-Reply-To: <20190402162558.GA14506@alice> From: Charles Forsyth Date: Tue, 2 Apr 2019 17:37:01 +0100 Message-ID: To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary="000000000000cd561a05858ebf81" Subject: Re: [9fans] Don't Plan 9 C compiler initialize the rest of member of a?struct? Topicbox-Message-UUID: f8844d94-ead9-11e9-9d60-3106f5b1d025 --000000000000cd561a05858ebf81 Content-Type: text/plain; charset="UTF-8" covered and covered1 On Tue, 2 Apr 2019 at 17:26, Anthony Martin wrote: > Charles Forsyth once said: > > I didn't look at the code closely enough earlier, but remembered > something > > from years ago this morning. It's a bug. It isn't platform specific. > > There is an existing fix in 9front (I think it came from there) but it's > > horrible. Still, better a horrible fix than buggy code, so I'll apply it > to > > the 9legacy version as well. > > It's in /sys/src/cmd/cc/dcl.c:/^contig > > What was horrible about the fix? > > Anthony > > --000000000000cd561a05858ebf81 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
covered and covered1

<= div dir=3D"ltr" class=3D"gmail_attr">On Tue, 2 Apr 2019 at 17:26, Anthony M= artin <ality@pbrane.org> wrot= e:
Charles Forsy= th <charl= es.forsyth@gmail.com> once said:
> I didn't look at the code closely enough earlier, but remembered s= omething
> from years ago this morning. It's a bug. It isn't platform spe= cific.
> There is an existing fix in 9front (I think it came from there) but it= 's
> horrible. Still, better a horrible fix than buggy code, so I'll ap= ply it to
> the 9legacy version as well.

It's in /sys/src/cmd/cc/dcl.c:/^contig

What was horrible about the fix?

=C2=A0 Anthony

--000000000000cd561a05858ebf81--