On Mon, Mar 5, 2012 at 8:12 PM, Andi Kleen <a...@firstfloor.org> wrote:
>> Removing -mrtm option would remove one point of control.
> If I use the intrinsics I can never remove it because it would just make the
> code not compile.
> If I don't use the intrinsics I never need it in the first place.

Aha, I see your point now.

IIUC, you are annoyed by:

+#ifndef __RTM__
+# error "RTM instruction set not enabled"
+#endif /* __RTM__ */

in the headers. Indeed, this prevents "#pragma GCC target" to be effective.

But OTOH, intrinsics are internally implemented using code sequences
that call various __builtin_* functions, so they require correct
target flags to be set when #included...

I doubt this can be fixed in any sensible way. Maybe by adding correct
#pragmas around header #include ?


Reply via email to