Follow-up Comment #4, bug #33392 (project gnustep): IIRC, if GCC is compiling for a general x86 machine, it will generate code that can run on any i386 processor even produced; hence it won't use CPU operations available only in newer CPUs. So atomic builtins will become calls to custom functions (and could be even slower than a pthread lock).
To use atomic builtins, you need to tell GCC that the CPU is more than just a generic ix86 by using -march=pentium or something like that. I'm not sure of the exact -march= or -mtune= option that we want to use; we need to look up the options and study them. The extreme option would be to use -march=native, which would provide fast code, but most likely not portable. Thanks _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?33392> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-gnustep mailing list Bug-gnustep@gnu.org https://lists.gnu.org/mailman/listinfo/bug-gnustep