Bill Medland medbi01@accpac.com wrote in article 01c1194f$025f5f00$6f0c10ac@medbi01...
Ulrich Weigand weigand@immd1.informatik.uni-erlangen.de wrote in
article
200107301823.UAA01150@faui11.informatik.uni-erlangen.de...
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
Thanks; I'll try that when I have a moment.
Well, I found a moment. The problem is still there with 2.96-85 which is what is currently available from RedHat. Maybe sometime I'll take a look at the difference in the generated assembler code, unless someone else is interested.
Bill