https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100513
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jiu Fu Guo from comment #1) > The error is raised after ipa “inlining” pass, when doing ggc_collect at > stage 2. > > At code: > xlimit = ((*xlimit).next); > > The value of xlimit becomes 0xa5a5a5a5a5a5a5a5 before crash. 0xa5 may comes > from poison_pages. > > > If using "-fno-inline" the crash disappears. 0xa5a5a5a5a5a5a5a means the location has been GC'ed already; either from ggc_free or from a previous ggc_collect. What you can try is run with the following options: --param ggc-min-expand=1 --param ggc-min-heapsize=1 Which will cause ggc_collect to run the garbage collection almost every time (setting it to 0 will run it every time but it is much much slower) and reduce the testcase that way. Also it would be a good idea to attach the preprocessed source and the exact command line xgcc is involved and which stage is this at too and the full configure command line used. I highly doubt it is related to PR 99447 which is about a stack overflow while doing the garbage collection walk.