diff mbox

[build,ppc] allow ppc config "--with-mcpu=native"

Message ID 929415B8-06E6-4FED-9305-FEBCF9400312@codesourcery.com
State New
Headers show

Commit Message

Iain Sandoe July 21, 2012, 4:04 p.m. UTC
Hi,

The PPC port can handle -mcpu=native.
The patch below enables its use at config time,
OK for trunk?
thanks,
Iain

gcc:

	* config.gcc (powerpc*-*-* | rs6000-*-*): Allow 'native' as a
	valid configured CPU choice.
diff mbox

Patch

Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc      (revision 189745)
+++ gcc/config.gcc      (working copy)
@@ -3285,7 +3285,7 @@ 
                                tm_defines="${tm_defines} CONFIG_PPC405CR"
                                eval "with_$which=405"
                                ;;
-                       "" | common \
+                       "" | common | native \
                        | power | power[234567] | power6x | powerpc | powerpc64 \
                        | rios | rios1 | rios2 | rsc | rsc1 | rs64a \
                        | 401 | 403 | 405 | 405fp | 440 | 440fp | 464 | 464fp \