public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/63225] New: ada bootstrap failure when -fno-inline in STAGE1_CFLAGS
@ 2014-09-11 13:27 amodra at gmail dot com
  2014-09-11 13:29 ` [Bug ada/63225] " amodra at gmail dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: amodra at gmail dot com @ 2014-09-11 13:27 UTC (permalink / raw)
  To: gcc-bugs

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.


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-10-13  8:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-11 13:27 [Bug ada/63225] New: ada bootstrap failure when -fno-inline in STAGE1_CFLAGS amodra at gmail dot com
2014-09-11 13:29 ` [Bug ada/63225] " amodra at gmail dot com
2014-09-21 14:24 ` ebotcazou at gcc dot gnu.org
2014-10-13  8:20 ` ebotcazou at gcc dot gnu.org
2014-10-13  8:21 ` ebotcazou at gcc dot gnu.org
2014-10-13  8:21 ` ebotcazou at gcc dot gnu.org
2014-10-13  8:23 ` ebotcazou at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).