https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91254
--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- For me it is "stuck" in the loop at line 170. Note it works fine for 200 digits and also 400. Maybe you simply need to wait longer? That is, I doubt it is GCCs fault - maybe the code is simply slow? You didn't mention the compiler options you used btw. I checked -O2. So please be more precise on what you are exactly doing.