This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[micro-PATCH] Call expandargv in gcov
- From: Tristan Gingold <gingold at adacore dot com>
- To: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 20 Aug 2008 14:48:03 +0200
- Subject: [micro-PATCH] Call expandargv in gcov
Hi,
in order to bypass exec(2) arguments limitation (E2BIG) for gcov, add
a call to expandargv.
Regtested on x86-64 linux.
Tristan.
2008-08-19 Tristan Gingold <gingold@adacore.com>
* gcov.c (main): Call expandargv.
--- gcc/gcov.c (revision 139223)
+++ gcc/gcov.c (working copy)
@@ -361,6 +361,9 @@
gcc_init_libintl ();
+ /* Handle response files. */
+ expandargv (&argc, &argv);
+
argno = process_args (argc, argv);
if (optind == argc)
print_usage (true);