aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/gcc.c')
-rw-r--r--gcc/gcc.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index ea49ec7..61afb74 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3742,6 +3742,12 @@ driver_handle_option (const struct cl_decoded_option *decoded,
do_save = false;
break;
+ case OPT_L:
+ /* Similarly, canonicalize -L for linkers that may not accept
+ separate arguments. */
+ save_switch (concat ("-L", arg, NULL), 0, NULL, validated);
+ return true;
+
case OPT_save_temps:
save_temps_flag = SAVE_TEMPS_CWD;
validated = true;
@@ -3772,7 +3778,6 @@ driver_handle_option (const struct cl_decoded_option *decoded,
processing. */
break;
- case OPT_specs:
case OPT_specs_:
{
struct user_specs *user = XNEW (struct user_specs);