This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35505] New: builtins.c: 5 * set but not used
- From: "dcb314 at hotmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Mar 2008 07:53:50 -0000
- Subject: [Bug c/35505] New: builtins.c: 5 * set but not used
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
I just applied Intel C to a bootstrap build of GNU
C version 4.4 snapshot 20080229.
The Intel compiler said
../../src/gcc-4.4-20080229/gcc/builtins.c(2868): remark #593: variable "val"
was set but never used
../../src/gcc-4.4-20080229/gcc/builtins.c(5152): remark #593: variable "c" was
set but never used
../../src/gcc-4.4-20080229/gcc/builtins.c(11777): remark #593: variable "dest"
was set but never used
../../src/gcc-4.4-20080229/gcc/builtins.c(11777): remark #593: variable "flag"
was set but never used
../../src/gcc-4.4-20080229/gcc/builtins.c(1195): remark #593: variable
"apply_args_reg_offset" was set but never used
I've just manually checked each of these five and
I agree with the Intel C compiler.
Suggest delete these four dead local variables
and one dead static variable.
--
Summary: builtins.c: 5 * set but not used
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: dcb314 at hotmail dot com
GCC host triplet: suse-linux-x86_64
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35505