public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/100278] New: IBM Z: Segmentation fault when building valgrind with -march=z14
@ 2021-04-27 1:32 iii at linux dot ibm.com
2021-04-27 7:13 ` [Bug middle-end/100278] " rguenth at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: iii at linux dot ibm.com @ 2021-04-27 1:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100278
Bug ID: 100278
Summary: IBM Z: Segmentation fault when building valgrind with
-march=z14
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: iii at linux dot ibm.com
Target Milestone: ---
Minimized test:
$ cat test.c
a() {
register b asm("");
if (b)
b = 1;
for (; b;)
;
}
$ $HOME/gcc/build/dist/bin/gcc -m64 -O2 -g -finline-functions
-fno-stack-protector -fno-builtin -fomit-frame-pointer -fstrict-aliasing
-march=z14 -c test.c
test.c:1:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
1 | a() {
| ^
test.c: In function ‘a’:
test.c:2:12: warning: type defaults to ‘int’ in declaration of ‘b’
[-Wimplicit-int]
2 | register b asm("");
| ^
during GIMPLE pass: pre
test.c:1:1: internal compiler error: Segmentation fault
1 | a() {
| ^
0x1a33499 crash_signal
../../gcc/toplev.c:327
0x11e9bf2 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
../../gcc/tree.h:3466
0x1c57673 compute_avail
../../gcc/tree-ssa-pre.c:4163
0x1c580d9 execute
../../gcc/tree-ssa-pre.c:4370
Bisect points to:
commit 577d05fc914338cd7ddc254f3bee4532331f5c13
Author: Richard Biener <rguenther@suse.de>
Date: Tue Mar 9 09:29:29 2021 +0100
tree-optimization/99473 - more cselim
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/100278] IBM Z: Segmentation fault when building valgrind with -march=z14
2021-04-27 1:32 [Bug middle-end/100278] New: IBM Z: Segmentation fault when building valgrind with -march=z14 iii at linux dot ibm.com
@ 2021-04-27 7:13 ` rguenth at gcc dot gnu.org
2021-04-27 8:30 ` cvs-commit at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-27 7:13 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100278
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-04-27
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
Target| |s390x
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
I will have a look.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/100278] IBM Z: Segmentation fault when building valgrind with -march=z14
2021-04-27 1:32 [Bug middle-end/100278] New: IBM Z: Segmentation fault when building valgrind with -march=z14 iii at linux dot ibm.com
2021-04-27 7:13 ` [Bug middle-end/100278] " rguenth at gcc dot gnu.org
@ 2021-04-27 8:30 ` cvs-commit at gcc dot gnu.org
2021-04-27 8:32 ` rguenth at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-27 8:30 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100278
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:acfe5290406cc70485df8899d14982278a9371f8
commit r12-141-gacfe5290406cc70485df8899d14982278a9371f8
Author: Richard Biener <rguenther@suse.de>
Date: Tue Apr 27 09:41:38 2021 +0200
tree-optimization/100278 - handle mismatched code in TBAA adjust of PRE
PRE has code to adjust TBAA behavior for refs that expects the base
operation code to match. The testcase shows a case where we have
a VAR_DECL vs. a MEM_REF so add code to give up in such cases.
2021-04-27 Richard Biener <rguenther@suse.de>
PR tree-optimization/100278
* tree-ssa-pre.c (compute_avail): Give up when we cannot
adjust TBAA beacuse of mismatching bases.
* gcc.dg/tree-ssa/pr100278.c: New testcase.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/100278] IBM Z: Segmentation fault when building valgrind with -march=z14
2021-04-27 1:32 [Bug middle-end/100278] New: IBM Z: Segmentation fault when building valgrind with -march=z14 iii at linux dot ibm.com
2021-04-27 7:13 ` [Bug middle-end/100278] " rguenth at gcc dot gnu.org
2021-04-27 8:30 ` cvs-commit at gcc dot gnu.org
@ 2021-04-27 8:32 ` rguenth at gcc dot gnu.org
2021-05-05 9:01 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-04-27 8:32 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100278
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |12.0
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk sofar, the issue is latent so I'm probably going to backport.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/100278] IBM Z: Segmentation fault when building valgrind with -march=z14
2021-04-27 1:32 [Bug middle-end/100278] New: IBM Z: Segmentation fault when building valgrind with -march=z14 iii at linux dot ibm.com
` (2 preceding siblings ...)
2021-04-27 8:32 ` rguenth at gcc dot gnu.org
@ 2021-05-05 9:01 ` cvs-commit at gcc dot gnu.org
2021-05-05 9:42 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-05 9:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100278
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-11 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:3ac56ea477ec72340ebbce44af93c7712b579109
commit r11-8352-g3ac56ea477ec72340ebbce44af93c7712b579109
Author: Richard Biener <rguenther@suse.de>
Date: Tue Apr 27 09:41:38 2021 +0200
tree-optimization/100278 - handle mismatched code in TBAA adjust of PRE
PRE has code to adjust TBAA behavior for refs that expects the base
operation code to match. The testcase shows a case where we have
a VAR_DECL vs. a MEM_REF so add code to give up in such cases.
2021-04-27 Richard Biener <rguenther@suse.de>
PR tree-optimization/100278
* tree-ssa-pre.c (compute_avail): Give up when we cannot
adjust TBAA beacuse of mismatching bases.
* gcc.dg/tree-ssa/pr100278.c: New testcase.
(cherry picked from commit acfe5290406cc70485df8899d14982278a9371f8)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/100278] IBM Z: Segmentation fault when building valgrind with -march=z14
2021-04-27 1:32 [Bug middle-end/100278] New: IBM Z: Segmentation fault when building valgrind with -march=z14 iii at linux dot ibm.com
` (3 preceding siblings ...)
2021-05-05 9:01 ` cvs-commit at gcc dot gnu.org
@ 2021-05-05 9:42 ` cvs-commit at gcc dot gnu.org
2021-06-01 10:56 ` iii at linux dot ibm.com
2021-09-17 6:42 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-05 9:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100278
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:bd475d14d880f17f2491b9488ba776479934a47a
commit r10-9799-gbd475d14d880f17f2491b9488ba776479934a47a
Author: Richard Biener <rguenther@suse.de>
Date: Tue Apr 27 09:41:38 2021 +0200
tree-optimization/100278 - handle mismatched code in TBAA adjust of PRE
PRE has code to adjust TBAA behavior for refs that expects the base
operation code to match. The testcase shows a case where we have
a VAR_DECL vs. a MEM_REF so add code to give up in such cases.
2021-04-27 Richard Biener <rguenther@suse.de>
PR tree-optimization/100278
* tree-ssa-pre.c (compute_avail): Give up when we cannot
adjust TBAA beacuse of mismatching bases.
* gcc.dg/tree-ssa/pr100278.c: New testcase.
(cherry picked from commit acfe5290406cc70485df8899d14982278a9371f8)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/100278] IBM Z: Segmentation fault when building valgrind with -march=z14
2021-04-27 1:32 [Bug middle-end/100278] New: IBM Z: Segmentation fault when building valgrind with -march=z14 iii at linux dot ibm.com
` (4 preceding siblings ...)
2021-05-05 9:42 ` cvs-commit at gcc dot gnu.org
@ 2021-06-01 10:56 ` iii at linux dot ibm.com
2021-09-17 6:42 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: iii at linux dot ibm.com @ 2021-06-01 10:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100278
Ilya Leoshkevich <iii at linux dot ibm.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #6 from Ilya Leoshkevich <iii at linux dot ibm.com> ---
Fixed, thanks!
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/100278] IBM Z: Segmentation fault when building valgrind with -march=z14
2021-04-27 1:32 [Bug middle-end/100278] New: IBM Z: Segmentation fault when building valgrind with -march=z14 iii at linux dot ibm.com
` (5 preceding siblings ...)
2021-06-01 10:56 ` iii at linux dot ibm.com
@ 2021-09-17 6:42 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-17 6:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100278
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |10.4
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-09-17 6:42 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-27 1:32 [Bug middle-end/100278] New: IBM Z: Segmentation fault when building valgrind with -march=z14 iii at linux dot ibm.com
2021-04-27 7:13 ` [Bug middle-end/100278] " rguenth at gcc dot gnu.org
2021-04-27 8:30 ` cvs-commit at gcc dot gnu.org
2021-04-27 8:32 ` rguenth at gcc dot gnu.org
2021-05-05 9:01 ` cvs-commit at gcc dot gnu.org
2021-05-05 9:42 ` cvs-commit at gcc dot gnu.org
2021-06-01 10:56 ` iii at linux dot ibm.com
2021-09-17 6:42 ` pinskia at gcc dot gnu.org
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).