Fix mv8plus, allow targetting Linux or Solaris from other sparc host.
authordavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Oct 2011 03:46:59 +0000 (03:46 +0000)
committerdavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 15 Oct 2011 03:46:59 +0000 (03:46 +0000)
commit5bd71bb8e448eb21967091fce21fcaed8be0981c
tree74646ffce7b35d20944e5ea06dd96ce907fdcf5f
parent74cf552debea29cb4cac3f3eb5cc40c120383fb8
Fix mv8plus, allow targetting Linux or Solaris from other sparc host.

* config/sparc/sol2.h: Protect -m{cpu,tune}=native handling
with a more complete cpp test.
* config/sparc/linux64.h: Likewise.
* config/sparc/linux.h: Likewise.
* config/sparc/sparc.opt (sparc_debug): New target variable.
(mdebug): New target option.
* config/sparc/sparc.h (MASK_DEBUG_OPTIONS, MASK_DEBUG_ALL,
TARGET_DEBUG_OPTIONS): New defines.
* config/sparc/sparc.c (debug_target_flag_bits,
debug_target_flags): New functions.
(sparc_option_override): Add name strings back to cpu_table[].
Parse -mdebug string.  When TARGET_DEBUG_OPTIONS is true, print
out the target flags before and after override processing as well
as the selected cpu.  If MASK_V8PLUS, make sure that the selected
cpu is at least v9.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180021 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/config/sparc/linux.h
gcc/config/sparc/linux64.h
gcc/config/sparc/sol2.h
gcc/config/sparc/sparc.c
gcc/config/sparc/sparc.h
gcc/config/sparc/sparc.opt