This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23414] const function is not dectected for functions with non infinite loops
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Aug 2005 01:25:45 -0000
- Subject: [Bug tree-optimization/23414] const function is not dectected for functions with non infinite loops
- References: <20050816005828.23414.tkho@ucla.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-16 01:25 -------
(In reply to comment #4)
> The most ovbvious way to fix this would do the ipa optimizations on the ssa level where we can get
> the loop information and check to see if the loops are finite.
I should mention that will not happen until at least 4.2.0.
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|pure function is not |const function is not
|dectected for functions with|dectected for functions with
|non infinite loops |non infinite loops
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23414