This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/38180] CCP does not propagate through constant initializers



------- Comment #7 from rguenther at suse dot de  2008-11-26 15:13 -------
Subject: Re:  CCP does not propagate through
 constant initializers

On Wed, 26 Nov 2008, graham dot stott at btinternet dot com wrote:

> ------- Comment #6 from graham dot stott at btinternet dot com  2008-11-26 14:02 -------
> Subject: Re:  CCP does not propagate through constant initializers
> 
> Richard,
> 
> "const volatile" is a perfectly valid combination.
> 
> What is says is "it's read only but may change value in ways unknown to the
> compiler" think of a memory mapped hardware register which is read only such as
> some kind of counter .

Fair enough.  I just verified that we do not optimize such stuff.

Richard.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38180


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]