re PR ada/19942 (Stage 2 compilation of ali.adb causes GNAT bug box)

2005-02-13  Andrew Pinski  <pinskia@physics.uc.edu>

        PR ada/19942
        * utils.c (gnat_type_for_mode): Return null instead of ICE because we asked
        for an unknown mode.

From-SVN: r94989
This commit is contained in:
Andrew Pinski 2005-02-13 20:08:29 +00:00 committed by Andrew Pinski
parent e04369acfe
commit 4fa0972f8e
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-02-13 Andrew Pinski <pinskia@physics.uc.edu>
PR ada/19942
* utils.c (gnat_type_for_mode): Return null instead of ICE because we asked
for an unknown mode.
2005-02-12 Richard Henderson <rth@redhat.com>
* utils.c (gnat_type_for_mode): Return NULL for COMPLEX modes;

View File

@ -1835,7 +1835,7 @@ gnat_type_for_mode (enum machine_mode mode, int unsignedp)
else if (SCALAR_INT_MODE_P (mode))
return gnat_type_for_size (GET_MODE_BITSIZE (mode), unsignedp);
else
gcc_unreachable ();
return NULL_TREE;
}
/* Return the unsigned version of a TYPE_NODE, a scalar type. */