Commit 595c8dfa by Andi Kleen Committed by Andi Kleen

Fix -fno-lto (PR lto/46905)

gcc/

2010-12-19  Andi Kleen	<ak@linux.intel.com>

	PR lto/46905
	* collect2.c (main): Handle -fno-lto.
	* opts.c (common_handle_option): Handle -fno-lto.

From-SVN: r168071
parent ef7ed5df
2010-12-19 Andi Kleen <ak@linux.intel.com>
PR lto/46905
* collect2.c (main): Handle -fno-lto.
* opts.c (common_handle_option): Handle -fno-lto.
2010-12-19 Eric Botcazou <ebotcazou@adacore.com>
PR target/46729
......@@ -1211,6 +1211,8 @@ main (int argc, char **argv)
else if ((! strncmp (argv[i], "-flto=", 6)
|| ! strcmp (argv[i], "-flto")) && ! use_plugin)
lto_mode = LTO_MODE_WHOPR;
else if (!strncmp (argv[i], "-fno-lto", 8))
lto_mode = LTO_MODE_NONE;
else if (! strcmp (argv[i], "-plugin"))
{
use_plugin = true;
......
......@@ -1670,7 +1670,7 @@ common_handle_option (struct gcc_options *opts,
break;
case OPT_flto:
opts->x_flag_lto = "";
opts->x_flag_lto = value ? "" : NULL;
break;
case OPT_w:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment