I think that you will run into problems with optimization unless you
use all the gcc options to tell it that statics are volatile. Most
compilers will assume that statics within a C function can only be
changed by that function, but that isn't true with multiple threads
executing the code.
We're still using egcs-2.91.66, and it doesn't have the flag for
volatile statics, so I was hesitant to compile nsd7x with
optimization. I did it once and it seemed to work, but I knew there
were cases where it might not work and didn't want to find out the
hard way.
Jim
>
> I have some questions about gcc optimization settings for AOLserver:
>
> Is there any danger or drawback to compiling nsd8x and various
> loadable modules with different -O settings? -O2?
>
> What -O setting do most of you here use and recomend for gcc? Gcc
> allows it, but is it particularly useful to specify both -g and -O?
>
> --
> Andrew Piskorski <[EMAIL PROTECTED]>
> http://www.piskorski.com
>