aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-constexpr.h
diff options
context:
space:
mode:
authorPiotr Trojanek <trojanek@adacore.com>2022-12-20 17:39:04 +0100
committerMarc Poulhiès <poulhies@adacore.com>2023-01-05 15:30:02 +0100
commit9ff806899bfa38ade0bddbdfb413ca3444425bcf (patch)
treeb6a96085752399459cf306ff655e65a09abac606 /gcc/rust/backend/rust-constexpr.h
parent6147feb54c7473033c5e9344fdd834c417820af4 (diff)
downloadgcc-9ff806899bfa38ade0bddbdfb413ca3444425bcf.zip
gcc-9ff806899bfa38ade0bddbdfb413ca3444425bcf.tar.gz
gcc-9ff806899bfa38ade0bddbdfb413ca3444425bcf.tar.bz2
ada: Flag renaming-as-spec as a body to inline
For GNAT the frontend is only inlining subprograms with explicit specs, including specs completed with renaming-as-body. For GNATprove the frontend must also inline renamings acting as specs. Otherwise, we will try to build a body-to-inline with code that is can't handle unusual subprogram renamings, e.g. those of the form "object.call". gcc/ada/ * freeze.adb (Build_Renamed_Body): Rewrite subprogram renaming to subprogram declaration early and then set the Body_To_Inling flag.
Diffstat (limited to 'gcc/rust/backend/rust-constexpr.h')
0 files changed, 0 insertions, 0 deletions