https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98928
Bug ID: 98928 Summary: [11 regression] ICE when build 638.imagick_s Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: crazylht at gmail dot com Target Milestone: --- Host: x86_64-pc-linux-gnu I can't reproduce it with small testcase, the regression may happen between 20201211 and 20201215, ICE still can be reproduced in the latest trunk with gcc option: -march=skylake-avx512 -Ofast -funroll-loops -mfpmath=sse -Ofast -fno-associative-math -flto -fopenmp ice dump: spec@shgcc100:~/workspace/CPU2017_SHGCC100/result/benchspec/CPU/638.imagick_s/build/build_base_march_native_ofast.0000$ /export/liuhongt/install/gcc11_trunk/bin/gcc -m64 -Wl,-z,muldefs -march=native -Ofast -funroll-loops -mfpmath=sse -Ofast -fno-associative-math -funroll-loops -flto -fopenmp -DSPEC_OPENMP coders/tga.o filters/analyze.o magick/accelerate.o magick/animate.o magick/annotate.o magick/artifact.o magick/attribute.o magick/blob.o magick/cache-view.o magick/cache.o magick/channel.o magick/cipher.o magick/client.o magick/coder.o magick/color.o magick/colormap.o magick/colorspace.o magick/compare.o magick/composite.o magick/compress.o magick/configure.o magick/constitute.o magick/decorate.o magick/delegate.o magick/display.o magick/distort.o magick/distribute-cache.o magick/draw.o magick/effect.o magick/enhance.o magick/exception.o magick/feature.o magick/fourier.o magick/fx.o magick/gem.o magick/geometry.o magick/hashmap.o magick/histogram.o magick/identify.o magick/image.o magick/layer.o magick/list.o magick/locale.o magick/log.o magick/magic.o magick/magick.o magick/matrix.o magick/memory.o magick/mime.o magick/module.o magick/monitor.o magick/montage.o magick/morphology.o magick/option.o magick/paint.o magick/pixel.o magick/policy.o magick/prepress.o magick/profile.o magick/property.o magick/quantize.o magick/quantum-export.o magick/quantum-import.o magick/quantum.o magick/random.o magick/registry.o magick/resample.o magick/resize.o magick/resource.o magick/segment.o magick/semaphore.o magick/shear.o magick/signature.o magick/splay-tree.o magick/static.o magick/statistic.o magick/stream.o magick/string.o magick/threshold.o magick/timer.o magick/token.o magick/transform.o magick/type.o magick/utility.o magick/version.o magick/xml-tree.o utilities/convert.o wand/convert.o wand/drawing-wand.o wand/magick-image.o wand/magick-wand.o wand/mogrify.o wand/pixel-wand.o wand/magick-property.o wand/pixel-iterator.o wand/wand.o magick/deprecate.o -lm -L/home/spec/workspace/CPU2017_SHGCC100/speccpu2017/jemalloc/intel64/lib/ -ljemalloc -lpthread -ldl -o imagick_sIn function ‘CopyMagickMemory’, inlined from ‘ConvertUTF16ToUTF8’ at magick/xml-tree.c:1341:14, inlined from ‘NewXMLTree.part.0’ at magick/xml-tree.c:1973:8: magick/memory.c:702:10: warning: ‘__builtin_memcpy’ writing one too many bytes into a region of a size that depends on ‘strlen’ [-Wstringop-overflow=] 702 | return(memmove(destination,source,size)); | ^ magick/xml-tree.c: In function ‘NewXMLTree.part.0’: magick/memory.c:464:10: note: destination object of size [0, 9223372036854775805] allocated by ‘malloc’ 464 | memory=memory_methods.acquire_memory_handler(size == 0 ? 1UL : size); | ^ during GIMPLE pass: vect magick/pixel.c: In function ‘InterpolateMagickPixelPacket.constprop.isra’: magick/pixel.c:4244:32: internal compiler error: in vect_get_vec_defs_for_operand, at tree-vect-stmts.c:1450 4244 | MagickExport MagickBooleanType InterpolateMagickPixelPacket(const Image *image, | ^ 0x75bc56 vect_get_vec_defs_for_operand(vec_info*, _stmt_vec_info*, unsigned int, tree_node*, vec<tree_node*, va_heap, vl_ptr>*, tree_node*) ../../../gcc/git_trunk/gcc/tree-vect-stmts.c:1450 0x10295e3 vect_get_vec_defs(vec_info*, _stmt_vec_info*, _slp_tree*, unsigned int, tree_node*, vec<tree_node*, va_heap, vl_ptr>*, tree_node*, tree_node*, vec<tree_node*, va_heap, vl_ptr>*, tree_node*, tree_node*, vec<tree_node*, va_heap, vl_ptr>*, tree_node*, tree_node*, vec<tree_node*, va_heap, vl_ptr>*, tree_node*) ../../../gcc/git_trunk/gcc/tree-vect-stmts.c:1482 0x10296cc vect_get_vec_defs(vec_info*, _stmt_vec_info*, _slp_tree*, unsigned int, tree_node*, vec<tree_node*, va_heap, vl_ptr>*, tree_node*, vec<tree_node*, va_heap, vl_ptr>*, tree_node*, vec<tree_node*, va_heap, vl_ptr>*, tree_node*, vec<tree_node*, va_heap, vl_ptr>*) ../../../gcc/git_trunk/gcc/tree-vect-stmts.c:1504 0x102a1a5 vectorizable_conversion ../../../gcc/git_trunk/gcc/tree-vect-stmts.c:4963 0x1045e38 vect_transform_stmt(vec_info*, _stmt_vec_info*, gimple_stmt_iterator*, _slp_tree*, _slp_instance*) ../../../gcc/git_trunk/gcc/tree-vect-stmts.c:10831 0x104b7ba vect_transform_loop_stmt ../../../gcc/git_trunk/gcc/tree-vect-loop.c:9204 0x10659c7 vect_transform_loop(_loop_vec_info*, gimple*) ../../../gcc/git_trunk/gcc/tree-vect-loop.c:9640 0x109393c try_vectorize_loop_1 ../../../gcc/git_trunk/gcc/tree-vectorizer.c:1103 0x1094629 vectorize_loops() ../../../gcc/git_trunk/gcc/tree-vectorizer.c:1242 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. lto-wrapper: fatal error: /export/liuhongt/install/gcc11_trunk/bin/gcc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed