LLVM Bugzilla is read-only and represents the historical archive of all LLVM issues filled before November 26, 2021. Use github to submit LLVM bugs

Bug 2009 - [ada] "main" not compatible with lli
Summary: [ada] "main" not compatible with lli
Status: NEW
Alias: None
Product: tools
Classification: Unclassified
Component: gnat (show other bugs)
Version: trunk
Hardware: Other Linux
: P enhancement
Assignee: Duncan Sands
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-10 07:22 PST by Duncan Sands
Modified: 2010-07-30 07:56 PDT (History)
2 users (show)

See Also:
Fixed By Commit(s):


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Duncan Sands 2008-02-10 07:22:13 PST
The Ada front-end generates a "main" with a bogus
prototype as far as lli is concerned (it uses integers
rather than pointers for argv and envp).
Comment 1 someguy 2009-03-10 03:52:22 PDT
In general, unless you are really careful about the main prototype, lli will fail.

Perhaps the lli code should be refactored to be more forgiving?
Comment 2 Duncan Sands 2009-03-10 04:14:50 PDT
I agree - it should at least support everything which is
ABI compatible with main, eg: a main which uses integers
instead of pointers as long as they are of pointer size.
Comment 3 Chris Lattner 2010-07-29 17:28:41 PDT
Duncan, should this be closed?
Comment 4 Duncan Sands 2010-07-30 07:56:18 PDT
lli continues to be unforgiving.  I would like to keep it open for the moment.