Commit 1a025b05 by James Norris Committed by James Norris

rs6000.c (rs6000_offload_options): New.

	* config/rs6000/rs6000.c (rs6000_offload_options): New.
	(TARGET_OFFLOAD_OPTIONS): New.

From-SVN: r228653
parent 01a7166b
2015-10-09 James Norris <jnorris@codesourcery.com>
* config/rs6000/rs6000.c (rs6000_offload_options): New.
(TARGET_OFFLOAD_OPTIONS): New.
2015-10-09 Alexandre Oliva <aoliva@redhat.com> 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
PR middle-end/67891 PR middle-end/67891
...@@ -1690,6 +1690,9 @@ static const struct attribute_spec rs6000_attribute_table[] = ...@@ -1690,6 +1690,9 @@ static const struct attribute_spec rs6000_attribute_table[] =
#define TARGET_LIBGCC_SHIFT_COUNT_MODE rs6000_abi_word_mode #define TARGET_LIBGCC_SHIFT_COUNT_MODE rs6000_abi_word_mode
#undef TARGET_UNWIND_WORD_MODE #undef TARGET_UNWIND_WORD_MODE
#define TARGET_UNWIND_WORD_MODE rs6000_abi_word_mode #define TARGET_UNWIND_WORD_MODE rs6000_abi_word_mode
#undef TARGET_OFFLOAD_OPTIONS
#define TARGET_OFFLOAD_OPTIONS rs6000_offload_options
/* Processor table. */ /* Processor table. */
...@@ -9530,6 +9533,16 @@ rs6000_abi_word_mode (void) ...@@ -9530,6 +9533,16 @@ rs6000_abi_word_mode (void)
return TARGET_32BIT ? SImode : DImode; return TARGET_32BIT ? SImode : DImode;
} }
/* Implement the TARGET_OFFLOAD_OPTIONS hook. */
static char *
rs6000_offload_options (void)
{
if (TARGET_64BIT)
return xstrdup ("-foffload-abi=lp64");
else
return xstrdup ("-foffload-abi=ilp32");
}
/* On rs6000, function arguments are promoted, as are function return /* On rs6000, function arguments are promoted, as are function return
values. */ values. */
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