public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* ada/8941: Binding for non-Ada main uses flags in non-standard ways
@ 2002-12-14  9:06 simon
  0 siblings, 0 replies; 2+ messages in thread
From: simon @ 2002-12-14  9:06 UTC (permalink / raw)
  To: gcc-gnats


>Number:         8941
>Category:       ada
>Synopsis:       Binding for non-Ada main uses flags in non-standard ways
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 14 09:06:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Simon Wright
>Release:        gcc version 3.2
>Organization:
>Environment:
Linux (Mandrake 8.2)
>Description:
When gnatbind creates b~main.adb, it uses -static or -shared in the Object file/option list with meanings different from gcc's meaning.
If you are using a non-Ada main, you need to extract the Object file/option list in order to know what to submit to the  final link.
If you do this and leave the -static in, all following libraries must be available in lib.a form. If you leave -shared in, gcc tries to build a shared object.
>How-To-Repeat:
Too complicated to post.
>Fix:
(suggestion 1) Use -gnat-shared, -gnat-static so that extraction can detect this specific use.
(suggestion 2) Provide a special option to gnatlink/gnatbind which just outputs the processed Object file/option list.
>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: ada/8941: Binding for non-Ada main uses flags in non-standard ways
@ 2002-12-14 12:37 bosch
  0 siblings, 0 replies; 2+ messages in thread
From: bosch @ 2002-12-14 12:37 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, simon

Synopsis: Binding for non-Ada main uses flags in non-standard ways

State-Changed-From-To: open->closed
State-Changed-By: bosch
State-Changed-When: Sat Dec 14 12:37:13 2002
State-Changed-Why:
    The -O option outputs the processed list of object files required in the link. This mostly implements suggestion 2. Value of other Linker_Options specified in Ada sources is questionable for non-Ada main program anyway.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8941


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

end of thread, other threads:[~2002-12-14 20:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-12-14  9:06 ada/8941: Binding for non-Ada main uses flags in non-standard ways simon
2002-12-14 12:37 bosch

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).