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 2007 - The Ada f-e fails to bootstrap
Summary: The Ada f-e fails to bootstrap
Status: NEW
Alias: None
Product: tools
Classification: Unclassified
Component: gnat (show other bugs)
Version: trunk
Hardware: Other Linux
: P enhancement
Assignee: Unassigned LLVM Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-10 07:03 PST by Duncan Sands
Modified: 2010-02-22 12:48 PST (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:03:17 PST
The reason for this is that the compiler itself is built
using setjump/longjump style exceptions which is not
supported by LLVM (normal code built by the compiler uses
dwarf zero-cost style exceptions which are supported by LLVM).
Exceptions are raised inside the compiler when it builds
the runtime (due to processing files containing pragmas
for VAX) and need to be caught.  The exceptions are caught
if the new compiler was built by the system compiler, but
not if it was built using the llvm-gcc Ada compiler, which
is what happens during bootstrap.

This could be fixed by adding sj/lj exception support to
LLVM, or by modifying the build system so that the compiler
uses dwarf zcx internally.
Comment 1 Chris Lattner 2009-10-09 01:38:05 PDT
was this magically fixed by jim's sjlj work?
Comment 2 Duncan Sands 2009-10-12 09:03:46 PDT
I was unable to test whether this has been fixed because bootstrap
fails earlier when comparing the stage 2 and stage 3 compilers.
Comment 3 Duncan Sands 2010-02-09 04:22:43 PST
The stage2 vs stage3 comparison is still failing.  It looks like I will have to
debug it!
Comment 4 Duncan Sands 2010-02-09 04:33:49 PST
OK, I disabled the stage2 vs stage3 comparison check, and bootstrap fails
just the same as it always did: due to an uncaught exception
  SEM_PRAG.ANALYZE_PRAGMA.PRAGMA_EXIT : sem_prag.adb:1475
while building s-auxdec.adb.  Jim's sjlj work was not enough :(