This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20222] [AVR] Double load of volatile operand
- From: "schlie at comcast dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jul 2005 21:25:58 -0000
- Subject: [Bug middle-end/20222] [AVR] Double load of volatile operand
- References: <20050226152836.20222.andrewhutchinson@cox.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From schlie at comcast dot net 2005-07-28 21:25 -------
(In reply to comment #0)
- just for the record, it appears that the bug is that when a function is
inlined using a built-in, a volatile parameter should be accessed only
once and placed into a temporary, which is then substitued for references
to that paramter within the body of the function, not the volatile reference
itself. please see: http://gcc.gnu.org/ml/gcc/2005-07/msg00704.html
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20222