This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/39746] [4.5 Regression] Fail pr34513.c and pr34513.C at -O1 and above
- From: "dave at hiauly1 dot hia dot nrc dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Apr 2009 17:56:37 -0000
- Subject: [Bug tree-optimization/39746] [4.5 Regression] Fail pr34513.c and pr34513.C at -O1 and above
- References: <bug-39746-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #11 from dave at hiauly1 dot hia dot nrc dot ca 2009-04-15 17:56 -------
Subject: Re: [4.5 Regression] Fail pr34513.c and pr34513.C at -O1 and above
> Hmm, are you sure that revision is the cause? What happens is that the
No, but it exposed the problem.
> static int thrs = 4;
>
> and thrs is never written to so ipa-reference marks it constant.
>
> The test changes to
>
> if (shrd.1_3 != 4)
>
> maybe you are looking for a different pass then?
Looking again, it's not clear why the test fails. errors ends up at 3.
Dave
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39746