This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]