diff options
author | davem <davem@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-15 03:46:59 +0000 |
---|---|---|
committer | davem <davem@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-10-15 03:46:59 +0000 |
commit | 5bd71bb8e448eb21967091fce21fcaed8be0981c (patch) | |
tree | 74646ffce7b35d20944e5ea06dd96ce907fdcf5f /gcc/config/sparc/linux64.h | |
parent | 74cf552debea29cb4cac3f3eb5cc40c120383fb8 (diff) | |
download | gcc-5bd71bb8e448eb21967091fce21fcaed8be0981c.tar.gz |
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
Diffstat (limited to 'gcc/config/sparc/linux64.h')
-rw-r--r-- | gcc/config/sparc/linux64.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/sparc/linux64.h b/gcc/config/sparc/linux64.h index b87116a6c97..a51a2f0e1c7 100644 --- a/gcc/config/sparc/linux64.h +++ b/gcc/config/sparc/linux64.h @@ -139,7 +139,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 }, |