Mercurial > hg > CbC > CbC_gcc
diff gcc/ada/gnatbind.adb @ 131:84e7813d76e9
gcc-8.2
author | mir3636 |
---|---|
date | Thu, 25 Oct 2018 07:37:49 +0900 |
parents | 04ced10e8804 |
children | 1830386684a0 |
line wrap: on
line diff
--- a/gcc/ada/gnatbind.adb Fri Oct 27 22:46:09 2017 +0900 +++ b/gcc/ada/gnatbind.adb Thu Oct 25 07:37:49 2018 +0900 @@ -6,7 +6,7 @@ -- -- -- B o d y -- -- -- --- Copyright (C) 1992-2017, Free Software Foundation, Inc. -- +-- Copyright (C) 1992-2018, Free Software Foundation, Inc. -- -- -- -- GNAT is free software; you can redistribute it and/or modify it under -- -- terms of the GNU General Public License as published by the Free Soft- -- @@ -167,55 +167,61 @@ -- -r switch is used. Not all restrictions are output for the reasons -- given below in the list, and this array is used to test whether -- the corresponding pragma should be listed. True means that it - -- should not be listed. + -- should be listed. - No_Restriction_List : constant array (All_Restrictions) of Boolean := - (No_Standard_Allocators_After_Elaboration => True, + Restrictions_To_List : constant array (All_Restrictions) of Boolean := + (No_Standard_Allocators_After_Elaboration => False, -- This involves run-time conditions not checkable at compile time - No_Anonymous_Allocators => True, + No_Anonymous_Allocators => False, -- Premature, since we have not implemented this yet - No_Exception_Propagation => True, + No_Exception_Propagation => False, -- Modifies code resulting in different exception semantics - No_Exceptions => True, + No_Exceptions => False, -- Has unexpected Suppress (All_Checks) effect - No_Implicit_Conditionals => True, + No_Implicit_Conditionals => False, + -- This could modify and pessimize generated code + + No_Implicit_Dynamic_Code => False, -- This could modify and pessimize generated code - No_Implicit_Dynamic_Code => True, + No_Implicit_Loops => False, -- This could modify and pessimize generated code - No_Implicit_Loops => True, - -- This could modify and pessimize generated code + No_Recursion => False, + -- Not checkable at compile time - No_Recursion => True, + No_Reentrancy => False, -- Not checkable at compile time - No_Reentrancy => True, + Max_Entry_Queue_Length => False, + -- Not checkable at compile time + + Max_Storage_At_Blocking => False, -- Not checkable at compile time - Max_Entry_Queue_Length => True, - -- Not checkable at compile time - - Max_Storage_At_Blocking => True, - -- Not checkable at compile time + No_Implementation_Restrictions => False, + -- Listing this one would cause a chicken&egg problem; the program + -- doesn't use implementation-defined restrictions, but after + -- applying the listed restrictions, it probably WILL use them, + -- so No_Implementation_Restrictions will cause an error. -- The following three should not be partition-wide, so the -- following tests are junk to be removed eventually ??? - No_Specification_Of_Aspect => True, + No_Specification_Of_Aspect => False, -- Requires a parameter value, not a count - No_Use_Of_Attribute => True, + No_Use_Of_Attribute => False, -- Requires a parameter value, not a count - No_Use_Of_Pragma => True, + No_Use_Of_Pragma => False, -- Requires a parameter value, not a count - others => False); + others => True); Additional_Restrictions_Listed : Boolean := False; -- Set True if we have listed header for restrictions @@ -279,14 +285,14 @@ -- Loop through restrictions for R in All_Restrictions loop - if not No_Restriction_List (R) + if Restrictions_To_List (R) and then Restriction_Could_Be_Set (R) then if not Additional_Restrictions_Listed then Write_Eol; Write_Line - ("The following additional restrictions may be applied to " - & "this partition:"); + ("-- The following additional restrictions may be applied " + & "to this partition:"); Additional_Restrictions_Listed := True; end if; @@ -330,9 +336,7 @@ then Output_File_Name_Seen := True; - if Argv'Length = 0 - or else (Argv'Length >= 1 and then Argv (1) = '-') - then + if Argv'Length = 0 or else Argv (1) = '-' then Fail ("output File_Name missing after -o"); else