harden-sls-6.c: Fix warning on LLP64
authorJonathan Yong <10walls@gmail.com>
Wed, 15 Feb 2023 13:42:12 +0000 (13:42 +0000)
committerJonathan Yong <10walls@gmail.com>
Wed, 1 Mar 2023 13:42:37 +0000 (13:42 +0000)
gcc/testsuite/ChangeLog:

* gcc.target/i386/harden-sls-6.c: Fix warning on LLP64
targets.

Signed-off-by: Jonathan Yong <10walls@gmail.com>
gcc/testsuite/gcc.target/i386/harden-sls-6.c

index 9068eb6..3b27021 100644 (file)
@@ -11,7 +11,7 @@ struct _Unwind_Context {
   struct _Unwind_Context cur_contextcur_context =
       _Unwind_Resume_or_Rethrow_this_context;
   offset(0);
-  __builtin_eh_return ((long) offset, 0);
+  __builtin_eh_return ((__INTPTR_TYPE__) offset, 0);
 }
 
 /* { dg-final { scan-assembler "jmp\[ \t\]+\\*%rcx" } } */