https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93847
Bug ID: 93847
Summary: Nios II ICE
Product: gcc
Version: 7.3.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: giulio.benetti at benettiengineering dot com
Target Milestone: ---
When building git package on Buildroot gcc throws:
'''
ref-filter.c: In function 'find_longest_prefixes_1':
ref-filter.c:1914:1: internal compiler error: Segmentation fault
}
^
'''
To reproduce it:
# git clone git://git.busybox.net/buildroot
# wget https://git.busybox.net/buildroot-test/tree/utils/br-reproduce-build
- modify BASE_GIT=... with your buildroot path in br-reproduce-build then:
# chmod a+x br-reproduce-build
# ./br-reproduce-build 432a2766836107ed5536f861a8fbcab33e1f8cf6
The only way I've found to build correctly is to turn off optimization
overriding CFLAGS with -O0.
Hope you can reproduce this way as they've done for RISCV32:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93532
Otherwise it become useless to send you only .i file.