https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109840
Bug ID: 109840
Summary: internal compiler error: in expand_fn_using_insn, at
internal-fn.cc:153 when building graphite2
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
Assignee: unassigned at gcc dot gnu.org
Reporter: sjames at gcc dot gnu.org
Target Milestone: ---
Created attachment 55074
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55074&action=edit
GlyphCache.cpp.ii.orig
Split out from PR109834
(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109834#c8).
```
$ aarch64-unknown-linux-gnu-g++ -O2 -c GlyphCache.cpp.ii
during RTL pass: expand
/var/tmp/portage/media-gfx/graphite2-1.3.14_p20210810-r3/work/graphite-80c52493ef42e6fe605a69dcddd2a691cd8a1380/src/GlyphCache.cpp:
In member function ‘const graphite2::GlyphFace*
graphite2::GlyphCache::Loader::read_glyph(short unsigned int,
graphite2::GlyphFace&, int*) const’:
/var/tmp/portage/media-gfx/graphite2-1.3.14_p20210810-r3/work/graphite-80c52493ef42e6fe605a69dcddd2a691cd8a1380/src/GlyphCache.cpp:348:19:
internal compiler error: in expand_fn_using_insn, at internal-fn.cc:153
348 | const GlyphFace * GlyphCache::Loader::read_glyph(unsigned short
glyphid, GlyphFace & glyph, int *numsubs) const throw()
| ^~~~~~~~~~
0xe8cadf expand_fn_using_insn
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/internal-fn.cc:153
0xbd5407 expand_call_stmt
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/cfgexpand.cc:2737
0xbd5407 expand_gimple_stmt_1
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/cfgexpand.cc:3880
0xbd5407 expand_gimple_stmt
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/cfgexpand.cc:4044
0xbdc793 expand_gimple_basic_block
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/cfgexpand.cc:6106
0xbde4cf execute
/usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/cfgexpand.cc:6841
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
```
```
gcc (Gentoo 14.0.0.9999 p, commit 29d805847dc870c92f705ed9c5e7eac955c7e7d4)
14.0.0 20230513 (experimental) 99488a6048745a7b999c22f46e5814d02ebf88d9
Copyright (C) 2023 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
```