diff mbox series

rs6000: Allow --with-cpu=power10

Message ID 20200623182542.106709-1-acsawdey@linux.ibm.com
State New
Headers show
Series rs6000: Allow --with-cpu=power10 | expand

Commit Message

Aaron Sawdey June 23, 2020, 6:25 p.m. UTC
Update config.gcc so that we can use --with-cpu=power10.

I've tested that this does do the expected thing 
with --with-cpu=power10 and also that it still builds and
bootstraps correctly using --with-cpu=power9 on power9. If there isn't
any other testing I need to do for this, ok for trunk?

Thanks!
   Aaron

	* config.gcc: Identify power10 as a 64-bit processor and as valid
	for --with-cpu and --with-tune.
---
 gcc/config.gcc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Segher Boessenkool June 23, 2020, 7:08 p.m. UTC | #1
Hi!

On Tue, Jun 23, 2020 at 01:25:42PM -0500, Aaron Sawdey via Gcc-patches wrote:
> Update config.gcc so that we can use --with-cpu=power10.

> 	* config.gcc: Identify power10 as a 64-bit processor and as valid
> 	for --with-cpu and --with-tune.

> diff --git a/gcc/config.gcc b/gcc/config.gcc
> index 365263a0f46..829b6f757f2 100644
> --- a/gcc/config.gcc
> +++ b/gcc/config.gcc
> @@ -514,7 +514,7 @@ powerpc*-*-*)
>  	extra_headers="${extra_headers} ppu_intrinsics.h spu2vmx.h vec_types.h si2vmx.h"
>  	extra_headers="${extra_headers} amo.h"
>  	case x$with_cpu in
> -	    xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[3456789]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|xe6500|xfuture)
> +	    xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[3456789]|xpower10|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|xe6500|xfuture)

Ah, "xfuture", that's why I missed this.  Ugh.

Please remove that "xfuture" entry?

> @@ -4912,7 +4912,7 @@ case "${target}" in
>  				eval "with_$which=405"
>  				;;
>  			"" | common | native \
> -			| power[3456789] | power5+ | power6x \
> +			| power[3456789] | power10 | power5+ | power6x \

And this one never had a future.  Good.

Okay for trunk with that change.  Thanks!

(I'll do the backport to 10, fold it in with the rest).


Segher
diff mbox series

Patch

diff --git a/gcc/config.gcc b/gcc/config.gcc
index 365263a0f46..829b6f757f2 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -514,7 +514,7 @@  powerpc*-*-*)
 	extra_headers="${extra_headers} ppu_intrinsics.h spu2vmx.h vec_types.h si2vmx.h"
 	extra_headers="${extra_headers} amo.h"
 	case x$with_cpu in
-	    xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[3456789]|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|xe6500|xfuture)
+	    xpowerpc64|xdefault64|x6[23]0|x970|xG5|xpower[3456789]|xpower10|xpower6x|xrs64a|xcell|xa2|xe500mc64|xe5500|xe6500|xfuture)
 		cpu_is_64bit=yes
 		;;
 	esac
@@ -4912,7 +4912,7 @@  case "${target}" in
 				eval "with_$which=405"
 				;;
 			"" | common | native \
-			| power[3456789] | power5+ | power6x \
+			| power[3456789] | power10 | power5+ | power6x \
 			| powerpc | powerpc64 | powerpc64le \
 			| rs64 \
 			| 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \