This is the mail archive of the
mailing list for the glibc project.
Re: [PATCH] Mark sparc %fsr load and store inline asms as volatile.
- From: Roland McGrath <roland at hack dot frob dot com>
- To: David Miller <davem at davemloft dot net>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 11 May 2012 14:11:41 -0700 (PDT)
- Subject: Re: [PATCH] Mark sparc %fsr load and store inline asms as volatile.
- References: <firstname.lastname@example.org>
The very same issue was just fixed for some x86_64 (or i686?) math function
(forget which). I registered my distaste with the big hammer of volatile
when some way to express the true dependency would be better. GCC folks
said that there is no kludge that fakes the compiler out like I thought
there might be. For the x86 case my distaste was mitigated by the fact
that newer GCC has the function in question as a built-in so we can drop
the hack entirely for new-enough compilers. I wonder if sparc might be
acquiring fma* built-ins one of these days?