Re: -mfence-as-lock-add option in binutils 2.27

2017-10-03 Thread Ian Lance Taylor
Parul Chahar writes: > I found that a new option "-mfence-as-lock-add" is added in binutils 2.27. > It generate lock instruction when "-mfence-as-lock-add=yes". Otherwise, > mfence, lfence, sfence is generated. > > Please let me know why this option is required. Why lock instruction is > needed.

-mfence-as-lock-add option in binutils 2.27

2017-10-03 Thread Parul Chahar
Hi, I found that a new option "-mfence-as-lock-add" is added in binutils 2.27. It generate lock instruction when "-mfence-as-lock-add=yes". Otherwise, mfence, lfence, sfence is generated. Please let me know why this option is required. Why lock instruction is needed. Thanks, Parul ___