[Bug c/15849] volatile generates bad code

dberlin at dberlin dot org gcc-bugzilla@gcc.gnu.org
Sun Jun 6 15:06:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list