This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/15849] volatile generates bad code
- From: "dberlin at dberlin dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jun 2004 15:06:51 -0000
- Subject: [Bug c/15849] volatile generates bad code
- References: <20040606145921.15849.jc@apinc.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From dberlin at dberlin dot org 2004-06-06 15:06 -------
Subject: Re: New: volatile generates bad code
> if(v1 = v2) {
> printf("v1 = v2\n");
In C, this assigns v2 to v1, so this program will always print "v1 =
v2", since it always will be.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15849