This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR ada/19942, Ada bootstrap failure, gnat_type_for_mode and unknown types
- From: Andrew Pinski <pinskia at physics dot uc dot edu>
- To: gcc-patches Patches <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 13 Feb 2005 14:37:47 -0500
- Subject: [PATCH] Fix PR ada/19942, Ada bootstrap failure, gnat_type_for_mode and unknown types
The problem is that we can ask the type_for_mode for modes which cannot
even
be made a type for, CCmode is one of them. This is like the patch
which Paul
applied to the fortran front-end back in August.
This patch fixes the problem and gets us back to where we were for
finding
this latent bug.
OK? Bootstrapped on powerpc-darwin up till the bootstrap problem before
RTH's
patch was applied.
Thanks,
Andrew Pinski
ChangeLog:
* utils.c (gnat_type_for_mode): Return null instead of ICE because we
asked
for an unknown mode.
Attachment:
temp.diff.txt
Description: Text document