OSDN Git Service

2012-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
authormeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Mar 2012 16:16:51 +0000 (16:16 +0000)
committermeissner <meissner@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 12 Mar 2012 16:16:51 +0000 (16:16 +0000)
commit021a5edd0a6664818d1067f561312f3a57ad62c3
tree7aaa326825dff46cf7eba497c52f2cfacc47bfdd
parentdcecc5ef946013b46c97d1d83a370314cbafa62a
2012-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>

Backport from mainline
2012-03-09  Michael Meissner  <meissner@linux.vnet.ibm.com>

* config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Do not
redefine to be NULL if the current bit-size is different from the
configured bit-size.

* config/rs6000/rs6000.c (rs6000_option_override_internal): If the
cpu is defaulted, use PROCESSOR_DEFAULT and PROCESSOR_DEFAULT64 to
set the default tuning.  Add asserts to make sure the cpu and tune
indexes are defined.  Fix tests for cpu/tune index to use >= 0 to
test whether the index is set, instead of > 0.
(rs6000_file_start): Do not reset the default cpu if the current
bit-size is different from the configured bit-size.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch@185248 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/rs6000/linux64.h
gcc/config/rs6000/rs6000.c