public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-7350] Restore bootstrap on x86_64-pc-linux-gnu
@ 2022-02-22 18:18 Roger Sayle
  0 siblings, 0 replies; only message in thread
From: Roger Sayle @ 2022-02-22 18:18 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:9d1796d82d46dd3086f07953129dc5761feb707b

commit r12-7350-g9d1796d82d46dd3086f07953129dc5761feb707b
Author: Roger Sayle <roger@nextmovesoftware.com>
Date:   Tue Feb 22 18:17:24 2022 +0000

    Restore bootstrap on x86_64-pc-linux-gnu
    
    This patch resolves the bootstrap failure on x86_64-pc-linux-gnu.
    
    2022-02-22  Roger Sayle  <roger@nextmovesoftware.com>
    
    gcc/ChangeLog
            * config/i386/i386-expand.cc (ix86_expand_cmpxchg_loop): Restore
            bootstrap.

Diff:
---
 gcc/config/i386/i386-expand.cc | 19 +++++++++++--------
 1 file changed, 11 insertions(+), 8 deletions(-)

diff --git a/gcc/config/i386/i386-expand.cc b/gcc/config/i386/i386-expand.cc
index 7f7055bcb43..faa0191c6dd 100644
--- a/gcc/config/i386/i386-expand.cc
+++ b/gcc/config/i386/i386-expand.cc
@@ -23287,11 +23287,11 @@ void ix86_expand_cmpxchg_loop (rtx *ptarget_bool, rtx target_val,
 
   switch (mode)
     {
-    case TImode:
+    case E_TImode:
       gendw = gen_atomic_compare_and_swapti_doubleword;
       hmode = DImode;
       break;
-    case DImode:
+    case E_DImode:
       if (doubleword)
 	{
 	  gendw = gen_atomic_compare_and_swapdi_doubleword;
@@ -23300,12 +23300,15 @@ void ix86_expand_cmpxchg_loop (rtx *ptarget_bool, rtx target_val,
       else
 	gen = gen_atomic_compare_and_swapdi_1;
       break;
-    case SImode:
-      gen = gen_atomic_compare_and_swapsi_1; break;
-    case HImode:
-      gen = gen_atomic_compare_and_swaphi_1; break;
-    case QImode:
-      gen = gen_atomic_compare_and_swapqi_1; break;
+    case E_SImode:
+      gen = gen_atomic_compare_and_swapsi_1;
+      break;
+    case E_HImode:
+      gen = gen_atomic_compare_and_swaphi_1;
+      break;
+    case E_QImode:
+      gen = gen_atomic_compare_and_swapqi_1;
+      break;
     default:
       gcc_unreachable ();
     }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-22 18:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-22 18:18 [gcc r12-7350] Restore bootstrap on x86_64-pc-linux-gnu Roger Sayle

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).