* [Bug target/100411] GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32
2021-05-04 7:57 [Bug bootstrap/100411] New: GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32 lh_mouse at 126 dot com
@ 2021-05-04 8:14 ` pinskia at gcc dot gnu.org
2021-05-04 8:20 ` ebotcazou at gcc dot gnu.org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-05-04 8:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100411
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.2
Keywords| |build, ice-on-valid-code
Component|bootstrap |target
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/100411] GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32
2021-05-04 7:57 [Bug bootstrap/100411] New: GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32 lh_mouse at 126 dot com
2021-05-04 8:14 ` [Bug target/100411] " pinskia at gcc dot gnu.org
@ 2021-05-04 8:20 ` ebotcazou at gcc dot gnu.org
2021-05-04 8:39 ` lh_mouse at 126 dot com
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-05-04 8:20 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100411
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ebotcazou at gcc dot gnu.org
Ever confirmed|0 |1
Last reconfirmed| |2021-05-04
Status|UNCONFIRMED |WAITING
--- Comment #1 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Can you post the configure line?
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/100411] GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32
2021-05-04 7:57 [Bug bootstrap/100411] New: GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32 lh_mouse at 126 dot com
2021-05-04 8:14 ` [Bug target/100411] " pinskia at gcc dot gnu.org
2021-05-04 8:20 ` ebotcazou at gcc dot gnu.org
@ 2021-05-04 8:39 ` lh_mouse at 126 dot com
2021-05-04 16:41 ` ebotcazou at gcc dot gnu.org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: lh_mouse at 126 dot com @ 2021-05-04 8:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100411
--- Comment #2 from Liu Hao <lh_mouse at 126 dot com> ---
(In reply to Eric Botcazou from comment #1)
> Can you post the configure line?
As you wish, but it is very long (I have no idea why they have been there):
```
$ ../gcc/configure --prefix=/mingw64 --with-local-prefix=/mingw64/local
--build=x86_64-w64-mingw32 --host=x86_64-w64-mingw32
--target=x86_64-w64-mingw32
--with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include
--libexecdir=/mingw64/lib --enable-bootstrap --with-arch=x86-64
--with-tune=nocona --enable-languages=c,lto,c++ --enable-shared --enable-static
--enable-threads=mcf --enable-graphite --enable-fully-dynamic-string
--enable-libstdcxx-time=yes --disable-libstdcxx-pch --disable-libstdcxx-debug
--enable-libstdcxx-filesystem-ts=yes --disable-isl-version-check --enable-lto
--enable-libgomp --disable-multilib --enable-checking=release --disable-rpath
--disable-win32-registry --enable-nls --disable-werror --disable-symvers
--with-libiconv --with-system-zlib --with-gmp=/mingw64 --with-mpfr=/mingw64
--with-mpc=/mingw64 --with-isl=/mingw64 --with-pkgversion=GCC with MCF thread
model, built by LH_Mouse. --with-bugurl=https://gcc-mcf.lhmouse.com/
--with-gnu-as --with-gnu-ld --with-boot-ldflags=-pipe
-Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-base-high
-Wl,--disable-dynamicbase,--default-image-base-low -static-libstdc++
-static-libgcc LDFLAGS_FOR_TARGET=-pipe
-Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-base-high
--enable-linker-plugin-flags=LDFLAGS=-static-libstdc++\ -static-libgcc\ -pipe\
-Wl,--dynamicbase,--high-entropy-va,--nxcompat,--default-image-base-high\
-Wl,--stack,12582912 --disable-tls --enable-plugin
```
The PKGBUILD script can be found at
<https://github.com/lhmouse/MINGW-packages-dev/blob/master/mingw-w64-gcc-git/PKGBUILD#L162>.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/100411] GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32
2021-05-04 7:57 [Bug bootstrap/100411] New: GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32 lh_mouse at 126 dot com
` (2 preceding siblings ...)
2021-05-04 8:39 ` lh_mouse at 126 dot com
@ 2021-05-04 16:41 ` ebotcazou at gcc dot gnu.org
2021-05-04 16:51 ` ebotcazou at gcc dot gnu.org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-05-04 16:41 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100411
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
--- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Thanks, I can reproduce, it comes from --with-tune=nocona so you might want to
remove it (it's long obsolete in any case).
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/100411] GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32
2021-05-04 7:57 [Bug bootstrap/100411] New: GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32 lh_mouse at 126 dot com
` (3 preceding siblings ...)
2021-05-04 16:41 ` ebotcazou at gcc dot gnu.org
@ 2021-05-04 16:51 ` ebotcazou at gcc dot gnu.org
2021-05-04 21:01 ` [Bug target/100411] [11 regression] bootstrap failure on 64-bit Windows with --with-tune=nocona ebotcazou at gcc dot gnu.org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-05-04 16:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100411
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |ebotcazou at gcc dot gnu.org
--- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Investigating.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/100411] [11 regression] bootstrap failure on 64-bit Windows with --with-tune=nocona
2021-05-04 7:57 [Bug bootstrap/100411] New: GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32 lh_mouse at 126 dot com
` (4 preceding siblings ...)
2021-05-04 16:51 ` ebotcazou at gcc dot gnu.org
@ 2021-05-04 21:01 ` ebotcazou at gcc dot gnu.org
2021-05-05 1:53 ` lh_mouse at 126 dot com
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-05-04 21:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100411
--- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
Created attachment 50752
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=50752&action=edit
Tentative fix
Please give it a try in your setup when you get a chance.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug target/100411] [11 regression] bootstrap failure on 64-bit Windows with --with-tune=nocona
2021-05-04 7:57 [Bug bootstrap/100411] New: GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32 lh_mouse at 126 dot com
` (5 preceding siblings ...)
2021-05-04 21:01 ` [Bug target/100411] [11 regression] bootstrap failure on 64-bit Windows with --with-tune=nocona ebotcazou at gcc dot gnu.org
@ 2021-05-05 1:53 ` lh_mouse at 126 dot com
2021-05-05 14:13 ` [Bug rtl-optimization/100411] " lh_mouse at 126 dot com
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: lh_mouse at 126 dot com @ 2021-05-05 1:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100411
--- Comment #6 from Liu Hao <lh_mouse at 126 dot com> ---
Thanks for the quick fix. It has resolved this issue on my setup.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug rtl-optimization/100411] [11 regression] bootstrap failure on 64-bit Windows with --with-tune=nocona
2021-05-04 7:57 [Bug bootstrap/100411] New: GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32 lh_mouse at 126 dot com
` (6 preceding siblings ...)
2021-05-05 1:53 ` lh_mouse at 126 dot com
@ 2021-05-05 14:13 ` lh_mouse at 126 dot com
2021-05-05 14:24 ` ebotcazou at gcc dot gnu.org
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: lh_mouse at 126 dot com @ 2021-05-05 14:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100411
--- Comment #7 from Liu Hao <lh_mouse at 126 dot com> ---
Does this affect other `-mtune=` values too? I am thinking about
`--with-tune=ivybridge`.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug rtl-optimization/100411] [11 regression] bootstrap failure on 64-bit Windows with --with-tune=nocona
2021-05-04 7:57 [Bug bootstrap/100411] New: GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32 lh_mouse at 126 dot com
` (7 preceding siblings ...)
2021-05-05 14:13 ` [Bug rtl-optimization/100411] " lh_mouse at 126 dot com
@ 2021-05-05 14:24 ` ebotcazou at gcc dot gnu.org
2021-05-05 14:54 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-05-05 14:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100411
--- Comment #8 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
> Does this affect other `-mtune=` values too? I am thinking about
> `--with-tune=ivybridge`.
It's accidental, so only testing can give the answer.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug rtl-optimization/100411] [11 regression] bootstrap failure on 64-bit Windows with --with-tune=nocona
2021-05-04 7:57 [Bug bootstrap/100411] New: GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32 lh_mouse at 126 dot com
` (8 preceding siblings ...)
2021-05-05 14:24 ` ebotcazou at gcc dot gnu.org
@ 2021-05-05 14:54 ` cvs-commit at gcc dot gnu.org
2021-05-05 14:55 ` cvs-commit at gcc dot gnu.org
2021-05-05 14:57 ` ebotcazou at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-05 14:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100411
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Eric Botcazou <ebotcazou@gcc.gnu.org>:
https://gcc.gnu.org/g:dfd2c92f3f5d204619bd218aa72b162997690796
commit r12-517-gdfd2c92f3f5d204619bd218aa72b162997690796
Author: Eric Botcazou <ebotcazou@adacore.com>
Date: Wed May 5 16:50:55 2021 +0200
Fix PR rtl-optimization/100411
This is the bootstrap failure of GCC 11 on MinGW64 configured with
--enable-
tune=nocona. The bottom line is that SEH does not support CFI for
epilogues
but the x86 back-end nevertheless attaches it to instructions, so we have
to
filter it out and this is done by detecting the end of the prologue by
means
of the NOTE_INSN_PROLOGUE_END note.
But the compiler manages to generate a second epilogue before this note in
the RTL stream and this fools the aforementioned logic. The root cause is
cross-jumping, which inserts a jump before the end of the prologue, in fact
just before the note; the rest (CFG cleanup, BB reordering, etc) is
downhill
from there.
gcc/
PR rtl-optimization/100411
* cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
and beginning of function markers.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug rtl-optimization/100411] [11 regression] bootstrap failure on 64-bit Windows with --with-tune=nocona
2021-05-04 7:57 [Bug bootstrap/100411] New: GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32 lh_mouse at 126 dot com
` (9 preceding siblings ...)
2021-05-05 14:54 ` cvs-commit at gcc dot gnu.org
@ 2021-05-05 14:55 ` cvs-commit at gcc dot gnu.org
2021-05-05 14:57 ` ebotcazou at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-05 14:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100411
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Eric Botcazou
<ebotcazou@gcc.gnu.org>:
https://gcc.gnu.org/g:dcb23f439f3cf5601fb8bf49889accd16f3b30a1
commit r11-8354-gdcb23f439f3cf5601fb8bf49889accd16f3b30a1
Author: Eric Botcazou <ebotcazou@adacore.com>
Date: Wed May 5 16:50:55 2021 +0200
Fix PR rtl-optimization/100411
This is the bootstrap failure of GCC 11 on MinGW64 configured with
--enable-
tune=nocona. The bottom line is that SEH does not support CFI for
epilogues
but the x86 back-end nevertheless attaches it to instructions, so we have
to
filter it out and this is done by detecting the end of the prologue by
means
of the NOTE_INSN_PROLOGUE_END note.
But the compiler manages to generate a second epilogue before this note in
the RTL stream and this fools the aforementioned logic. The root cause is
cross-jumping, which inserts a jump before the end of the prologue, in fact
just before the note; the rest (CFG cleanup, BB reordering, etc) is
downhill
from there.
gcc/
PR rtl-optimization/100411
* cfgcleanup.c (try_crossjump_to_edge): Also skip end of prologue
and beginning of function markers.
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug rtl-optimization/100411] [11 regression] bootstrap failure on 64-bit Windows with --with-tune=nocona
2021-05-04 7:57 [Bug bootstrap/100411] New: GCC 11 branch bootstrap ICE on x86_w64-w64-mingw32 lh_mouse at 126 dot com
` (10 preceding siblings ...)
2021-05-05 14:55 ` cvs-commit at gcc dot gnu.org
@ 2021-05-05 14:57 ` ebotcazou at gcc dot gnu.org
11 siblings, 0 replies; 13+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2021-05-05 14:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100411
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #11 from Eric Botcazou <ebotcazou at gcc dot gnu.org> ---
.
^ permalink raw reply [flat|nested] 13+ messages in thread