jack@cwi.nl (Jack Jansen) (06/13/89)
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