t be fixed. (gcc
deliberately makes such aggressive optimizations that are known to be
illegal in very rare cases, so marking the variable as volatile is not
a workaround but a requirement)
thanks in advance for the clarification
Gilles
On Wed, Jun 10, 2015 at 10:33 AM, Gilles Gouaillardet
wrote
This is a follow-up on a discussion about OpenMPI that started at
http://www.open-mpi.org/community/lists/users/2015/06/27039.php
and continued at https://github.com/open-mpi/ompi/pull/625
The attached test program does not produce correct results with gcc
4.9.2 and gcc 5.1.0 with -O1 or greater (