This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Ada] Bootstrapping mainline GNAT fails
- From: dewar at gnat dot com (Robert Dewar)
- To: dewar at gnat dot com, zack at codesourcery dot com
- Cc: gcc at gcc dot gnu dot org, kenner at vlsi1 dot ultra dot nyu dot edu
- Date: Mon, 18 Mar 2002 22:24:29 -0500 (EST)
- Subject: Re: [Ada] Bootstrapping mainline GNAT fails
<<Fix (1) and (2) will cease to be an issue. Lemme see if I can hack up
Constant_Array_Ref to support string literals.
>>
Well (2) is most certainly an issue, 3.14p works fine for handling exceptions
in general (it has gone through a test suite that is particularly thorough
in this respect) so something is quite odd.
<<Incidentally, have you considered replacing the exception thrower
linked into gnat1 with a stub that calls the back-end's fatal_error()?
(which you can then hook to display the bug box) That would insulate
us from all bugs in the bootstrap compiler having to do with exception
handling, which has historically been a problem, and you would need a
bit less of the runtime library.
>>
Not sure what you mean here, exceptions are used extensively in the
Ada compiler to handle error conditions, and there is certainly no
guarantee that exceptions are not raised in compiling the compiler.
In particular, the guard that you are running into is quite legitimate,
and it would be nice to fix this case but definitely should not be a
problem. We don't usually have any problem with exceptions in the bootstrapping
process, though as Richard says, it is interesting that just recently we
ran into this on the ia64.