This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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 ?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]