You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RISC-V target was experiencing segmentation faults during stage2
compilation when stdin was redirected. The root cause was insufficient
buffer size for the SOURCE buffer when compiling large programs like
shecc itself.
The total size of all included source files for RISC-V was approaching
the 512KB limit (MAX_SOURCE), and with stdin redirection adding
overhead, this caused buffer overflow and segmentation faults.
Increased MAX_SOURCE from 524288 (512KB) to 1048576 (1MB) to provide
adequate buffer space for self-hosting compilation on all architectures.
0 commit comments