diff options
| author | Eric Botcazou <ebotcazou@adacore.com> | 2019-02-15 23:08:49 +0000 |
|---|---|---|
| committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2019-02-15 23:08:49 +0000 |
| commit | 34c5627c9cfea3eecbfbe3a1edeaaa703ddee553 (patch) | |
| tree | 482e43b35197675e2b407dafeb3090d3324daf4f /gcc/config/sparc/linux.h | |
| parent | 362432c00db860483058ff609a893151bf8e4b1c (diff) | |
| download | gcc-34c5627c9cfea3eecbfbe3a1edeaaa703ddee553.zip gcc-34c5627c9cfea3eecbfbe3a1edeaaa703ddee553.tar.gz gcc-34c5627c9cfea3eecbfbe3a1edeaaa703ddee553.tar.bz2 | |
linux.h (ASAN_CC1_SPEC): Define.
* config/sparc/linux.h (ASAN_CC1_SPEC): Define.
(CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
* config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
(CC1_SPEC): Likewise.
* config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
From-SVN: r268950
Diffstat (limited to 'gcc/config/sparc/linux.h')
| -rw-r--r-- | gcc/config/sparc/linux.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/config/sparc/linux.h b/gcc/config/sparc/linux.h index 2db9ea2..08476f1 100644 --- a/gcc/config/sparc/linux.h +++ b/gcc/config/sparc/linux.h @@ -54,10 +54,11 @@ extern const char *host_detect_local_cpu (int argc, const char **argv); #define DRIVER_SELF_SPECS MCPU_MTUNE_NATIVE_SPECS -/* This is for -profile to use -lc_p instead of -lc. */ -#undef CC1_SPEC -#define CC1_SPEC "%{profile:-p} \ -" +#undef ASAN_CC1_SPEC +#define ASAN_CC1_SPEC "%{%:sanitize(address):-funwind-tables}" + +#undef CC1_SPEC +#define CC1_SPEC GNU_USER_TARGET_CC1_SPEC ASAN_CC1_SPEC #undef SIZE_TYPE #define SIZE_TYPE "unsigned int" |
