From c4f6330722a26b91d07c9497ebd81efd64acbdea Mon Sep 17 00:00:00 2001 From: Uros Bizjak Date: Wed, 4 Nov 2020 09:59:39 +0100 Subject: [PATCH] i386: Fix Intel MCU psABI comment w.r.t DEFAULT_PCC_STRUCT_RETURN MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2020-11-04 Uroš Bizjak gcc/ * config/i386/i386-options.c (ix86_recompute_optlev_based_flags): Fix Intel MCU psABI comment w.r.t DEFAULT_PCC_STRUCT_RETURN. --- gcc/config/i386/i386-options.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/i386/i386-options.c b/gcc/config/i386/i386-options.c index 4e1dd7ccc93..4128e933291 100644 --- a/gcc/config/i386/i386-options.c +++ b/gcc/config/i386/i386-options.c @@ -1734,7 +1734,7 @@ ix86_recompute_optlev_based_flags (struct gcc_options *opts, if (opts->x_flag_pcc_struct_return == 2) { /* Intel MCU psABI specifies that -freg-struct-return should - be on. Instead of setting DEFAULT_PCC_STRUCT_RETURN to 1, + be on. Instead of setting DEFAULT_PCC_STRUCT_RETURN to 0, we check -miamcu so that -freg-struct-return is always turned on if -miamcu is used. */ if (TARGET_IAMCU_P (opts->x_target_flags)) -- 2.30.2