public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* About machine description for atomic_exchange
@ 2019-09-09 20:41 William Tambe
  2019-09-10  9:18 ` Oleg Endo
  0 siblings, 1 reply; 4+ messages in thread
From: William Tambe @ 2019-09-09 20:41 UTC (permalink / raw)
  To: gcc-help

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 ?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-13  8:15 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-09 20:41 About machine description for atomic_exchange William Tambe
2019-09-10  9:18 ` Oleg Endo
2019-09-12 15:04   ` William Tambe
2019-09-13  8:15     ` Andrew Haley

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).