Article View: gnu.gcc.bug
Article #91Gcc 1.35 bug report.
From: Jack Jansen
Date: Tue, 13 Jun 1989 12:03
Date: Tue, 13 Jun 1989 12:03
31 lines
991 bytes
991 bytes
Description:
The optimizer sometimes throws away a test in an inline
function that is inlined.
Version:
gcc 1.35, vax version, running on Ultrix 2.0 on a VS2000.
Repeat by:
Compile the following code with gcc -S -O and examine the
output.
-----------------------
int glob;
inline
subr(arg)
short arg;
{
if( glob ) {
if( arg < 0 ) return;
else panic();
}
}
main() {
subr(-1);
}
-----------------------
--
Een volk dat voor tirannen zwicht | Oral: Jack Jansen
zal meer dan lijf en goed verliezen | Internet: jack@cwi.nl
dan dooft het licht | Uucp: mcvax!jack
Technical Details
Message-ID:
<8906131203.AA02628@piring.cwi.nl>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!cwi.nl!jackShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!cwi.nl!jack From: jack@cwi.nl (Jack Jansen) Newsgroups: gnu.gcc.bug Subject: Gcc 1.35 bug report. Message-ID: <8906131203.AA02628@piring.cwi.nl> Date: 13 Jun 89 12:03:24 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 31