Path: blob/main/lang/asis/files/patch-asis_a4g-gnat__int.adb
16149 views
--- asis/a4g-gnat_int.adb.orig 2016-05-16 09:17:27 UTC1+++ asis/a4g-gnat_int.adb2@@ -231,46 +231,10 @@ package body A4G.GNAT_Int is3Opt.Tree_Read;45if Strong_Version_Check then6- -- We check only the dates here!7- First_A_Idx :=8- Index (Source => ASIS_GNAT_V,9- Pattern => "(") + 1;10-11- First_T_Idx :=12- Index (Source => Tree_Version_String.all,13- Pattern => "(") + 1;14-15- Last_A_Idx := Index (Source => ASIS_GNAT_V,16- Pattern => ")") - 1;17-18- if Index19- (Source => ASIS_GNAT_V (First_A_Idx .. Last_A_Idx),20- Pattern => "-") /= 021- then22- Last_A_Idx :=23- Index (Source => ASIS_GNAT_V (First_A_Idx .. Last_A_Idx),24- Pattern => "-") - 1;25- end if;26-27- Last_T_Idx := Index (Source => Tree_Version_String.all,28- Pattern => ")") - 1;29-30- if Index31- (Source => Tree_Version_String.all (First_T_Idx .. Last_T_Idx),32- Pattern => "-") /= 033- then34- Last_T_Idx :=35- Index (Source =>36- Tree_Version_String.all (First_T_Idx .. Last_T_Idx),37- Pattern => "-") - 1;38- end if;39-40- if ASIS_GNAT_V (First_A_Idx .. Last_A_Idx) /=41- Tree_Version_String (First_T_Idx .. Last_T_Idx)42- then43- Note_Version_Mismatch;44- end if;45-46+ -- No need for any version check at all47+ -- FreeBSD Ports system ensures gnat_util is from same sources48+ -- as compiler building ASIS49+ null;50end if;5152-- GNAT/ASIS version check535455