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