diff options
author | David S. Miller <davem@davemloft.net> | 2011-10-15 03:46:59 +0000 |
---|---|---|
committer | David S. Miller <davem@gcc.gnu.org> | 2011-10-14 20:46:59 -0700 |
commit | a0bd60d1c9b6bdb85eeaa97a7e91b417aa70bcff (patch) | |
tree | 74646ffce7b35d20944e5ea06dd96ce907fdcf5f /gcc/config/sparc/linux.h | |
parent | 6ff9d29412643e24f930933526a837238227c68d (diff) | |
download | gcc-a0bd60d1c9b6bdb85eeaa97a7e91b417aa70bcff.zip gcc-a0bd60d1c9b6bdb85eeaa97a7e91b417aa70bcff.tar.gz gcc-a0bd60d1c9b6bdb85eeaa97a7e91b417aa70bcff.tar.bz2 |
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
Diffstat (limited to 'gcc/config/sparc/linux.h')
-rw-r--r-- | gcc/config/sparc/linux.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h index 0ad4b34..443c796 100644 --- a/gcc/config/sparc/linux.h +++ b/gcc/config/sparc/linux.h @@ -41,7 +41,7 @@ along with GCC; see the file COPYING3. If not see /* -mcpu=native handling only makes sense with compiler running on a SPARC chip. */ -#if defined(__sparc__) +#if defined(__sparc__) && defined(__linux__) extern const char *host_detect_local_cpu (int argc, const char **argv); # define EXTRA_SPEC_FUNCTIONS \ { "local_cpu_detect", host_detect_local_cpu }, |