diff mbox series

Restore bootstrap on x86_64-pc-linux-gnu

Message ID 001b01d827f1$b0755230$115ff690$@nextmovesoftware.com
State New
Headers show
Series Restore bootstrap on x86_64-pc-linux-gnu | expand

Commit Message

Roger Sayle Feb. 22, 2022, 1:39 p.m. UTC
This patch resolves the bootstrap failure on x86_64-pc-linux-gnu.

Is this sufficiently "obvious" in stage4, or should I wait for the bootstrap

and regression testing to complete?

 

2022-02-22  Roger Sayle  <roger@nextmovesoftware.com>

 

gcc/ChangeLog

* config/i386/i386-expand.cc (ix86_expand_cmpxchg_loop): Restore

bootstrap.

 

Cheers,

Roger

--

Comments

Uros Bizjak Feb. 22, 2022, 5:51 p.m. UTC | #1
On Tue, Feb 22, 2022 at 2:40 PM Roger Sayle <roger@nextmovesoftware.com> wrote:
>
>
>
> This patch resolves the bootstrap failure on x86_64-pc-linux-gnu.
>
> Is this sufficiently "obvious" in stage4, or should I wait for the bootstrap
>
> and regression testing to complete?

Please just bootstrap the compiler.

>
>
> 2022-02-22  Roger Sayle  <roger@nextmovesoftware.com>
>
>
>
> gcc/ChangeLog
>
> * config/i386/i386-expand.cc (ix86_expand_cmpxchg_loop): Restore
>
> bootstrap.

OK.

Thanks,
Uros.

>
>
>
> Cheers,
>
> Roger
>
> --
>
>
>
diff mbox series

Patch

diff --git a/gcc/config/i386/i386-expand.cc b/gcc/config/i386/i386-expand.cc
index 7f7055b..faa0191 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 ();
     }