This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/52699] infinite loop generated with -O0
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 24 Mar 2012 08:06:58 +0000
- Subject: [Bug libstdc++/52699] infinite loop generated with -O0
- Auto-submitted: auto-generated
- References: <bug-52699-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52699
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |libstdc++
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-03-24 08:06:58 UTC ---
>From the looks of it, it looks more like a source (library) issue rather than a
compiler one. Though I don't know enough of this code to say that.
We are stuck in the following loop:
754 result_type __u;
755 do
756 __u = _M_b() - _M_b.min();
757 while (__u >= __y0);
__y0 is 0 which means the loop is always true.