* [PATCH] Use expandargv on gcc-ar [PR77576]
@ 2023-05-24 12:21 Pekka Seppänen
0 siblings, 0 replies; only message in thread
From: Pekka Seppänen @ 2023-05-24 12:21 UTC (permalink / raw)
To: gcc-patches
Call expandargv prior attempting to prepend a dash to the first
argument. When using response files the first character is never a dash
but an at-sign.
PR gcc/77576
gcc/ChangeLog:
* gcc-ar.cc (main): Call expandargv.
---
gcc/gcc-ar.cc | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/gcc-ar.cc b/gcc/gcc-ar.cc
index 5e5b63e1988..2a1e99cace7 100644
--- a/gcc/gcc-ar.cc
+++ b/gcc/gcc-ar.cc
@@ -136,6 +136,8 @@ main (int ac, char **av)
int exit_code = FATAL_EXIT_CODE;
int i;
+ expandargv(&ac, &av);
+
setup_prefixes (av[0]);
/* Not using getopt for now. */
--
2.34.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-05-24 12:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-24 12:21 [PATCH] Use expandargv on gcc-ar [PR77576] Pekka Seppänen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).