This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ada/63225] New: ada bootstrap failure when -fno-inline in STAGE1_CFLAGS
- From: "amodra at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 11 Sep 2014 13:27:33 +0000
- Subject: [Bug ada/63225] New: ada bootstrap failure when -fno-inline in STAGE1_CFLAGS
- Auto-submitted: auto-generated
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.