aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-expr.cc
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2023-09-27 12:19:53 +0200
committerMarc Poulhiès <dkm@gcc.gnu.org>2025-01-06 10:14:47 +0100
commit92d50b9d6478d58a99012f3c05bd144b7fcd8937 (patch)
tree1d3408071e633ebad58b19a38b2d7c63449fdbce /gcc/fortran/trans-expr.cc
parenta172d6cfa0634d932d30e36636d1bd79ae70c27c (diff)
downloadgcc-92d50b9d6478d58a99012f3c05bd144b7fcd8937.zip
gcc-92d50b9d6478d58a99012f3c05bd144b7fcd8937.tar.gz
gcc-92d50b9d6478d58a99012f3c05bd144b7fcd8937.tar.bz2
ada: Avoid null-exclusion checks for Node_Field_Table
By generating the type of Node_Field_Table with a "not null" qualifier we check the null exclusion of its elements only once, at the object declaration. Tiny performance improvement for the debug builds (because in production builds checks are disabled anyway); semantics is unaffected. gcc/ada/ChangeLog: * gen_il-gen.adb (Put_Tables): Add "not null" to the generated code. * rtsfind.adb (Cstring_Ptr): Same for table with predefined RE_Id error messages. * impunit.adb (Aunit_Record): Same for array of alternative unit names.
Diffstat (limited to 'gcc/fortran/trans-expr.cc')
0 files changed, 0 insertions, 0 deletions