This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/38180] CCP does not propagate through constant initializers
- From: "rguenther at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Nov 2008 15:13:55 -0000
- Subject: [Bug tree-optimization/38180] CCP does not propagate through constant initializers
- References: <bug-38180-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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