Commit 567f0b17 by Edmar Wienskoski Committed by Joseph Myers

re PR target/36425 (Option -mno-isel not working)

2008-06-11  Edmar Wienskoski  <edmar@freescale.com>

	PR target/36425
	* config/rs6000/rs6000.c (rs6000_override_options): Set
	rs6000_isel conditionally to the absence of comand line
	override.
	* config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
	Remove duplicate rs6000_isel setting.
	* config/rs6000/eabispe.h: Ditto.

testsuite:
2008-06-11  Edmar Wienskoski  <edmar@freescale.com>

	* gcc.target/powerpc/e500-1.c: New test case to verify
	mno-isel option.

From-SVN: r136681
parent 4653cae5
2008-06-11 Edmar Wienskoski <edmar@freescale.com>
PR target/36425
* config/rs6000/rs6000.c (rs6000_override_options): Set
rs6000_isel conditionally to the absence of comand line
override.
* config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
Remove duplicate rs6000_isel setting.
* config/rs6000/eabispe.h: Ditto.
2008-06-11 Richard Guenther <rguenther@suse.de>
* alias.c (get_alias_set): Use the element alias-set for arrays.
......
......@@ -37,8 +37,6 @@
rs6000_float_gprs = 1; \
if (!rs6000_explicit_options.spe) \
rs6000_spe = 1; \
if (!rs6000_explicit_options.isel) \
rs6000_isel = 1; \
if (target_flags & MASK_64BIT) \
error ("-m64 not supported in this configuration")
......
......@@ -36,8 +36,6 @@
rs6000_float_gprs = 1; \
if (!rs6000_explicit_options.spe) \
rs6000_spe = 1; \
if (!rs6000_explicit_options.isel) \
rs6000_isel = 1; \
if (target_flags & MASK_64BIT) \
error ("-m64 not supported in this configuration")
......
......@@ -1553,7 +1553,7 @@ rs6000_override_options (const char *default_cpu)
}
}
if (TARGET_E500)
if (TARGET_E500 && !rs6000_explicit_options.isel)
rs6000_isel = 1;
if (rs6000_cpu == PROCESSOR_PPCE300C2 || rs6000_cpu == PROCESSOR_PPCE300C3)
......
2008-06-11 Edmar Wienskoski <edmar@freescale.com>
PR target/36425
* gcc.target/powerpc/e500-1.c: New test case to verify
mno-isel option.
2008-06-11 Eric Botcazou <ebotcazou@adacore.com>
* gnat.dg/specs/varsize_copy.ad[sb]: New test.
......
/* Test functioning of command option -mno-isel */
/* { dg-do compile { target powerpc*-*-linux* } } */
/* { dg-options "-O2 -mno-isel" } */
/* { dg-final { scan-assembler-not "isel" } } */
int
foo (int x, int y)
{
if (x < y)
return x;
else
return y;
}
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