public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/111601] [14 Regression] profilebootstrap fails in stagestrain in libcody on x86_64-linux-gnu and powerpc64le-linux-gnu Date: Mon, 27 Nov 2023 19:24:09 +0000 [thread overview] Message-ID: <bug-111601-4-nGvoQj6ooz@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-111601-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111601 --- Comment #22 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Full executable testcase: struct tree_base { int code:16; }; struct saved_scope { void *pad[14]; int x_processing_template_decl; }; struct saved_scope *scope_chain; struct z_candidate { tree_base *fn; void *pad[11]; z_candidate *next; int viable; int flags; }; __attribute__((noipa)) struct z_candidate * splice_viable (struct z_candidate *cands, bool strict_p, bool *any_viable_p) { struct z_candidate *viable; struct z_candidate **last_viable; struct z_candidate **cand; bool found_strictly_viable = false; if (scope_chain->x_processing_template_decl) strict_p = true; viable = (z_candidate *) 0; last_viable = &viable; *any_viable_p = false; cand = &cands; while (*cand) { struct z_candidate *c = *cand; if (!strict_p && (c->viable == 1 || ((int) (c->fn)->code) == 273)) { strict_p = true; if (viable && !found_strictly_viable) { *any_viable_p = false; *last_viable = cands; cands = viable; viable = (z_candidate *) 0; last_viable = &viable; } } if (strict_p ? c->viable == 1 : c->viable) { *last_viable = c; *cand = c->next; c->next = (z_candidate *) 0; last_viable = &c->next; *any_viable_p = true; if (c->viable == 1) found_strictly_viable = true; } else cand = &c->next; } return viable ? viable : cands; } int main () { saved_scope s{}; scope_chain = &s; z_candidate z[4] = {}; z[0].next = &z[1]; z[1].viable = 1; z[1].next = &z[2]; z[2].viable = 1; z[2].next = &z[3]; bool b; z_candidate *c = splice_viable (&z[0], true, &b); if (c != &z[1] || z[1].next != &z[2] || z[2].next) __builtin_abort (); return 0; } ../prev-gcc/xg++ -B ../prev-gcc/ -O2 -fprofile-generate -fno-exceptions -fno-rtti -o ~/pr111601.{s,ii} -S; g++ -o ~/pr111601{,.s} ../prev-gcc/libgcov.a; ~/pr111601; echo $?; ../prev-gcc/xg++ -B ../prev-gcc/ -O2 -fprofile-generate -fno-exceptions -fno-rtti -o ~/pr111601.{s,ii} -S -fno-fold-mem-offsets; g++ -o ~/pr111601{,.s} ../prev-gcc/libgcov.a; ~/pr111601; echo $? Aborted 134 0
next prev parent reply other threads:[~2023-11-27 19:24 UTC|newest] Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-09-26 15:27 [Bug bootstrap/111601] New: [14 Regression] bootstrap " doko at gcc dot gnu.org 2023-09-26 17:15 ` [Bug bootstrap/111601] " pinskia at gcc dot gnu.org 2023-10-17 2:11 ` bergner at gcc dot gnu.org 2023-10-18 13:31 ` doko at gcc dot gnu.org 2023-10-18 19:48 ` bergner at gcc dot gnu.org 2023-10-18 20:41 ` bergner at gcc dot gnu.org 2023-10-18 20:53 ` pinskia at gcc dot gnu.org 2023-10-18 21:26 ` bergner at gcc dot gnu.org 2023-10-19 6:23 ` rguenth at gcc dot gnu.org 2023-11-17 5:33 ` jeevitha at gcc dot gnu.org 2023-11-24 19:59 ` jakub at gcc dot gnu.org 2023-11-26 21:36 ` [Bug bootstrap/111601] [14 Regression] profilebootstrap " jakub at gcc dot gnu.org 2023-11-27 11:37 ` jakub at gcc dot gnu.org 2023-11-27 12:24 ` rguenther at suse dot de 2023-11-27 12:27 ` jakub at gcc dot gnu.org 2023-11-27 13:31 ` jakub at gcc dot gnu.org 2023-11-27 13:51 ` jakub at gcc dot gnu.org 2023-11-27 15:14 ` jakub at gcc dot gnu.org 2023-11-27 16:21 ` jakub at gcc dot gnu.org 2023-11-27 16:45 ` jakub at gcc dot gnu.org 2023-11-27 16:57 ` jakub at gcc dot gnu.org 2023-11-27 17:01 ` jakub at gcc dot gnu.org 2023-11-27 18:33 ` jakub at gcc dot gnu.org 2023-11-27 19:24 ` jakub at gcc dot gnu.org [this message] 2023-11-27 20:02 ` jakub at gcc dot gnu.org 2023-11-27 20:17 ` jakub at gcc dot gnu.org 2023-11-29 8:18 ` cvs-commit at gcc dot gnu.org 2023-11-29 8:31 ` jakub at gcc dot gnu.org 2023-11-30 17:20 ` jeevitha at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-111601-4-nGvoQj6ooz@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).