------- 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