From 9ce542ba4a138f762697778f339da66beeb13991 Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Mon, 30 May 2016 21:06:38 +0200 Subject: [PATCH] sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)". * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)". From-SVN: r236895 --- gcc/ChangeLog | 6 +++++- gcc/config/i386/sync.md | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c6a32261af8..537d79c11c8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2016-05-30 Uros Bizjak + + * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)". + 2016-05-30 Andi Kleen * auto-profile.c (read_profile): Replace asserts with errors @@ -5,7 +9,7 @@ * gcov-io.c (gcov_read_words): Dito. 2016-05-30 Jan Hubicka - + * tree-cfg.c (print_loop): Print likely upper bounds. 2016-05-30 Jan Hubicka diff --git a/gcc/config/i386/sync.md b/gcc/config/i386/sync.md index 9acf5ca8a87..b065e2365ff 100644 --- a/gcc/config/i386/sync.md +++ b/gcc/config/i386/sync.md @@ -98,7 +98,7 @@ (unspec:BLK [(match_dup 0)] UNSPEC_MFENCE)) (clobber (reg:CC FLAGS_REG))] "!(TARGET_64BIT || TARGET_SSE2)" - "lock{%;} or{l}\t{$0, (%%esp)|DWORD PTR [esp], 0}" + "lock{%;} or{l}\t{$0, -4(%%esp)|DWORD PTR [esp-4], 0}" [(set_attr "memory" "unknown")]) (define_expand "mem_thread_fence" -- 2.30.2