public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/25567] New: 4 * set but never used
@ 2005-12-26 14:46 dcb314 at hotmail dot com
2005-12-26 17:13 ` [Bug other/25567] " pinskia at gcc dot gnu dot org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: dcb314 at hotmail dot com @ 2005-12-26 14:46 UTC (permalink / raw)
To: gcc-bugs
I just tried to compile the gcc-4.2 snapshot 20051224 with the Intel C
compiler. It said
1.
../../src/gcc-4.2-20051224/gcc/c-decl.c(4486): remark #593: variable
"type_as_written" was set but
never used
The source code is
tree type_as_written;
I have read the source code, and I agree with the compiler.
The local variable is only ever written to. Suggest delete local variable.
2.
../../src/gcc-4.2-20051224/gcc/tree-cfg.c(3083): remark #593: variable "src"
was set but never used
The source code is
basic_block new_bb, after_bb, dest, src;
More of the same.
3.
../../src/gcc-4.2-20051224/gcc/tree-outof-ssa.c(1843): remark #593: variable
"changed" was set but
never used
The source code is
bool changed;
More of the same.
4.
../../src/gcc-4.2-20051224/gcc/tree-ssa-copy.c(352): remark #593: variable
"lhs" was set but never
used
The source code is
tree lhs, rhs;
More of the same.
--
Summary: 4 * set but never used
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=25567
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug other/25567] 4 * set but never used
2005-12-26 14:46 [Bug c/25567] New: 4 * set but never used dcb314 at hotmail dot com
@ 2005-12-26 17:13 ` pinskia at gcc dot gnu dot org
2006-01-29 21:19 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-26 17:13 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2005-12-26 17:13 -------
Confirmed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2005-12-26 17:13:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25567
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug other/25567] 4 * set but never used
2005-12-26 14:46 [Bug c/25567] New: 4 * set but never used dcb314 at hotmail dot com
2005-12-26 17:13 ` [Bug other/25567] " pinskia at gcc dot gnu dot org
@ 2006-01-29 21:19 ` pinskia at gcc dot gnu dot org
2006-02-06 14:33 ` pinskia at gcc dot gnu dot org
2010-05-06 10:56 ` manu at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-29 21:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-01-29 21:19 -------
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=25567
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug other/25567] 4 * set but never used
2005-12-26 14:46 [Bug c/25567] New: 4 * set but never used dcb314 at hotmail dot com
2005-12-26 17:13 ` [Bug other/25567] " pinskia at gcc dot gnu dot org
2006-01-29 21:19 ` pinskia at gcc dot gnu dot org
@ 2006-02-06 14:33 ` pinskia at gcc dot gnu dot org
2010-05-06 10:56 ` manu at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-06 14:33 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 Had forgot the tree-outof-ssa.c variable when I submitted the patch).
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25567
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug other/25567] 4 * set but never used
2005-12-26 14:46 [Bug c/25567] New: 4 * set but never used dcb314 at hotmail dot com
` (2 preceding siblings ...)
2006-02-06 14:33 ` pinskia at gcc dot gnu dot org
@ 2010-05-06 10:56 ` manu at gcc dot gnu dot org
3 siblings, 0 replies; 5+ messages in thread
From: manu at gcc dot gnu dot org @ 2010-05-06 10:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from manu at gcc dot gnu dot org 2010-05-06 10:56 -------
Thanks for the report. I think all these have been fixed already in GCC 4.6 and
regressions would be detected 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=25567
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-05-06 10:56 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-26 14:46 [Bug c/25567] New: 4 * set but never used dcb314 at hotmail dot com
2005-12-26 17:13 ` [Bug other/25567] " pinskia at gcc dot gnu dot org
2006-01-29 21:19 ` pinskia at gcc dot gnu dot org
2006-02-06 14:33 ` pinskia at gcc dot gnu dot org
2010-05-06 10:56 ` 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).