A List_Name_Count variable is initialized with zero, then incremented
and decremented in a stack-like manner, so it should never become
negative.
This gives us extra confidence, but otherwise the behaviour is not
affected.
Tested on x86_64-pc-linux-gnu, committed on trunk
gcc/ada/
* pprint.adb (List_Name_Count): Change type from Integer to
Natural.
diff --git a/gcc/ada/pprint.adb b/gcc/ada/pprint.adb
--- a/gcc/ada/pprint.adb
+++ b/gcc/ada/pprint.adb
@@ -36,7 +36,7 @@ with Uintp; use Uintp;
package body Pprint is
- List_Name_Count : Integer := 0;
+ List_Name_Count : Natural := 0;
-- Counter used to prevent infinite recursion while computing name of
-- complex expressions.