Bill Medland wrote:
Ulrich Weigand weigand@immd1.informatik.uni-erlangen.de wrote in article 200107262124.XAA25786@faui11.informatik.uni-erlangen.de...
No, 'inline' must not change the semantics of the routine in any way, including static variables.
If the app behaves differently when 'perfect_graphics' is inlined, this is a compiler bug. Which compiler version are you using?
Excuse my ignorance. rpm says it is 2.96-81. How do I ask gcc what version IT thinks it is? (Running on RH7.1; how do I get the kernel version? rpm says 2.4.2-2)
gcc 2.96 is the version RedHat is currently using; it is not an 'official' version supported by the gcc folks ...
However, RedHat has been fixing quite a bunch of bugs in their compiler; it might be worthwhile to check whether this inlining bug is fixed in the most recent RedHat update. (Check the RPM sublevel to find out whether you have the most recent update, that's the -81 in your case. AFAIK, bugfix updates can be downloaded from the RedHat FTP site ...)
Bye, Ulrich