🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1127

Compiler initialization -- reg+reg+offset test

#1127
From: Michael Gersten
Date: Sat, 12 Sep 1992 02:18
18 lines
1136 bytes
I'm wondering if this is a bug or not, or if there's something subtle  
that I'm missing.

During initialization, gcc tried to see if reg+reg+offset is a legal  
addressing mode, by taking the frame pointer, adding it to itself,  
and a small constant 4.

Shouldn't this test be with a psuedo register, not a fixed register?  
Its possible that a machine may allow reg+reg only if one of the  
regs is in a small set (such as the military 1750), which need not  
be the frame pointer.

(In this case it ultimately doesn't matter, as the 1750 doesn't allow  
the sum to be offset.)
--
		Michael Gersten		michael@stb.info.com
HELLO! I'm a signature virus! Join in the fun and copy me into yours!
ex:.-1,. w $HOME/.signature
Technical Details
Message-ID: <m0mTN45-0005OXC@stb.info.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!stb.INfo.COM!michael

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!stb.INfo.COM!michael
From: michael@stb.INfo.COM (Michael Gersten)
Subject: Compiler initialization -- reg+reg+offset test
Message-ID: <m0mTN45-0005OXC@stb.info.com>
Sender: gnulists@ai.mit.edu
Organization: Gnus Not Usenet
Distribution: gnu
Date: Sat, 12 Sep 1992 02:18:00 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 19