* [PATCH] Restore bootstrap on x86_64-pc-linux-gnu
@ 2022-02-22 13:39 Roger Sayle
2022-02-22 17:51 ` Uros Bizjak
0 siblings, 1 reply; 2+ messages in thread
From: Roger Sayle @ 2022-02-22 13:39 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 365 bytes --]
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
--
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 1250 bytes --]
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 ();
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] Restore bootstrap on x86_64-pc-linux-gnu
2022-02-22 13:39 [PATCH] Restore bootstrap on x86_64-pc-linux-gnu Roger Sayle
@ 2022-02-22 17:51 ` Uros Bizjak
0 siblings, 0 replies; 2+ messages in thread
From: Uros Bizjak @ 2022-02-22 17:51 UTC (permalink / raw)
To: Roger Sayle; +Cc: gcc-patches
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
>
> --
>
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-02-22 17:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-22 13:39 [PATCH] Restore bootstrap on x86_64-pc-linux-gnu Roger Sayle
2022-02-22 17:51 ` Uros Bizjak
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).