libsoup3: update to 3.6.0; fix GTK2/3 app startup
[oi-userland.git] / components / developer / gcc-10 / patches / 0032-Convert-unsupported-use-of-msave-args-to-a-warning.patch
blobb86b7c6fe1c869bb21de881b0a1ec0b8c75c56b5
1 From 66caeb335b91931c5fbe9a2baab248cc5337710f Mon Sep 17 00:00:00 2001
2 From: Andy Fiddaman <omnios@citrus-it.co.uk>
3 Date: Sat, 11 Apr 2020 12:03:20 +0000
4 Subject: [PATCH 32/34] Convert unsupported use of -msave-args to a warning
6 ---
7 gcc/config/i386/i386-options.c | 6 ++++--
8 1 file changed, 4 insertions(+), 2 deletions(-)
10 diff --git a/gcc/config/i386/i386-options.c b/gcc/config/i386/i386-options.c
11 index 621867a91cf..bc8cca2544a 100644
12 --- a/gcc/config/i386/i386-options.c
13 +++ b/gcc/config/i386/i386-options.c
14 @@ -2505,8 +2505,10 @@ ix86_option_override_internal (bool main_args_p,
15 &= ~((OPTION_MASK_ISA_BMI | OPTION_MASK_ISA_BMI2 | OPTION_MASK_ISA_TBM)
16 & ~opts->x_ix86_isa_flags_explicit);
18 - if (!TARGET_64BIT_P (opts->x_ix86_isa_flags) && TARGET_SAVE_ARGS)
19 - error ("-msave-args only works in x32 or 64-bit mode");
20 + if (!TARGET_64BIT_P (opts->x_ix86_isa_flags) && TARGET_SAVE_ARGS) {
21 + warning (0, "-msave-args only works in x32 or 64-bit mode; ignoring");
22 + opts->x_target_flags &= ~MASK_SAVE_ARGS;
23 + }
25 /* Validate -mpreferred-stack-boundary= value or default it to
26 PREFERRED_STACK_BOUNDARY_DEFAULT. */
27 --
28 2.31.1