Javier Miranda a99a56a091 ada: Unsigned_Base_Range aspect (part 6)
Revert patch for Is_Modular_Integer_Type and Is_Signed_Integer_Type;
add new synthesized predicates Has_Modular_Operations and
Has_Overflow_Operations, and adjust the frontend sources
to rely on them.

gcc/ada/ChangeLog:

	* einfo.ads (Has_Unsigned_Base_Range_Aspect): Update documentation.
	(Has_Modular_Operations): New synthesized predicate.
	(Has_Overflow_Operations): New synthesized predicate.
	* einfo-utils.ads (Has_Modular_Operations): New function.
	(Has_Overflow_Operations): New function.
	* einfo-utils.adb (Is_Modular_Integer_Type): Undo previous patch.
	(Is_Signed_Integer_Type): Undo previous patch.
	(Has_Modular_Operations): New function.
	(Has_Overflow_Operations): New function.
	* checks.adb (Determine_Range): Replace selected occurrences of calls to
	Is_Modular_Integer_Type by calls to Has_Modular_Operations, and calls to
	Is_Signed_Integer_Type by calls to Has Overflow_Operations.
	(Enable_Range_Check): Ditto.
	(Insert_Valid_Check): Ditto.
	* exp_aggr.adb (Others_Check): Ditto.
	* exp_attr.adb (Expand_N_Attribute_Reference [Attribute_Pred,
	Attribute_Succ]): Ditto.
	* exp_ch4.adb (Expand_Compare_Minimize_Eliminate_Overflow): Ditto.
	(Size_In_Storage_Elements): Ditto.
	(Expand_N_Op_Abs): Ditto.
	(Expand_N_Op_Expon): Ditto.
	(Expand_N_Op_Minus): Ditto.
	(Expand_N_Op_Multiply): Ditto.
	(Expand_N_Op_Subtract): Ditto.
	* freeze.adb (Freeze_Entity): Ditto.
	* sem_aggr.adb (Report_Null_Array_Constraint_Error): Ditto plus
	report specific error for index with unsigned_base_range aspect.
	* sem_attr.adb (Check_Modular_Integer_Type): Ditto.
	(Analyze_Attribute [Attribute_Pred, Attribute_Succ, Attribute_
	Range_Length, Attribute_Small, Attribute_Reduce]): Ditto.
	* sem_ch12.adb (Instantiate_Type): Ditto.
	(Validate_Formal_Type_Default): Ditto.
	* sem_ch13.adb (Valid_Empty): Ditto.
	* sem_ch2.adb (Analyze_Integer_Literal): Ditto.
	* sem_ch3.adb (Unsigned_Base_Range_Type_Declaration): Set attribute
	Has_Unsigned_Base_Range_Aspect on the implicit base, and set Etype
	of its first subtype E_Modular_Integer_Subtype.
	* sem_ch4.adb (Analyze_Call): Ditto.
	* sem_eval.adb (Check_Non_Static_Context_For_Overflow): Ditto.
	(Eval_Arithmetic_Op): Ditto.
	(Eval_Integer_Literal): Ditto.
	(Eval_Logical_Op): Ditto.
	(Eval_Op_Expon): Ditto.
	(Eval_Op_Not): Ditto.
	(Eval_Unary_Op): Ditto.
	(Fold_Shift): Ditto.
	(Test_Expression_Is_Foldable): Ditto.
	* sem_intr.adb (Check_Shift): Ditto.
	* sem_prag.adb (Analyze_Pragma [Pragma_Unsigned_Base_Range]): Add
	assertion.
	* sem_res.adb (Resolve_Logical_Op): Ditto.
	(Resolve_Unary_Op): Ditto.
	(Set_String_Literal_Subtype): Ditto.
	* sem_type.adb (Covers): Ditto.
	(Specific_Type): Ditto.
	(Valid_Boolean_Arg): Ditto.
	* sem_util.adb (Wrong_Type): Ditto
	* style.adb (Check_Boolean_Operator): Ditto.
2025-12-05 13:22:54 +01:00
2025-06-03 00:18:06 +00:00
2025-12-01 00:16:36 +00:00
2025-12-05 00:16:26 +00:00
2025-08-29 00:19:55 +00:00
2025-06-23 00:16:33 +00:00
2024-04-16 00:18:06 +00:00
2025-12-02 09:47:45 +00:00
2025-01-02 11:59:57 +01:00
2025-11-20 00:19:40 +00:00
2025-11-07 00:20:18 +00:00
2025-12-02 09:47:45 +00:00
2025-11-22 00:20:52 +00:00
2025-11-11 00:21:25 +00:00
2025-01-02 11:59:57 +01:00
2025-11-04 00:20:26 +00:00
2025-12-01 11:41:53 +01:00
2025-11-28 00:21:32 +00:00
2025-11-30 00:16:27 +00:00
2025-11-12 00:22:41 +00:00
2025-11-24 00:18:45 +00:00
2025-11-29 12:28:38 +01:00
2025-12-05 00:16:26 +00:00
2025-11-04 00:20:26 +00:00
2025-12-01 00:16:36 +00:00
2025-11-20 00:19:40 +00:00
2025-11-04 00:20:26 +00:00
2025-11-04 00:20:26 +00:00
2025-11-04 00:20:26 +00:00
2025-12-03 00:16:28 +00:00
2025-11-04 00:20:26 +00:00
2025-12-05 00:16:26 +00:00
2025-11-04 00:20:26 +00:00
2025-11-04 00:20:26 +00:00
2025-09-02 00:19:26 +00:00
2025-11-04 00:20:26 +00:00
2025-12-01 11:41:53 +01:00
2025-10-11 11:08:01 +02:00
2025-11-30 01:52:27 +01:00
2025-11-30 01:52:27 +01:00
2025-11-30 01:52:24 +01:00
2025-11-30 01:52:27 +01:00
2025-11-30 01:52:27 +01:00
2025-11-30 01:52:27 +01:00
2025-11-30 01:52:24 +01:00
2025-10-11 11:08:01 +02:00

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.
Description
No description provided
Readme 2.7 GiB
Languages
C++ 30.7%
C 30.1%
Ada 14.4%
D 6.1%
Go 5.7%
Other 12.5%