aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@adacore.com>2022-01-05 09:07:33 +0000
committerOlivier Hainque <hainque@adacore.com>2022-01-11 08:44:45 +0000
commit8e86086bd33134467cc9c2a75327d1238dc71df9 (patch)
tree729d7f808c97e024ca65f09f2a83da9ca6f950da
parent14cb768ef32ab978a0f5ce2485fa4213c5167fb6 (diff)
downloadgcc-8e86086bd33134467cc9c2a75327d1238dc71df9.zip
gcc-8e86086bd33134467cc9c2a75327d1238dc71df9.tar.gz
gcc-8e86086bd33134467cc9c2a75327d1238dc71df9.tar.bz2
State --sysroot option as validated once processed
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.
-rw-r--r--gcc/gcc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index d4c8746..29fa0f7 100644
--- 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_: