From: "Pekka Seppänen" <pexu@gcc.mail.kapsi.fi>
To: gcc-patches@gcc.gnu.org
Subject: [PATCH] Use expandargv on gcc-ar [PR77576]
Date: Wed, 24 May 2023 15:21:22 +0300 [thread overview]
Message-ID: <76a71ea623f25a11b3e9bdeefcebe047@gcc.mail.kapsi.fi> (raw)
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
reply other threads:[~2023-05-24 12:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=76a71ea623f25a11b3e9bdeefcebe047@gcc.mail.kapsi.fi \
--to=pexu@gcc.mail.kapsi.fi \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).