https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87283
Bug ID: 87283 Summary: [9 Regression] internal compiler error: in remove, at alloc-pool.h:433 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: hjl.tools at gmail dot com CC: ktkachov at gcc dot gnu.org, marxin at gcc dot gnu.org Target Milestone: --- On x86-64, r264126 caused LTO failure when building 435.gromacs in SPEC CPU 2006: gfortran -O2 -ffast-math -fwhole-program -flto=jobserver -fuse-linker-plugin -DSPEC_CPU_LP64 flincs.o fsettle.fppized.o fshake.o innerf.o flincsd.o fsettled.fppized.o fshaked.o 3dview.o atomprop.o binio.o block_tx.o bondfree.o buffer.o calcgrid.o calch.o calcmu.o calcvir.o clincs.o comlib.o confio.o constr.o copyrite.o coupling.o csettle.o disre.o do_fit.o do_gct.o dummies.o ebin.o edsam.o enxio.o ewald.o ewald_util.o f77_wrappers.o fatal.o ffscanf.o fftgrid.o filenm.o fnbf.o force.o futil.o gbutil.o gctio.o genalg.o ghat.o glaasje.o gmx_system_xdr.o gmxfio.o ifunc.o index.o init.o init_sh.o innerc.o invblock.o ionize.o libxdrf.o macros.o main.o maths.o matio.o md.o mdatom.o mdebin.o mdrun.o memdump.o minimize.o mshift.o mvdata.o mvxvf.o names.o network.o nrama.o nrjac.o nrnb.o ns.o nsb.o nsgrid.o orires.o pargs.o pbc.o pdbio.o pme.o poisson.o pppm.o princ.o psgather.o pssolve.o psspread.o pull.o pullinit.o pullio.o pullutil.o rando.o random.o rbin.o rdgroup.o readinp.o relax_sh.o replace.o rmpbc.o shakef.o shift_util.o sim_util.o smalloc.o sortwater.o splittop.o stat.o statutil.o strdb.o string2.o symtab.o synclib.o tables.o tgroup.o tpxio.o trnio.o trxio.o txtdump.o typedefs.o update.o vcm.o vec.o viewit.o wgms.o wman.o wnblist.o writeps.o xdrd.o xtcio.o xutils.o xvgr.o -lm -o gromacs ... during GIMPLE pass: recip sim_util.c: In function 'do_force.constprop': sim_util.c:189:6: internal compiler error: in remove, at alloc-pool.h:433 189 | void do_force(FILE *log,t_commrec *cr,t_commrec *mcr, | ^ 0x6776a1 base_pool_allocator<memory_block_pool>::remove(void*) ../../src-trunk/gcc/alloc-pool.h:433 0x6776a1 object_allocator<occurrence>::remove(occurrence*) ../../src-trunk/gcc/alloc-pool.h:521 0x6776a1 free_bb ../../src-trunk/gcc/tree-ssa-math-opts.c:523 0xd265cf execute_cse_reciprocals_1 ../../src-trunk/gcc/tree-ssa-math-opts.c:840 0xd2945d execute ../../src-trunk/gcc/tree-ssa-math-opts.c:923 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. make[4]: *** [/tmp/ccVGmyGV.mk:8: /tmp/gromacs.HLEgaE.ltrans2.ltrans.o] Error 1 make[4]: *** Waiting for unfinished jobs.... lto-wrapper: fatal error: make returned 2 exit status compilation terminated. /usr/local/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status specmake[3]: *** [gromacs] Error 1