1.
"Common subexpression elimination" is valid on volatile varibles in a struct.
I'm using STM32_StdPheriph Library, for SPI operation. I write a byte to DR, wait ready, and read the return value read from DR. If "Common subexpression elimination" is enabled in most size optimization, the data written to DR will be returned(instead of read DR).
And it's OK if using CodesourceryG++Lite, -Os optimization.
reply:
> The bug is reconfirmed and planned to be corrected in version 5.41.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
文章评论(0条评论)
登录后参与讨论