diff options
author | Steve Baird <baird@adacore.com> | 2021-05-11 11:43:31 -0700 |
---|---|---|
committer | Pierre-Marie de Rodat <derodat@adacore.com> | 2021-07-06 14:46:59 +0000 |
commit | fb632ef567d8af061e7f73fcf7bb2b75796cdfb4 (patch) | |
tree | d86b1f23fe3daf03c5c6830307fcd265d50586d7 /gcc/builtins.c | |
parent | 8ff47b3f88330ae222d393883d6b4a9c5393dc69 (diff) | |
download | gcc-fb632ef567d8af061e7f73fcf7bb2b75796cdfb4.zip gcc-fb632ef567d8af061e7f73fcf7bb2b75796cdfb4.tar.gz gcc-fb632ef567d8af061e7f73fcf7bb2b75796cdfb4.tar.bz2 |
[Ada] Implement missing constraint checks for default streaming operations
gcc/ada/
* sem_ch5.adb (Analyze_Assignment): Add new nested function,
Omit_Range_Check_For_Streaming, and make call to
Apply_Scalar_Range_Check conditional on the result of this new
function.
* exp_attr.adb (Compile_Stream_Body_In_Scope): Eliminate Check
parameter, update callers. The new
Omit_Range_Check_For_Streaming parameter takes the place of the
old use of calling Insert_Action with Suppress => All_Checks,
which was insufficiently precise (it did not allow suppressing
checks for one component but not for another).
(Expand_N_Attribute_Reference): Eliminate another "Suppress =>
All_Checks" from an Insert_Action call, this one in generating
the expansion of a T'Read attribute reference for a composite
type T.
Diffstat (limited to 'gcc/builtins.c')
0 files changed, 0 insertions, 0 deletions