This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
About machine description for atomic_exchange
- From: William Tambe <tambewilliam at gmail dot com>
- To: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Mon, 9 Sep 2019 15:40:58 -0500
- Subject: About machine description for atomic_exchange
I use documentation for atomic_exchange from:
https://gcc.gnu.org/onlinedocs/gccint/Standard-Names.html#Standard-Names
When defining machine description for atomic_exchange, I find that GCC
mark operands[1] as volatile such that (MEM_VOLATILE_P (operands[1]))
returns TRUE; even when the memory operand is not declared using the C
keyword "volatile".
Is there a way to have atomic_exchange not marking operands[1] as
volatile unless the memory operand was declared volatile ?