* [Bug middle-end/100787] [12 Regression] Bootstrap failure caused by r12-1077
2021-05-27 2:32 [Bug bootstrap/100787] New: [12 Regression] Bootstrap failure caused by r12-1077 hjl.tools at gmail dot com
@ 2021-05-27 3:25 ` pinskia at gcc dot gnu.org
2021-05-27 6:55 ` [Bug tree-optimization/100787] " aldyh at gcc dot gnu.org
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-05-27 3:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100787
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|bootstrap |middle-end
Keywords| |build
Severity|normal |blocker
Target Milestone|--- |12.0
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Most likely related to PR 100774 or PR 100781.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/100787] [12 Regression] Bootstrap failure caused by r12-1077
2021-05-27 2:32 [Bug bootstrap/100787] New: [12 Regression] Bootstrap failure caused by r12-1077 hjl.tools at gmail dot com
2021-05-27 3:25 ` [Bug middle-end/100787] " pinskia at gcc dot gnu.org
@ 2021-05-27 6:55 ` aldyh at gcc dot gnu.org
2021-05-27 7:21 ` jakub at gcc dot gnu.org
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-05-27 6:55 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100787
Aldy Hernandez <aldyh at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aldyh at gcc dot gnu.org
--- Comment #2 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
I'm doing the following on an x86-64 Linux box, as I don't have access to an
i686 system:
~/src/clean/configure --enable-clocale=gnu --with-system-zlib
--with-demangler-in-ld --with-fpmath=sse --enable-languages=c,c++ --enable-cet
i686-linux --enable-bootstrap --with-fpmath=sse --disable-libcc1
--disable-libcilkrts --disable-libsanitizer
make -jN
/usr/bin/ld: /home/aldyh/bld/t/./gcc/liblto_plugin.so: error loading plugin:
/home/aldyh/bld/t/./gcc/liblto_plugin.so: wrong ELF class: ELFCLASS32
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:995: libgcc_s.so] Error 1
make[3]: Leaving directory '/opt/notnfs/aldyh/bld/t/i686-linux/libgcc'
make[2]: *** [Makefile:19008: all-stage2-target-libgcc] Error 2
make[2]: Leaving directory '/opt/notnfs/aldyh/bld/t'
make[1]: *** [Makefile:23280: stage2-bubble] Error 2
Is there a way to reproduce this on an x86-64 system?
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/100787] [12 Regression] Bootstrap failure caused by r12-1077
2021-05-27 2:32 [Bug bootstrap/100787] New: [12 Regression] Bootstrap failure caused by r12-1077 hjl.tools at gmail dot com
2021-05-27 3:25 ` [Bug middle-end/100787] " pinskia at gcc dot gnu.org
2021-05-27 6:55 ` [Bug tree-optimization/100787] " aldyh at gcc dot gnu.org
@ 2021-05-27 7:21 ` jakub at gcc dot gnu.org
2021-05-27 11:38 ` aldyh at gcc dot gnu.org
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-27 7:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100787
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
I'm using
mkdir ~/hbin
cat > ~/hbin/as <<\END
#!/bin/sh
exec /usr/bin/as --32 "$@"
END
cat > ~/hbin/g++ <<\END
#!/bin/sh
exec /usr/bin/g++ -m32 "$@"
END
cat > ~/hbin/gcc <<\END
#!/bin/sh
exec /usr/bin/gcc -m32 "$@"
END
cat > ~/hbin/ld <<\END
#!/bin/sh
case "$*" in
--version) cat <<\EOF
GNU ld version 2.20.52.0.1-10.fc17 20100131
Copyright 2012 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
EOF
exit 0;;
esac
exec /usr/bin/ld -m elf_i386 -L /usr/lib/ "$@"
END
chmod 755 ~/hbin/{as,g++,gcc,ld}
and then use
PATH=~/hbin:$PATH i386 .../configure ...
PATH=~/hbin:$PATH i386 make ...
etc.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/100787] [12 Regression] Bootstrap failure caused by r12-1077
2021-05-27 2:32 [Bug bootstrap/100787] New: [12 Regression] Bootstrap failure caused by r12-1077 hjl.tools at gmail dot com
` (2 preceding siblings ...)
2021-05-27 7:21 ` jakub at gcc dot gnu.org
@ 2021-05-27 11:38 ` aldyh at gcc dot gnu.org
2021-05-27 11:52 ` hjl.tools at gmail dot com
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-05-27 11:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100787
Aldy Hernandez <aldyh at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2021-05-27
Ever confirmed|0 |1
--- Comment #4 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
(In reply to Jakub Jelinek from comment #3)
> I'm using
> mkdir ~/hbin
> cat > ~/hbin/as <<\END
> #!/bin/sh
> exec /usr/bin/as --32 "$@"
> END
> cat > ~/hbin/g++ <<\END
> #!/bin/sh
> exec /usr/bin/g++ -m32 "$@"
> END
> cat > ~/hbin/gcc <<\END
> #!/bin/sh
> exec /usr/bin/gcc -m32 "$@"
> END
> cat > ~/hbin/ld <<\END
> #!/bin/sh
> case "$*" in
> --version) cat <<\EOF
> GNU ld version 2.20.52.0.1-10.fc17 20100131
> Copyright 2012 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License version 3 or (at your option) a later version.
> This program has absolutely no warranty.
> EOF
> exit 0;;
> esac
> exec /usr/bin/ld -m elf_i386 -L /usr/lib/ "$@"
> END
> chmod 755 ~/hbin/{as,g++,gcc,ld}
>
> and then use
> PATH=~/hbin:$PATH i386 .../configure ...
> PATH=~/hbin:$PATH i386 make ...
> etc.
That is DIS-GUST-ING!
...and also works, thanks :).
Confirmed.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/100787] [12 Regression] Bootstrap failure caused by r12-1077
2021-05-27 2:32 [Bug bootstrap/100787] New: [12 Regression] Bootstrap failure caused by r12-1077 hjl.tools at gmail dot com
` (3 preceding siblings ...)
2021-05-27 11:38 ` aldyh at gcc dot gnu.org
@ 2021-05-27 11:52 ` hjl.tools at gmail dot com
2021-05-28 10:35 ` rguenth at gcc dot gnu.org
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: hjl.tools at gmail dot com @ 2021-05-27 11:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100787
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
I have
[hjl@gnu-skx-1 gcc-32bit]$ ls /usr/local32/bin
addr2line as dwp gprof ld.bfd nm objdump readelf strings
ar c++filt elfedit ld ld.gold objcopy ranlib size strip
[hjl@gnu-skx-1 gcc-32bit]$
and
PATH:=/usr/local32/bin:$(PATH)
in Makefile. I can bootstrap i686-linux gcc with
$ CC="cc -m32 -fno-lto" CXX="g++ -m32 -fno-lto"
RUNTESTFLAGS="--target_board='unix'"
/export/gnu/import/git/sources/gcc/configure --enable-cet
--with-demangler-in-ld i686-linux --prefix=/usr/gcc-11.0.0-32bit
--with-local-prefix=/usr/local --enable-gnu-indirect-function
--enable-clocale=gnu --with-system-zlib --with-target-system-zlib
--with-fpmath=sse
on Linux/x86-64.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/100787] [12 Regression] Bootstrap failure caused by r12-1077
2021-05-27 2:32 [Bug bootstrap/100787] New: [12 Regression] Bootstrap failure caused by r12-1077 hjl.tools at gmail dot com
` (4 preceding siblings ...)
2021-05-27 11:52 ` hjl.tools at gmail dot com
@ 2021-05-28 10:35 ` rguenth at gcc dot gnu.org
2021-05-28 17:49 ` ro at gcc dot gnu.org
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-28 10:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100787
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/100787] [12 Regression] Bootstrap failure caused by r12-1077
2021-05-27 2:32 [Bug bootstrap/100787] New: [12 Regression] Bootstrap failure caused by r12-1077 hjl.tools at gmail dot com
` (5 preceding siblings ...)
2021-05-28 10:35 ` rguenth at gcc dot gnu.org
@ 2021-05-28 17:49 ` ro at gcc dot gnu.org
2021-05-28 18:02 ` jakub at gcc dot gnu.org
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: ro at gcc dot gnu.org @ 2021-05-28 17:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100787
Rainer Orth <ro at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target|i686 |i686, sparc
CC| |ro at gcc dot gnu.org
--- Comment #6 from Rainer Orth <ro at gcc dot gnu.org> ---
It also affects 32-bit sparc (sparc-sun-solaris2.11), maybe other 32-bit
targets, too? Unless a quick fix is coming forward, I suspect it would be
better
to revert the patch instead of keeping bootstrap broken for days.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/100787] [12 Regression] Bootstrap failure caused by r12-1077
2021-05-27 2:32 [Bug bootstrap/100787] New: [12 Regression] Bootstrap failure caused by r12-1077 hjl.tools at gmail dot com
` (6 preceding siblings ...)
2021-05-28 17:49 ` ro at gcc dot gnu.org
@ 2021-05-28 18:02 ` jakub at gcc dot gnu.org
2021-05-28 18:02 ` aldyh at redhat dot com
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-05-28 18:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100787
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Perhaps if EVRP is folding debug stmts it could first fold non-debug stmts (and
remember if there were any debug stmts) and only fold debug stmts afterwards,
either just by using caches and not adding anything to them (if they survive to
later passes), or just to make sure that the debug stmts don't affect non-debug
folding.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/100787] [12 Regression] Bootstrap failure caused by r12-1077
2021-05-27 2:32 [Bug bootstrap/100787] New: [12 Regression] Bootstrap failure caused by r12-1077 hjl.tools at gmail dot com
` (7 preceding siblings ...)
2021-05-28 18:02 ` jakub at gcc dot gnu.org
@ 2021-05-28 18:02 ` aldyh at redhat dot com
2021-05-28 20:51 ` aldyh at gcc dot gnu.org
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: aldyh at redhat dot com @ 2021-05-28 18:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100787
--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Perhaps if EVRP is folding debug stmts it could first fold non-debug stmts (and
remember if there were any debug stmts) and only fold debug stmts afterwards,
either just by using caches and not adding anything to them (if they survive to
later passes), or just to make sure that the debug stmts don't affect non-debug
folding.
--- Comment #8 from Aldy Hernandez <aldyh at redhat dot com> ---
I'll work on it this weekend. If there's no patch by Monday morning, we can
revert the patch while I find a solution.
On Fri, May 28, 2021, 19:49 ro at gcc dot gnu.org <gcc-bugzilla@gcc.gnu.org>
wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100787
>
> Rainer Orth <ro at gcc dot gnu.org> changed:
>
> What |Removed |Added
>
> ----------------------------------------------------------------------------
> Target|i686 |i686, sparc
> CC| |ro at gcc dot gnu.org
>
> --- Comment #6 from Rainer Orth <ro at gcc dot gnu.org> ---
> It also affects 32-bit sparc (sparc-sun-solaris2.11), maybe other 32-bit
> targets, too? Unless a quick fix is coming forward, I suspect it would be
> better
> to revert the patch instead of keeping bootstrap broken for days.
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
> You are on the CC list for the bug.
>
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/100787] [12 Regression] Bootstrap failure caused by r12-1077
2021-05-27 2:32 [Bug bootstrap/100787] New: [12 Regression] Bootstrap failure caused by r12-1077 hjl.tools at gmail dot com
` (8 preceding siblings ...)
2021-05-28 18:02 ` aldyh at redhat dot com
@ 2021-05-28 20:51 ` aldyh at gcc dot gnu.org
2021-05-29 5:45 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-05-28 20:51 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100787
--- Comment #9 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
This temporary fix resolves the bootstrap comparison on i686. Does it also fix
it on sparc-32?
diff --git a/gcc/gimple-ssa-evrp.c b/gcc/gimple-ssa-evrp.c
index 118d10365a0..b40649b6a10 100644
--- a/gcc/gimple-ssa-evrp.c
+++ b/gcc/gimple-ssa-evrp.c
@@ -127,7 +127,7 @@ public:
if (dump_file && (dump_flags & TDF_DETAILS))
m_ranger->dump (dump_file);
- m_ranger->export_global_ranges ();
+ //m_ranger->export_global_ranges ();
disable_ranger (cfun);
}
@@ -193,7 +193,7 @@ public:
if (dump_file && (dump_flags & TDF_DETAILS))
m_ranger->dump (dump_file);
- m_ranger->export_global_ranges ();
+ //m_ranger->export_global_ranges ();
disable_ranger (cfun);
}
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/100787] [12 Regression] Bootstrap failure caused by r12-1077
2021-05-27 2:32 [Bug bootstrap/100787] New: [12 Regression] Bootstrap failure caused by r12-1077 hjl.tools at gmail dot com
` (9 preceding siblings ...)
2021-05-28 20:51 ` aldyh at gcc dot gnu.org
@ 2021-05-29 5:45 ` cvs-commit at gcc dot gnu.org
2021-05-29 5:50 ` aldyh at gcc dot gnu.org
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-29 5:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100787
--- Comment #10 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Aldy Hernandez <aldyh@gcc.gnu.org>:
https://gcc.gnu.org/g:2364b584552208ce715fa4fd44c510b7e5210d1e
commit r12-1118-g2364b584552208ce715fa4fd44c510b7e5210d1e
Author: Aldy Hernandez <aldyh@redhat.com>
Date: Fri May 28 22:17:51 2021 +0200
Fix i686 bootstrap by temporarily disabling exporting of global ranges.
The patch converting evrp to the get_range_query(fun) API broke i686
bootstrap (commit 57bf37515). The problem seems to be in a subsequent
pass that has more up-to-date global ranges. I won't be able to look at
this until next week, so I am reverting the problematic bit of the
patch-- the exporting of global ranges once evrp finishes. The use of
the new API remains.
Reverting the behavior shouldn't be a problem as we never used to export
global ranges from ranger. This was new behavior in the patchset.
Tested on x86-64 Linux with a bootstrap and regtest, and on x86-32 with
only a bootstrap and the configure flags from the PR:
--enable-clocale=gnu --with-system-zlib --with-demangler-in-ld
--with-fpmath=sse --enable-languages=c,c++ --enable-cet i686-linux
--enable-bootstrap --with-fpmath=sse --disable-libcc1 --disable-libcilkrts
--disable-libsanitizer
gcc/ChangeLog:
PR tree-optimization/100787
* gimple-ssa-evrp.c: Disable exporting of global ranges.
gcc/testsuite/ChangeLog:
* gcc.dg/Wstringop-overflow-55.c:
* gcc.dg/pr80776-1.c:
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/100787] [12 Regression] Bootstrap failure caused by r12-1077
2021-05-27 2:32 [Bug bootstrap/100787] New: [12 Regression] Bootstrap failure caused by r12-1077 hjl.tools at gmail dot com
` (10 preceding siblings ...)
2021-05-29 5:45 ` cvs-commit at gcc dot gnu.org
@ 2021-05-29 5:50 ` aldyh at gcc dot gnu.org
2021-05-29 21:39 ` ro at CeBiTec dot Uni-Bielefeld.DE
2021-06-01 15:00 ` aldyh at gcc dot gnu.org
13 siblings, 0 replies; 15+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-05-29 5:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100787
--- Comment #11 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Note, this is still broken so I am leaving the PR open. I will address this
next week.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/100787] [12 Regression] Bootstrap failure caused by r12-1077
2021-05-27 2:32 [Bug bootstrap/100787] New: [12 Regression] Bootstrap failure caused by r12-1077 hjl.tools at gmail dot com
` (11 preceding siblings ...)
2021-05-29 5:50 ` aldyh at gcc dot gnu.org
@ 2021-05-29 21:39 ` ro at CeBiTec dot Uni-Bielefeld.DE
2021-06-01 15:00 ` aldyh at gcc dot gnu.org
13 siblings, 0 replies; 15+ messages in thread
From: ro at CeBiTec dot Uni-Bielefeld.DE @ 2021-05-29 21:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100787
--- Comment #12 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> ---
> --- Comment #11 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
> Note, this is still broken so I am leaving the PR open. I will address this
> next week.
FWIW, I can bootstrap both i386-pc-solaris2.11 and sparc-sun-solaris2.11
again with you temporary patch. Thanks.
^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug tree-optimization/100787] [12 Regression] Bootstrap failure caused by r12-1077
2021-05-27 2:32 [Bug bootstrap/100787] New: [12 Regression] Bootstrap failure caused by r12-1077 hjl.tools at gmail dot com
` (12 preceding siblings ...)
2021-05-29 21:39 ` ro at CeBiTec dot Uni-Bielefeld.DE
@ 2021-06-01 15:00 ` aldyh at gcc dot gnu.org
13 siblings, 0 replies; 15+ messages in thread
From: aldyh at gcc dot gnu.org @ 2021-06-01 15:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100787
Aldy Hernandez <aldyh at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #13 from Aldy Hernandez <aldyh at gcc dot gnu.org> ---
Fixed in trunk by:
https://gcc.gnu.org/pipermail/gcc-patches/2021-June/571597.html
^ permalink raw reply [flat|nested] 15+ messages in thread