🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1281

Buglet in rtx_alloc()

#1281
From: andrew morton
Date: Fri, 06 Nov 1992 20:45
13 lines
819 bytes
Felicitations.

In gcc 2.2.2 rtl.c:rtx_alloc() we zero the start of
the newly mallocated rtx with 

	* (int *) rt = 0;

This doesn't work as desired if ONLY_INT_FIELDS is
defined in rtl.h.  I guess that this is because
rt->mode is out of reach of the write.

Suggest you call bzero() in rtx_alloc() if ONLY_INT_FIELDS
is defined.
Technical Details
Message-ID: <199211060445.AA03008@wampyr.cc.uow.edu.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cc.uow.EDU.AU!amorton

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!charon.amdahl.com!pacbell.com!decwrl!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!cc.uow.EDU.AU!amorton
From: amorton@cc.uow.EDU.AU (andrew morton)
Subject: Buglet in rtx_alloc()
Message-ID: <199211060445.AA03008@wampyr.cc.uow.edu.au>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Fri, 6 Nov 1992 20:45:45 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 15