[PATCH] x86: Disable XCHG to MOV optimization

Jan Beulich jbeulich@suse.com
Mon Jul 13 15:03:20 GMT 2026


On 13.07.2026 14:08, H.J. Lu wrote:
> I am going to check this patch into master as well as 2.47 branch.
> I added optimize_for_unsafe, which is 0, and moved XCHG to MOV
> optimization under it.  We can add something like -Ounsafe later.

But this is wrong, the optimization itself isn't unsafe. Please can we
not rush things for master, and go the easy (revert) route for 2.47?

Jan


More information about the Binutils mailing list