]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/config/sparc/sparc.h
Fix mv8plus, allow targetting Linux or Solaris from other sparc host.
authorDavid S. Miller <davem@davemloft.net>
Sat, 15 Oct 2011 03:46:59 +0000 (03:46 +0000)
committerDavid S. Miller <davem@gcc.gnu.org>
Sat, 15 Oct 2011 03:46:59 +0000 (20:46 -0700)
commita0bd60d1c9b6bdb85eeaa97a7e91b417aa70bcff
tree74646ffce7b35d20944e5ea06dd96ce907fdcf5f
parent6ff9d29412643e24f930933526a837238227c68d
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.

From-SVN: r180021
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