diff mbox

[options,handling] Concatenate -F with its argument

Message ID 51BC8019-C0EA-4581-A894-48CED8ECA2BE@sandoe-acoustics.co.uk
State New
Headers show

Commit Message

Iain Sandoe Feb. 11, 2011, 12:35 p.m. UTC
Hi,

Darwin's ld won't accept -F separated from its following path argument.

The behavior of trunk differs from 4.5.x, which does not separate the  
argument.

..  I just followed the example of -L ...

OK for trunk?
Iain

gcc:

	* gcc.c (driver_handle_option): Concatenate the argument to -F with  
the switch.

Comments

Joseph Myers Feb. 11, 2011, 5:36 p.m. UTC | #1
On Fri, 11 Feb 2011, IainS wrote:

> Hi,
> 
> Darwin's ld won't accept -F separated from its following path argument.
> 
> The behavior of trunk differs from 4.5.x, which does not separate the
> argument.
> 
> ..  I just followed the example of -L ...
> 
> OK for trunk?

OK.
diff mbox

Patch

Index: gcc/gcc.c
===================================================================
--- gcc/gcc.c	(revision 170045)
+++ gcc/gcc.c	(working copy)
@@ -3330,6 +3330,11 @@  driver_handle_option (struct gcc_options *opts,
        save_switch (concat ("-L", arg, NULL), 0, NULL, validated);
        return true;

+    case OPT_F:
+      /* Likewise -F.  */
+      save_switch (concat ("-F", arg, NULL), 0, NULL, validated);
+      return true;
+
      case OPT_save_temps:
        save_temps_flag = SAVE_TEMPS_CWD;
        validated = true;