This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/15849] volatile generates bad code


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]