[V3 21/36] [SFrame-V3] gas: sframe: add new backend hook sframe_support_flex_fde_p for FLEX FDEs
Jan Beulich
jbeulich@suse.com
Fri Jan 16 08:07:55 GMT 2026
On 13.01.2026 12:12, Indu Bhagat wrote:
> --- a/gas/config/tc-aarch64.c
> +++ b/gas/config/tc-aarch64.c
> @@ -9282,6 +9282,14 @@ aarch64_sframe_ra_tracking_p (void)
> return true;
> }
>
> +/* Whether SFrame FDE of type SFRAME_FDE_TYPE_FLEX be generated. */
> +
> +bool
> +aarch64_support_flex_fde_p (void)
> +{
> + return false;
> +}
Why a full-fledged function when ...
> --- a/gas/config/tc-aarch64.h
> +++ b/gas/config/tc-aarch64.h
> @@ -339,6 +339,10 @@ extern offsetT aarch64_sframe_cfa_ra_offset (void);
> unsigned char aarch64_sframe_get_abi_arch (void);
> #define sframe_get_abi_arch aarch64_sframe_get_abi_arch
>
> +/* Whether SFrame FDE of type SFRAME_FDE_TYPE_FLEX be generated. */
> +extern bool aarch64_support_flex_fde_p (void);
> +#define sframe_support_flex_fde_p aarch64_support_flex_fde_p
... this could simply evaluate to false? By making the "false" visible to
the compiler at the use sites, you'd offer it DCE opportunities even without
LTO.
Jan
More information about the Binutils
mailing list