public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug other/98652] New: unused code found in function analyze_functions:1194 @ 2021-01-13 4:46 ashimida at linux dot alibaba.com 2021-01-13 4:51 ` [Bug other/98652] " ashimida at linux dot alibaba.com ` (5 more replies) 0 siblings, 6 replies; 7+ messages in thread From: ashimida at linux dot alibaba.com @ 2021-01-13 4:46 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98652 Bug ID: 98652 Summary: unused code found in function analyze_functions:1194 Product: gcc Version: new-ra Status: UNCONFIRMED Severity: normal Priority: P3 Component: other Assignee: unassigned at gcc dot gnu.org Reporter: ashimida at linux dot alibaba.com Target Milestone: --- In function "analyze_functions"[1]:1194, the value of "changed" should always be "true" and the fprintf will output nothing. codes in line [1194,1195] should be deleted. 1173 while (changed) 1174 { 1175 changed = false; 1176 process_function_and_variable_attributes (first_analyzed, 1177 first_analyzed_var); 1178 1179 /* First identify the trivially needed symbols. */ 1180 for (node = symtab->first_symbol (); 1181 node != first_analyzed 1182 && node != first_analyzed_var; node = node->next) 1183 { 1184 /* Convert COMDAT group designators to IDENTIFIER_NODEs. */ 1185 node->get_comdat_group_id (); 1186 if (node->needed_p ()) 1187 { 1188 enqueue_node (node); 1189 if (!changed && symtab->dump_file) 1190 fprintf (symtab->dump_file, "Trivially needed symbols:"); 1191 changed = true; 1192 if (symtab->dump_file) 1193 fprintf (symtab->dump_file, " %s", node->dump_asm_name ()); 1194 if (!changed && symtab->dump_file) 1195 fprintf (symtab->dump_file, "\n"); 1196 } 1197 if (node == first_analyzed 1198 || node == first_analyzed_var) 1199 break; 1200 } [1]:https://gcc.gnu.org/git/?p=gcc.git;a=blob;f=gcc/cgraphunit.c;h=cf64e56ab951a0a757e507f59c236523b003a6be;hb=HEAD ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/98652] unused code found in function analyze_functions:1194 2021-01-13 4:46 [Bug other/98652] New: unused code found in function analyze_functions:1194 ashimida at linux dot alibaba.com @ 2021-01-13 4:51 ` ashimida at linux dot alibaba.com 2021-01-13 4:52 ` ashimida at linux dot alibaba.com ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: ashimida at linux dot alibaba.com @ 2021-01-13 4:51 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98652 --- Comment #1 from ashimida <ashimida at linux dot alibaba.com> --- *** Bug 98651 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/98652] unused code found in function analyze_functions:1194 2021-01-13 4:46 [Bug other/98652] New: unused code found in function analyze_functions:1194 ashimida at linux dot alibaba.com 2021-01-13 4:51 ` [Bug other/98652] " ashimida at linux dot alibaba.com @ 2021-01-13 4:52 ` ashimida at linux dot alibaba.com 2021-01-13 4:52 ` ashimida at linux dot alibaba.com ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: ashimida at linux dot alibaba.com @ 2021-01-13 4:52 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98652 --- Comment #2 from ashimida <ashimida at linux dot alibaba.com> --- *** Bug 98653 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug other/98652] unused code found in function analyze_functions:1194 2021-01-13 4:46 [Bug other/98652] New: unused code found in function analyze_functions:1194 ashimida at linux dot alibaba.com 2021-01-13 4:51 ` [Bug other/98652] " ashimida at linux dot alibaba.com 2021-01-13 4:52 ` ashimida at linux dot alibaba.com @ 2021-01-13 4:52 ` ashimida at linux dot alibaba.com 2021-01-13 8:20 ` [Bug ipa/98652] " marxin at gcc dot gnu.org ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: ashimida at linux dot alibaba.com @ 2021-01-13 4:52 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98652 --- Comment #3 from ashimida <ashimida at linux dot alibaba.com> --- *** Bug 98654 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ipa/98652] unused code found in function analyze_functions:1194 2021-01-13 4:46 [Bug other/98652] New: unused code found in function analyze_functions:1194 ashimida at linux dot alibaba.com ` (2 preceding siblings ...) 2021-01-13 4:52 ` ashimida at linux dot alibaba.com @ 2021-01-13 8:20 ` marxin at gcc dot gnu.org 2021-01-13 8:28 ` cvs-commit at gcc dot gnu.org 2021-01-13 8:29 ` marxin at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: marxin at gcc dot gnu.org @ 2021-01-13 8:20 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98652 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed| |2021-01-13 Status|UNCONFIRMED |ASSIGNED Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> --- Confirmed, let me fix it. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ipa/98652] unused code found in function analyze_functions:1194 2021-01-13 4:46 [Bug other/98652] New: unused code found in function analyze_functions:1194 ashimida at linux dot alibaba.com ` (3 preceding siblings ...) 2021-01-13 8:20 ` [Bug ipa/98652] " marxin at gcc dot gnu.org @ 2021-01-13 8:28 ` cvs-commit at gcc dot gnu.org 2021-01-13 8:29 ` marxin at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2021-01-13 8:28 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98652 --- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Liska <marxin@gcc.gnu.org>: https://gcc.gnu.org/g:6b70fa678b1a5ecf3ee87e2be87c3dc9dd08cc92 commit r11-6630-g6b70fa678b1a5ecf3ee87e2be87c3dc9dd08cc92 Author: Martin Liska <mliska@suse.cz> Date: Wed Jan 13 09:25:31 2021 +0100 ipa: remove a dead code gcc/ChangeLog: PR ipa/98652 * cgraphunit.c (analyze_functions): Remove dead code. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ipa/98652] unused code found in function analyze_functions:1194 2021-01-13 4:46 [Bug other/98652] New: unused code found in function analyze_functions:1194 ashimida at linux dot alibaba.com ` (4 preceding siblings ...) 2021-01-13 8:28 ` cvs-commit at gcc dot gnu.org @ 2021-01-13 8:29 ` marxin at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: marxin at gcc dot gnu.org @ 2021-01-13 8:29 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98652 Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|ASSIGNED |RESOLVED --- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> --- Fixed. ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-01-13 8:29 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2021-01-13 4:46 [Bug other/98652] New: unused code found in function analyze_functions:1194 ashimida at linux dot alibaba.com 2021-01-13 4:51 ` [Bug other/98652] " ashimida at linux dot alibaba.com 2021-01-13 4:52 ` ashimida at linux dot alibaba.com 2021-01-13 4:52 ` ashimida at linux dot alibaba.com 2021-01-13 8:20 ` [Bug ipa/98652] " marxin at gcc dot gnu.org 2021-01-13 8:28 ` cvs-commit at gcc dot gnu.org 2021-01-13 8:29 ` marxin 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).