This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Supply -v to linker also
- From: Devang Patel <dpatel at apple dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: Geoff Keating <geoffk at apple dot com>
- Date: Tue, 16 Nov 2004 16:41:40 -0800
- Subject: [PATCH] Supply -v to linker also
This small patch supplies -v command line option to linker program.
This allows user to see real ld arguments used by collect2.
2004-11-16 Devang Patel <dpatel@apple.com>
* gcc.c (process_command): Supply -v to linker.
Full bootstrapped and dejagnu test run is in progress on powerpc-darwin.
OK if it succeeds ?
Thanks,
-
Devang
Index: gcc.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/gcc.c,v
retrieving revision 1.437
diff -Idpatel.pbxuser -c -3 -p -r1.437 gcc.c
*** gcc.c 9 Nov 2004 10:12:16 -0000 1.437
--- gcc.c 17 Nov 2004 00:23:05 -0000
*************** warranty; not even for MERCHANTABILITY o
*** 3676,3681 ****
--- 3676,3682 ----
if (p[1] != 0)
break;
verbose_flag++;
+ add_linker_option ("-v", 2);
break;
case 'S':