This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/25547] New: 3 * dead data in compiler source code
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Dec 2005 14:34:29 -0000
- Subject: [Bug c/25547] New: 3 * dead data in compiler source code
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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