Skip to content

Commit

Permalink
rs6000: Don't clear TARGET_ISEL implicitly
Browse files Browse the repository at this point in the history
We want to actually use isel, so we shouldn't disable it.  It is
already not set by default on CPUs that don't have it, or where we
do not want to use it.


	* config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
	disable isel if it was not set explicitly.


git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254485 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
segher committed Nov 7, 2017
1 parent 278d139 commit 8efdc82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
5 changes: 5 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2017-11-06 Segher Boessenkool <segher@kernel.crashing.org>

* config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
disable isel if it was not set explicitly.

2017-11-06 James Bowman <james.bowman@ftdichip.com>

* gcc/dwarf2out.c (modified_type_die): Retain ADDR_SPACE
Expand Down
12 changes: 1 addition & 11 deletions gcc/config/rs6000/rs6000.c
Original file line number Diff line number Diff line change
Expand Up @@ -4798,10 +4798,7 @@ rs6000_option_override_internal (bool global_init_p)
/* For the E500 family of cores, reset the single/double FP flags to let us
check that they remain constant across attributes or pragmas. Also,
clear a possible request for string instructions, not supported and which
we might have silently queried above for -Os.

For other families, clear ISEL in case it was set implicitly.
*/
we might have silently queried above for -Os. */

switch (rs6000_cpu)
{
Expand All @@ -4811,19 +4808,12 @@ rs6000_option_override_internal (bool global_init_p)
case PROCESSOR_PPCE500MC64:
case PROCESSOR_PPCE5500:
case PROCESSOR_PPCE6500:

rs6000_single_float = 0;
rs6000_double_float = 0;

rs6000_isa_flags &= ~OPTION_MASK_STRING;

break;

default:

if (cpu_index >= 0 && !(rs6000_isa_flags_explicit & OPTION_MASK_ISEL))
rs6000_isa_flags &= ~OPTION_MASK_ISEL;

break;
}

Expand Down

0 comments on commit 8efdc82

Please sign in to comment.