This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/21059] Bogus warning about clobbered variable
- From: "trt at acm dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Jun 2005 18:40:23 -0000
- Subject: [Bug middle-end/21059] Bogus warning about clobbered variable
- References: <20050416165638.21059.schwab@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From trt at acm dot org 2005-06-02 18:40 -------
The current warning algorithm is too simple. This would be better:
For each function that contains call(s) to setjmp(), compute:
ref_nz The set of variables that might possibly be live
(referenced) after a setjmp() returns a non-zero value.
set_any The set of variables that might possibly be set
(defined) after a call to setjmp() returns.
Issue a warning for all variables in the intersection of the sets.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21059