[Bug c++/102319] ICE in cpp_atomic_builtins, at c-family/c-cppbuiltin.c:746 since r12-3495-g76b75018b3d053a8

jakub at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 14 09:32:30 GMT 2021


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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
  /* Macros for C++17 hardware interference size constants.  Either both or
     neither should be set.  */
  gcc_assert (!param_destruct_interfere_size
              == !param_construct_interfere_size);
When it is provided by user, assertion isn't the right thing.
So, either there should be an assertion that if
!global_opts.x_param_destruct_interfere_size
&& !global_opts.x_param_construct_interfere_size
either both are zero or both non-zero (verification that the default setting of
this in the backends set both to non-zero), or there can be a warning or error
otherwise that user explicitly set something that shouldn't be set that way,
or both (assertion for both non-explicit and error if one or both are
explicit).


More information about the Gcc-bugs mailing list