This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, driver] -Wl, passing empty strings to ld
On 04/16/2010 08:09 AM, Jim Wilson wrote:
There is also still the problem that -Wa and -Wp are inconsistent with
-Wl, because -Wa and -Wp silently ignore empty strings, while -Wl does
not.
The difference is that -Wa and -Wp are processed by do_spec_1, while -Wl
isn't.
This patch would fix that, but who knows what might break.
Index: gcc.c
===================================================================
--- gcc.c (revision 158120)
+++ gcc.c (working copy)
@@ -5140,6 +5140,8 @@ do_spec_1 (const char *spec, int inswitc
int i;
int value;
+ arg_going = inswitch;
+
while ((c = *p++))
/* If substituting a switch, treat all chars like letters.
Otherwise, NL, SPC, TAB and % are special. */
Paolo
- References:
- [PATCH, driver] -Wl, passing empty strings to ld
- Re: [PATCH, driver] -Wl, passing empty strings to ld
- Re: [PATCH, driver] -Wl, passing empty strings to ld
- Re: [PATCH, driver] -Wl, passing empty strings to ld
- Re: [PATCH, driver] -Wl, passing empty strings to ld
- Re: [PATCH, driver] -Wl, passing empty strings to ld
- Re: [PATCH, driver] -Wl, passing empty strings to ld