This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/39121] strange behavior in chained operations
- From: "joe.carnuccio at qlogic dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 25 Jun 2015 18:49:01 +0000
- Subject: [Bug c/39121] strange behavior in chained operations
- Auto-submitted: auto-generated
- References: <bug-39121-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39121
joe.carnuccio at qlogic dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |joe.carnuccio at qlogic dot com
--- Comment #4 from joe.carnuccio at qlogic dot com ---
I have found the following:
This works: c ^= d ^= c ^= d (where c and d are not pointers)
This fails: *a ^= *b ^= *a ^= *b (where a and b are pointers)
When compiling using -Os then the failed case now works.