This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch, powerpc] allow --with-cpu=native when configuring gcc


This is another orphan PowerPC patch from our backlog.

On native PowerPC, GCC supports -mcpu=native, to generate code for the same processor flavor that GCC itself is running on. This patch makes it also possible to configure GCC to default to that option.

Tested by building GCC with this configure option and build=i686-pc-linux-gnu, host=target=powerpc-linux-gnu, and verifying that the output of running the resulting gcc with --version --verbose looked sane.

OK to commit?

-Sandra


2013-05-23  Nathan Sidwell  <nathan@codesourcery.com>
	    Sandra Loosemore  <sandra@codesourcery.com>

	gcc/
	* config.gcc (powerpc-*): Allow native for with-cpu.

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]