From: Mikael Starvik <mikael.starvik@ax...> - 2002-10-27 16:42:26
Should it be possible to run the LTP tests with -O2 or
should optimization always be disabled?
Some of the waitpid tests uses a variable intintr which
is modified by the parent and read by the children.
With -O2 this fails because the compiler finds that
it is enough to read intintr once.
This can be solved in two ways:
1. Disable optimization
2. Declare intintr as volatile
PS. Almost all tests seams to work ok with -O2. DS
Get latest updates about Open Source Projects, Conferences and News.