This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Improve Store CCP for NULL DECL_INITIAL (PR 35402)
This patch caused:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35494
H.J.
On Thu, Mar 6, 2008 at 1:52 PM, Richard Guenther
<richard.guenther@gmail.com> wrote:
> On Thu, Mar 6, 2008 at 10:48 PM, <Andrew_Pinski@playstation.sony.com> wrote:
> > Hi,
> > When the DECL_INITIAL is NULL for read only variables, we don't
> > propagate the default (zero) value to the code so we still reference the
> > symbol.
> > This patch changes Store CPP to do this optimization for these variables.
> > It only handles intergal and scalar float types because fold_convert does
> > not handle many more types.
> >
> > OK? Bootstrapped and tested on i686-linux-gnu with no regressions.
>
> Ok.
>
> Thanks,
> Richard.
>