]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
State --sysroot option as validated once processed
authorOlivier Hainque <hainque@adacore.com>
Wed, 5 Jan 2022 09:07:33 +0000 (09:07 +0000)
committerOlivier Hainque <hainque@adacore.com>
Tue, 11 Jan 2022 08:44:45 +0000 (08:44 +0000)
Since we now save the option in the "switches" table
to let specs use it more generally, we need to explicitly
state that the option was validated else the driver
will consider it "unrecognized".

2022-01-05  Olivier Hainque  <hainque@adacore.com>

* gcc.c (driver_handle_option): State --sysroot as
validated.

gcc/gcc.c

index d4c8746b0aa322286decf92aa72a12f0a393b655..29fa0f7ddcedae64699ab41a5060a4982b66bfd3 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -4495,6 +4495,7 @@ driver_handle_option (struct gcc_options *opts,
       /* Saving this option is useful to let self-specs decide to
         provide a default one.  */
       do_save = true;
+      validated = true;
       break;
 
     case OPT_time_: