Date: Sat, 13 Mar 1999 17:41:04 -0500 From: Dennis <dennis@etinc.com> To: hackers@freebsd.org Subject: 'C' language question Message-ID: <199903132232.RAA19255@etinc.com>
next in thread | raw e-mail | index | archive | help
I have a memory mapped controller that requires that all of its register reads and writes be 32 bits....the follow code: *reg |= 0x80000000; generates a byte OR (ORB instruction) which trashes the register with gcc 2.9.2....a stupid "optimization" that happens to be wrong in this case. is there a declaration that will force the compiler to generate a 32bit OR (ORL instruction) on this? Dennis To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903132232.RAA19255>