https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124667

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=89430,
                   |                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=10050,
                   |                            |https://gcc.gnu.org/bugzill
                   |                            |a/show_bug.cgi?id=64567

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
      bool res = (ptr->bits[word_num] & bit_val) == 0;
      if (res)
        ptr->bits[word_num] |= bit_val;

Converting this into:
ptr->bits[word_num] |= bit_val;

is not valid with the C11/C++11 threading model so it needs a
`!flag_store_data_races` check. And The only other problem is if this is read
only memory then doing the store always could cause issues too.

Reply via email to