This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/20100] [4.0 regression] static call incorrectly judged constant, moved out of loop
- From: "hp at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 20 Feb 2005 03:10:10 -0000
- Subject: [Bug tree-optimization/20100] [4.0 regression] static call incorrectly judged constant, moved out of loop
- References: <20050220030431.20100.hp@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From hp at gcc dot gnu dot org 2005-02-20 03:10 -------
Created an attachment (id=8237)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8237&action=view)
Test-case
The " && n < 5" condition is there only to make the test terminate, as the bug
would otherwise cause the program to loop until timeout.
Bug-fixer should check that the program still works when removing that
condition.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20100