@@ -30,11 +30,9 @@ EXCEPTION_DISPOSITION _GCC_specific_handler(PEXCEPTION_RECORD, void *, PCONTEXT,
30
30
_Unwind_Personality_Fn );
31
31
#endif
32
32
33
- #if __has_feature (ptrauth_calls ) || defined( __PTRAUTH__ )
33
+ #if __has_feature (ptrauth_calls )
34
34
#include <ptrauth.h>
35
35
36
- #define __gcc_personality_has_ptrauth 1
37
-
38
36
#if __has_feature (ptrauth_restricted_intptr_qualifier )
39
37
#define __ptrauth_gcc_personality_intptr (key , addressDiscriminated , \
40
38
discriminator ) \
@@ -45,7 +43,6 @@ EXCEPTION_DISPOSITION _GCC_specific_handler(PEXCEPTION_RECORD, void *, PCONTEXT,
45
43
__ptrauth(key, addressDiscriminated, discriminator)
46
44
#endif
47
45
#else
48
- #define __gcc_personality_has_ptrauth 0
49
46
#define __ptrauth_gcc_personality_intptr (...)
50
47
#endif
51
48
@@ -287,7 +284,7 @@ COMPILER_RT_ABI _Unwind_Reason_Code __gcc_personality_v0(
287
284
_Unwind_SetGR (context , __builtin_eh_return_data_regno (1 ), 0 );
288
285
size_t __ptrauth_gcc_personality_lpad landingPad =
289
286
funcStart + landingPadOffset ;
290
- #if __gcc_personality_has_ptrauth
287
+ #if __has_feature ( ptrauth_calls )
291
288
uintptr_t stackPointer = _Unwind_GetGR (context , -2 );
292
289
const uintptr_t existingDiscriminator =
293
290
ptrauth_blend_discriminator (& landingPad ,
0 commit comments