This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/22346] Miscompilation (infinite loop & longjmp?)
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2005 13:18:14 -0000
- Subject: [Bug c/22346] Miscompilation (infinite loop & longjmp?)
- References: <20050707103223.22346.sxanth@ceid.upatras.gr>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-07 13:18 -------
The setjmp buffer becomes invalid once you use longjmp on it.
Also you need to mark sum as volatile.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22346