[ICE][Builtin] gccjit aborts with ICE when getting __builtin_alloca_with_align

Schrodinger ZHU Yifan i@zhuyi.fan
Thu Nov 7 14:23:07 GMT 2024


Hi,


The following code will trigger ICE:


#include <libgccjit++.h>
int main () {
        auto ctx = gccjit::context::acquire();
        auto func = ctx.get_builtin_function("__builtin_alloca_with_align");
        ctx.release();
}


Command line:

g++ test.cc  -lgccjit -o test && ./test



Error message:

internal compiler error: in make_type, at jit/jit-builtins.cc:4460x7d7f7372e1cd __libc_start_call_main
        ../sysdeps/nptl/libc_start_call_main.h:58
0x7d7f7372e289 __libc_start_main_impl
        ../csu/libc-start.c:36



gcc --versiongcc (GCC) 14.2.1 20240910
Copyright (C) 2024 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.






Schrodinger ZHU Yifan, Ph.D. Student
Computer Science Department, University of Rochester

Personal Email: i@zhuyi.fan
Work Email: yifanzhu@rochester.edu
Website: https://www.cs.rochester.edu/~yzhu104/Main.html
Github: SchrodingerZhu
GPG Fingerprint: BA02CBEB8CB5D8181E9368304D2CC545A78DBCC3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/jit/attachments/20241107/1dcd170d/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: publickey - i@zhuyi.fan - 0xA98A3EAE.asc
Type: application/pgp-keys
Size: 624 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/jit/attachments/20241107/1dcd170d/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image
Type: image/png
Size: 19680 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/jit/attachments/20241107/1dcd170d/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
URL: <https://gcc.gnu.org/pipermail/jit/attachments/20241107/1dcd170d/attachment-0001.sig>


More information about the Jit mailing list