Skip to content

Commit

Permalink
opts.c (finish_options): Imply -ffat-lto-objects with -fno-use-linker…
Browse files Browse the repository at this point in the history
…-plugin.

	* opts.c (finish_options): Imply -ffat-lto-objects with -fno-use-linker-plugin.
	* common.opt (fuse-linker-plugin): Add var.

From-SVN: r205110
  • Loading branch information
Jan Hubicka authored and Jan Hubicka committed Nov 20, 2013
1 parent 0c509e8 commit 063d671
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2013-11-20 Jan Hubicka <[email protected]>

* opts.c (finish_options): Imply -ffat-lto-objects with -fno-use-linker-plugin.
* common.opt (fuse-linker-plugin): Add var.

2013-11-20 Ilya Enkovich <[email protected]>

* dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
Expand Down
2 changes: 1 addition & 1 deletion gcc/common.opt
Original file line number Diff line number Diff line change
Expand Up @@ -2247,7 +2247,7 @@ Common Negative(fuse-ld=bfd)
Use the gold linker instead of the default linker

fuse-linker-plugin
Common Undocumented
Common Undocumented Var(flag_use_linker_plugin)

; Positive if we should track variables, negative if we should run
; the var-tracking pass only to discard debug annotations, zero if
Expand Down
7 changes: 5 additions & 2 deletions gcc/opts.c
Original file line number Diff line number Diff line change
Expand Up @@ -809,10 +809,13 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
#else
error_at (loc, "LTO support has not been enabled in this configuration");
#endif
if (!opts->x_flag_fat_lto_objects && !HAVE_LTO_PLUGIN)
if (!opts->x_flag_fat_lto_objects
&& (!HAVE_LTO_PLUGIN
|| (opts_set->x_flag_use_linker_plugin
&& !opts->x_flag_use_linker_plugin)))
{
if (opts_set->x_flag_fat_lto_objects)
error_at (loc, "-fno-fat-lto-objects are supported only with linker plugin.");
error_at (loc, "-fno-fat-lto-objects are supported only with linker plugin");
opts->x_flag_fat_lto_objects = 1;
}
}
Expand Down

0 comments on commit 063d671

Please sign in to comment.