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
* [Bug ada/63225] ada bootstrap failure when -fno-inline in STAGE1_CFLAGS 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 ` amodra at gmail dot com 2014-09-21 14:24 ` ebotcazou at gcc dot gnu.org ` (4 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: amodra at gmail dot com @ 2014-09-11 13:29 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63225 --- Comment #1 from Alan Modra <amodra at gmail dot com> --- Created attachment 33472 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=33472&action=edit Declare Vector_To_Uint ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ada/63225] ada bootstrap failure when -fno-inline in STAGE1_CFLAGS 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 ` (3 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: ebotcazou at gcc dot gnu.org @ 2014-09-21 14:24 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63225 Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-09-21 CC| |ebotcazou at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #2 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- It's because we have inter-unit inlining in the Ada compiler even w/o LTO. ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ada/63225] ada bootstrap failure when -fno-inline in STAGE1_CFLAGS 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 ` (2 subsequent siblings) 5 siblings, 0 replies; 7+ messages in thread From: ebotcazou at gcc dot gnu.org @ 2014-10-13 8:20 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63225 --- Comment #3 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Author: ebotcazou Date: Mon Oct 13 08:19:45 2014 New Revision: 216139 URL: https://gcc.gnu.org/viewcvs?rev=216139&root=gcc&view=rev Log: PR ada/63225 * uintp.adb (Vector_To_Uint): Move from here to... * uintp.ads (UI_Vector): Make public. (Vector_To_Uint): ...here. Modified: trunk/gcc/ada/ChangeLog trunk/gcc/ada/uintp.adb trunk/gcc/ada/uintp.ads ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ada/63225] ada bootstrap failure when -fno-inline in STAGE1_CFLAGS 2014-09-11 13:27 [Bug ada/63225] New: ada bootstrap failure when -fno-inline in STAGE1_CFLAGS amodra at gmail dot com ` (2 preceding siblings ...) 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 5 siblings, 0 replies; 7+ messages in thread From: ebotcazou at gcc dot gnu.org @ 2014-10-13 8:21 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63225 --- Comment #5 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Author: ebotcazou Date: Mon Oct 13 08:21:19 2014 New Revision: 216141 URL: https://gcc.gnu.org/viewcvs?rev=216141&root=gcc&view=rev Log: PR ada/63225 * uintp.adb (Vector_To_Uint): Move from here to... * uintp.ads (UI_Vector): Make public. (Vector_To_Uint): ...here. Modified: branches/gcc-4_8-branch/gcc/ada/ChangeLog branches/gcc-4_8-branch/gcc/ada/uintp.adb branches/gcc-4_8-branch/gcc/ada/uintp.ads ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ada/63225] ada bootstrap failure when -fno-inline in STAGE1_CFLAGS 2014-09-11 13:27 [Bug ada/63225] New: ada bootstrap failure when -fno-inline in STAGE1_CFLAGS amodra at gmail dot com ` (3 preceding siblings ...) 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 5 siblings, 0 replies; 7+ messages in thread From: ebotcazou at gcc dot gnu.org @ 2014-10-13 8:21 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63225 --- Comment #4 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Author: ebotcazou Date: Mon Oct 13 08:20:30 2014 New Revision: 216140 URL: https://gcc.gnu.org/viewcvs?rev=216140&root=gcc&view=rev Log: PR ada/63225 * uintp.adb (Vector_To_Uint): Move from here to... * uintp.ads (UI_Vector): Make public. (Vector_To_Uint): ...here. Modified: branches/gcc-4_9-branch/gcc/ada/ChangeLog branches/gcc-4_9-branch/gcc/ada/uintp.adb branches/gcc-4_9-branch/gcc/ada/uintp.ads ^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug ada/63225] ada bootstrap failure when -fno-inline in STAGE1_CFLAGS 2014-09-11 13:27 [Bug ada/63225] New: ada bootstrap failure when -fno-inline in STAGE1_CFLAGS amodra at gmail dot com ` (4 preceding siblings ...) 2014-10-13 8:21 ` ebotcazou at gcc dot gnu.org @ 2014-10-13 8:23 ` ebotcazou at gcc dot gnu.org 5 siblings, 0 replies; 7+ messages in thread From: ebotcazou at gcc dot gnu.org @ 2014-10-13 8:23 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63225 Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Target Milestone|--- |4.8.4 --- Comment #6 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Thanks for reporting the problem and providing a fix. ^ 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).