This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/23444] Volatile register access incorrectly optimized
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 17 Aug 2005 16:38:57 -0000
- Subject: [Bug rtl-optimization/23444] Volatile register access incorrectly optimized
- References: <20050817154313.23444.oakad@yahoo.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-17 16:38 -------
No, the type of the local register variable is a pointer to a volatile "char" (or struct) and not a volative
register.
You want:
register char*volatile cptr asm ("r29");
With that it works correctly.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23444