mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 03:46:53 -05:00
a99a56a09190ff2a8bb26588e1379077dc0ae9e1
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.
…
…
…
…
…
…
…
…
…
…
…
…
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
Languages
C++
30.7%
C
30.1%
Ada
14.4%
D
6.1%
Go
5.7%
Other
12.5%