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

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).