[PATCH v2 2/2] gas: disable SFrame warnings if default-enabled
Jan Beulich
jbeulich@suse.com
Fri Sep 25 09:38:04 GMT 2026
On 25.09.2026 09:30, Sam James wrote:
> --- a/gas/gen-sframe.h
> +++ b/gas/gen-sframe.h
> @@ -21,6 +21,14 @@
> #ifndef GENSFRAME_H
> #define GENSFRAME_H
>
> +/* Warnings shouldn't be emitted for the default-enabled case, only when
> + --gsframe is explicitly passed by the user. */
> +#define sframe_as_warn(format, ...) \
> + do { \
> + if (flag_gen_sframe == GEN_SFRAME_ENABLED) \
> + as_warn (format, ##__VA_ARGS__); \
As per 26ea095fa700 ("gas/gen-sframe: avoid gcc extension using __VA_ARGS__")
please avoid using a gcc extension here.
Jan
More information about the Binutils
mailing list