https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63225
Bug ID: 63225 Summary: ada bootstrap failure when -fno-inline in STAGE1_CFLAGS Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ada Assignee: unassigned at gcc dot gnu.org Reporter: amodra at gmail dot com When building mainline with STAGE1_CFLAGS="-g -O -fno-inline", with a system gnat 4.6, I see ada/cuintp.o: In function `UI_From_gnu': /src/gcc-current/gcc/ada/gcc-interface/cuintp.c:186: undefined reference to `uintp__vector_to_uint' So, ada/uintp.o has uintp__vector_to_uint as a *local* symbol, which seems reasonable to me since Vector_To_Uint isn't declared in uintp.ads. I worked around the problem by the attached patch, then reverted the patch and verified the newly built gnat exhibited the same behaviour. ./xgcc -B./ -c -g -O -fno-inline -gnatpg -gnatwns -gnata -Wall -nostdinc -I- -I. -Iada -I/src/gcc-current/gcc/ada -I/src/gcc-current/gcc/ada/gcc-interface /src/gcc-current/gcc/ada/uintp.adb -o ada/uintp.o gets me the local uintp__vector_to_uint, removing -fno-inline gives me a global symbol. That seems really odd, but by no stretch of imagination am I an ada programmer.