Skip to content

Commit

Permalink
PR lto/69254
Browse files Browse the repository at this point in the history
	* lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
	(append_compiler_options): Handle -fcilkplus.
	(append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232829 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
jakub committed Jan 26, 2016
1 parent 9b013f6 commit 105958a
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2016-01-26 Jakub Jelinek <jakub@redhat.com>

PR lto/69254
* lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
(append_compiler_options): Handle -fcilkplus.
(append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.

2016-01-26 Nick Clifton <nickc@redhat.com>

PR target/66655
Expand Down
11 changes: 11 additions & 0 deletions gcc/lto-wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,7 @@ merge_and_complain (struct cl_decoded_option **decoded_options,
case OPT_fwrapv:
case OPT_fopenmp:
case OPT_fopenacc:
case OPT_fcilkplus:
case OPT_fcheck_pointer_bounds:
/* For selected options we can merge conservatively. */
for (j = 0; j < *decoded_options_count; ++j)
Expand Down Expand Up @@ -505,6 +506,7 @@ append_compiler_options (obstack *argv_obstack, struct cl_decoded_option *opts,
case OPT_fwrapv:
case OPT_fopenmp:
case OPT_fopenacc:
case OPT_fcilkplus:
case OPT_ftrapv:
case OPT_fstrict_overflow:
case OPT_foffload_abi_:
Expand Down Expand Up @@ -558,6 +560,15 @@ append_linker_options (obstack *argv_obstack, struct cl_decoded_option *opts,
??? We fail to diagnose a possible mismatch here. */
continue;

case OPT_fopenmp:
case OPT_fopenacc:
case OPT_fcilkplus:
/* Ignore -fno-XXX form of these options, as otherwise
corresponding builtins will not be enabled. */
if (option->value == 0)
continue;
break;

default:
break;
}
Expand Down

0 comments on commit 105958a

Please sign in to comment.