Article View: gnu.gcc.bug
Article #97"&" applied to arg of inline function
From: Jan Edler
Date: Thu, 15 Jun 1989 18:05
Date: Thu, 15 Jun 1989 18:05
14 lines
966 bytes
966 bytes
(I'm looking at gcc-1.35.) If you take the address of a variable, it won't be put in a register, even if all you do with it is pass it to an inline function. I notice that in the documentation, it says you can force a variable to be not allocated to a register by simply taking its address, even if you don't use it. The example given is just a single useless statement, something like "&var;". So I guess this is treated as a pretty serious condition in the compiler. This is unfortunate, although I can't say it's crucial. Jan
Technical Details
Message-ID:
<8906151805.AA00573@jan.ultra.nyu.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!bionet!ames!purdue!tut.cis.ohio-state.edu!JAN.ULTRA.NYU.EDU!edlerShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!bionet!ames!purdue!tut.cis.ohio-state.edu!JAN.ULTRA.NYU.EDU!edler From: edler@JAN.ULTRA.NYU.EDU (Jan Edler) Newsgroups: gnu.gcc.bug Subject: "&" applied to arg of inline function Message-ID: <8906151805.AA00573@jan.ultra.nyu.edu> Date: 15 Jun 89 18:05:58 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 14