public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug c/25547] New: 3 * dead data in compiler source code @ 2005-12-23 14:34 dcb314 at hotmail dot com 2005-12-23 15:19 ` [Bug middle-end/25547] " pinskia at gcc dot gnu dot org ` (4 more replies) 0 siblings, 5 replies; 6+ messages in thread From: dcb314 at hotmail dot com @ 2005-12-23 14:34 UTC (permalink / raw) To: gcc-bugs I just tried to compile the gcc-4.2 snapshot 20051217 with the Intel C compiler. It said 1. ../../src/gcc-4.2-20051217/gcc/builtins.c(1155): remark #593: variable "apply_args_reg_offset" was set but never used The source code is static int apply_args_reg_offset[FIRST_PSEUDO_REGISTER]; I have read the source code, and I agree with the compiler. The data is only ever written to. Suggest delete dead data. 2. ../../src/gcc-4.2-20051217/gcc/gcse.c(290): remark #593: variable "debug_stderr" was set but never used The source code is static FILE *debug_stderr; I have read the source code, and I agree with the compiler. The data is only ever written to. Suggest delete dead data. 3. ../../src/gcc-4.2-20051217/gcc/ggc-common.c(68): remark #593: variable "ggc_stats" was set but never used The source code is static ggc_statistics *ggc_stats; I have read the source code, and I agree with the compiler. The data is only ever written to. Suggest delete dead data. -- Summary: 3 * dead data in compiler source code Product: gcc Version: 4.2.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: dcb314 at hotmail dot com GCC host triplet: x86_64-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25547 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/25547] 3 * dead data in compiler source code 2005-12-23 14:34 [Bug c/25547] New: 3 * dead data in compiler source code dcb314 at hotmail dot com @ 2005-12-23 15:19 ` pinskia at gcc dot gnu dot org 2006-01-29 21:20 ` pinskia at gcc dot gnu dot org ` (3 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2005-12-23 15:19 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pinskia at gcc dot gnu dot org 2005-12-23 15:19 ------- Confirmed. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|c |middle-end Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2005-12-23 15:19:41 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25547 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/25547] 3 * dead data in compiler source code 2005-12-23 14:34 [Bug c/25547] New: 3 * dead data in compiler source code dcb314 at hotmail dot com 2005-12-23 15:19 ` [Bug middle-end/25547] " pinskia at gcc dot gnu dot org @ 2006-01-29 21:20 ` pinskia at gcc dot gnu dot org 2006-02-06 14:34 ` pinskia at gcc dot gnu dot org ` (2 subsequent siblings) 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-01-29 21:20 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from pinskia at gcc dot gnu dot org 2006-01-29 21:20 ------- I am going to fix these issues tomorrow. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot |dot org |org Status|NEW |ASSIGNED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25547 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/25547] 3 * dead data in compiler source code 2005-12-23 14:34 [Bug c/25547] New: 3 * dead data in compiler source code dcb314 at hotmail dot com 2005-12-23 15:19 ` [Bug middle-end/25547] " pinskia at gcc dot gnu dot org 2006-01-29 21:20 ` pinskia at gcc dot gnu dot org @ 2006-02-06 14:34 ` pinskia at gcc dot gnu dot org 2008-01-08 18:07 ` manu at gcc dot gnu dot org 2010-05-06 10:46 ` manu at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: pinskia at gcc dot gnu dot org @ 2006-02-06 14:34 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from pinskia at gcc dot gnu dot org 2006-02-06 14:33 ------- Most of them will be fixed by: http://gcc.gnu.org/ml/gcc-patches/2006-02/msg00447.html I still have to decide if we want to remove ggc_stats or not. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25547 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/25547] 3 * dead data in compiler source code 2005-12-23 14:34 [Bug c/25547] New: 3 * dead data in compiler source code dcb314 at hotmail dot com ` (2 preceding siblings ...) 2006-02-06 14:34 ` pinskia at gcc dot gnu dot org @ 2008-01-08 18:07 ` manu at gcc dot gnu dot org 2010-05-06 10:46 ` manu at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: manu at gcc dot gnu dot org @ 2008-01-08 18:07 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from manu at gcc dot gnu dot org 2008-01-08 17:30 ------- (In reply to comment #3) > Most of them will be fixed by: > http://gcc.gnu.org/ml/gcc-patches/2006-02/msg00447.html > > I still have to decide if we want to remove ggc_stats or not. > As far as I can see this patch was never reviewed or committed. -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |manu at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25547 ^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/25547] 3 * dead data in compiler source code 2005-12-23 14:34 [Bug c/25547] New: 3 * dead data in compiler source code dcb314 at hotmail dot com ` (3 preceding siblings ...) 2008-01-08 18:07 ` manu at gcc dot gnu dot org @ 2010-05-06 10:46 ` manu at gcc dot gnu dot org 4 siblings, 0 replies; 6+ messages in thread From: manu at gcc dot gnu dot org @ 2010-05-06 10:46 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from manu at gcc dot gnu dot org 2010-05-06 10:46 ------- This should be fixed by the new -Wunused-but-set flags. -- manu at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25547 ^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-05-06 10:46 UTC | newest] Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2005-12-23 14:34 [Bug c/25547] New: 3 * dead data in compiler source code dcb314 at hotmail dot com 2005-12-23 15:19 ` [Bug middle-end/25547] " pinskia at gcc dot gnu dot org 2006-01-29 21:20 ` pinskia at gcc dot gnu dot org 2006-02-06 14:34 ` pinskia at gcc dot gnu dot org 2008-01-08 18:07 ` manu at gcc dot gnu dot org 2010-05-06 10:46 ` manu at gcc dot gnu dot 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).