sparc: Add NOP in stack_protect_set32 if sparc_fix_b2bst enabled
authorDaniel Cederman <cederman@gaisler.com>
Thu, 1 Oct 2020 07:11:38 +0000 (09:11 +0200)
committerDaniel Hellstrom <daniel@gaisler.com>
Thu, 16 Sep 2021 11:05:51 +0000 (13:05 +0200)
commita053dab90e69c2a8289c95caec236f239a2a764b
tree91541a393a4b7530721903fbd40afe0cfa2e981a
parentd4aa16699d4bcf9d335a206d3d8f6c1a80142aab
sparc: Add NOP in stack_protect_set32 if sparc_fix_b2bst enabled

This is needed to prevent the Store -> (Non-store or load) -> Store
sequence.

gcc/ChangeLog:

* config/sparc/sparc.md (stack_protect_set32): Add NOP to prevent
sensitive sequence for B2BST errata workaround.
gcc/config/sparc/sparc.md