There seems to be a misunderstanding:
- Adrian reports a bug manifested with “-O2” optimizer;
- you reply that there’s no problem with “-g”.
This reminds me of the problem I reported, which also manifested only under optimizer, but not with “-g” with no or low level of optimization.
Am I missing something?