public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/67816] [6 Regression] ICE in duplicate_thread_path, 186.crafty fails to build Date: Fri, 02 Oct 2015 10:53:00 -0000 [thread overview] Message-ID: <bug-67816-4-YQAOsh2SaI@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-67816-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67816 --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Seen with r228349 btw. Delta-reduced testcase: typedef struct { int path[65]; } CHESS_PATH; extern int early_exit; extern int number_of_solutions; extern int solutions[10]; extern int solution_type; extern int iteration_depth; extern int hash_table_size; extern int *last[65]; extern signed char searched_this_root_move[256]; extern unsigned int root_nodes[256]; extern CHESS_PATH pv[65]; int Iterate(int wtm, int search_type, int root_list_done) { int *mvp; int i, value=0, time_used; int correct, correct_count, material=0, sorted, temp; for (; iteration_depth<=60; iteration_depth++) { for (mvp=last[0]; mvp<last[1]; mvp++) searched_this_root_move[mvp-last[0]]=0; for (i=0; i<number_of_solutions; i++) { if (!solution_type) { if (solutions[i] == pv[1].path[1]) correct=1; } else if (solutions[i] == pv[1].path[1]) correct=0; } if (correct) correct_count++; if (correct_count >= early_exit) break; do { sorted=1; for (mvp=last[0]+1; mvp<last[1]-1; mvp++) { if (root_nodes[mvp-last[0]] < root_nodes[mvp-last[0]+1]) { temp=*mvp; *mvp=*(mvp+1); *(mvp+1)=temp; temp=root_nodes[mvp-last[0]]; root_nodes[mvp-last[0]]=root_nodes[mvp-last[0]+1]; root_nodes[mvp-last[0]+1]=temp; sorted=0; } } } while(!sorted); } }
next prev parent reply other threads:[~2015-10-02 10:53 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2015-10-02 10:37 [Bug tree-optimization/67816] New: " rguenth at gcc dot gnu.org 2015-10-02 10:37 ` [Bug tree-optimization/67816] " rguenth at gcc dot gnu.org 2015-10-02 10:53 ` rguenth at gcc dot gnu.org [this message] 2015-10-02 11:10 ` mpolacek at gcc dot gnu.org 2015-10-02 12:01 ` rguenther at suse dot de 2015-10-04 7:01 ` rguenther at suse dot de 2015-10-05 8:16 ` rguenth at gcc dot gnu.org 2015-10-05 8:23 ` rguenth at gcc dot gnu.org 2015-10-05 8:26 ` rguenth at gcc dot gnu.org 2015-10-05 8:35 ` trippels at gcc dot gnu.org 2015-10-05 9:01 ` trippels at gcc dot gnu.org 2015-10-05 15:25 ` law at redhat dot com 2015-10-07 2:26 ` law at redhat dot com 2015-10-07 2:26 ` law 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-67816-4-YQAOsh2SaI@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).