This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix -flto=N parsing


This fixes an oversight when doing s/-fwhopr/-flto/, the character
index of =N parsing didn't get updated.

Bootstrap-lto tested, committed as obvious.

Richard.

2010-11-18  Richard Guenther  <rguenther@suse.de>

	* lto-wrapper.c (run_gcc): Fix -flto=N parsing.

Index: gcc/lto-wrapper.c
===================================================================
*** gcc/lto-wrapper.c	(revision 166897)
--- gcc/lto-wrapper.c	(working copy)
*************** run_gcc (unsigned argc, char *argv[])
*** 383,389 ****
  		  }
  		else
  		  {
! 		    parallel = atoi (option+8);
  		    if (parallel <= 1)
  		      parallel = 0;
  		  }
--- 383,389 ----
  		  }
  		else
  		  {
! 		    parallel = atoi (option + 6);
  		    if (parallel <= 1)
  		      parallel = 0;
  		  }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]