[PATCH] gcc-ar: Handle response files properly [PR77576]

Costas Argyris costas.argyris@gmail.com
Sat Jul 1 21:45:50 GMT 2023


Basically implementing what Andrew said in the PR:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77576

If @file has been passed to gcc-ar, do the following:

1) Expand it to get an argv without any @files.
2) Then apply the plugin modifications to argv.
3) Create temporary response file.
4) Put the modified argv in the temporary file.
5) Call ar with @tmp.
6) Delete the temporary response file.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gcc-ar-Handle-response-files-properly-PR77576.patch
Type: application/octet-stream
Size: 2896 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20230701/68388cfa/attachment.obj>


More information about the Gcc-patches mailing list