Mercurial > hg > CbC > CbC_gcc
comparison gcc/config/sparc/linux64.h @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 84e7813d76e9 |
children |
comparison
equal
deleted
inserted
replaced
131:84e7813d76e9 | 145:1830386684a0 |
---|---|
1 /* Definitions for 64-bit SPARC running Linux-based GNU systems with ELF. | 1 /* Definitions for 64-bit SPARC running Linux-based GNU systems with ELF. |
2 Copyright (C) 1996-2018 Free Software Foundation, Inc. | 2 Copyright (C) 1996-2020 Free Software Foundation, Inc. |
3 Contributed by David S. Miller (davem@caip.rutgers.edu) | 3 Contributed by David S. Miller (davem@caip.rutgers.edu) |
4 | 4 |
5 This file is part of GCC. | 5 This file is part of GCC. |
6 | 6 |
7 GCC is free software; you can redistribute it and/or modify | 7 GCC is free software; you can redistribute it and/or modify |
141 # define MCPU_MTUNE_NATIVE_SPECS "" | 141 # define MCPU_MTUNE_NATIVE_SPECS "" |
142 #endif | 142 #endif |
143 | 143 |
144 #define DRIVER_SELF_SPECS MCPU_MTUNE_NATIVE_SPECS | 144 #define DRIVER_SELF_SPECS MCPU_MTUNE_NATIVE_SPECS |
145 | 145 |
146 #undef CC1_SPEC | 146 /* -fsanitize=address is currently only supported for 32-bit. */ |
147 #define ASAN_REJECT_SPEC \ | |
148 "%{!%:sanitize(thread):%e-fsanitize=address is not supported in this configuration}" | |
149 | |
150 #undef ASAN_CC1_SPEC | |
147 #if DEFAULT_ARCH32_P | 151 #if DEFAULT_ARCH32_P |
148 #define CC1_SPEC "%{profile:-p} \ | 152 #define ASAN_CC1_SPEC \ |
149 %{m32:%{m64:%emay not use both -m32 and -m64}} \ | 153 "%{%:sanitize(address):-funwind-tables %{m64:" ASAN_REJECT_SPEC "}}" |
154 #else | |
155 #define ASAN_CC1_SPEC \ | |
156 "%{%:sanitize(address):-funwind-tables %{!m32:" ASAN_REJECT_SPEC "}}" | |
157 #endif | |
158 | |
159 #undef CC1_SPEC | |
160 #if DEFAULT_ARCH32_P | |
161 #define CC1_SPEC GNU_USER_TARGET_CC1_SPEC ASAN_CC1_SPEC \ | |
162 "%{m32:%{m64:%emay not use both -m32 and -m64}} \ | |
150 %{m64:-mptr64 -mstack-bias -mlong-double-128 \ | 163 %{m64:-mptr64 -mstack-bias -mlong-double-128 \ |
151 %{!mcpu*:-mcpu=ultrasparc} \ | 164 %{!mcpu*:-mcpu=ultrasparc} \ |
152 %{!mno-vis:%{!mcpu=v9:-mvis}}} \ | 165 %{!mno-vis:%{!mcpu=v9:-mvis}}}" |
153 " | 166 #else |
154 #else | 167 #define CC1_SPEC GNU_USER_TARGET_CC1_SPEC ASAN_CC1_SPEC \ |
155 #define CC1_SPEC "%{profile:-p} \ | 168 "%{m32:%{m64:%emay not use both -m32 and -m64}} \ |
156 %{m32:%{m64:%emay not use both -m32 and -m64}} \ | |
157 %{m32:-mptr32 -mno-stack-bias %{!mlong-double-128:-mlong-double-64} \ | 169 %{m32:-mptr32 -mno-stack-bias %{!mlong-double-128:-mlong-double-64} \ |
158 %{!mcpu*:-mcpu=cypress}} \ | 170 %{!mcpu*:-mcpu=cypress}} \ |
159 %{mv8plus:-mptr32 -mno-stack-bias %{!mlong-double-128:-mlong-double-64} \ | 171 %{mv8plus:-mptr32 -mno-stack-bias %{!mlong-double-128:-mlong-double-64} \ |
160 %{!mcpu*:-mcpu=v9}} \ | 172 %{!mcpu*:-mcpu=v9}} \ |
161 %{!m32:%{!mcpu*:-mcpu=ultrasparc}} \ | 173 %{!m32:%{!mcpu*:-mcpu=ultrasparc}} \ |
162 %{!mno-vis:%{!m32:%{!mcpu=v9:-mvis}}} \ | 174 %{!mno-vis:%{!m32:%{!mcpu=v9:-mvis}}}" |
163 " | |
164 #endif | 175 #endif |
165 | 176 |
166 /* Support for a compile-time default CPU, et cetera. The rules are: | 177 /* Support for a compile-time default CPU, et cetera. The rules are: |
167 --with-cpu is ignored if -mcpu is specified; likewise --with-cpu-32 | 178 --with-cpu is ignored if -mcpu is specified; likewise --with-cpu-32 |
168 and --with-cpu-64. | 179 and --with-cpu-64. |