public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-6391] harden-sls-6.c: Fix warning on LLP64
@ 2023-03-01 13:42 Jonathan Yong
  0 siblings, 0 replies; only message in thread
From: Jonathan Yong @ 2023-03-01 13:42 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:560f1db37130c07f1e8a0788fac9a800640c59ad

commit r13-6391-g560f1db37130c07f1e8a0788fac9a800640c59ad
Author: Jonathan Yong <10walls@gmail.com>
Date:   Wed Feb 15 13:42:12 2023 +0000

    harden-sls-6.c: Fix warning on LLP64
    
    gcc/testsuite/ChangeLog:
    
            * gcc.target/i386/harden-sls-6.c: Fix warning on LLP64
            targets.
    
    Signed-off-by: Jonathan Yong <10walls@gmail.com>

Diff:
---
 gcc/testsuite/gcc.target/i386/harden-sls-6.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.target/i386/harden-sls-6.c b/gcc/testsuite/gcc.target/i386/harden-sls-6.c
index 9068eb64008..3b270211927 100644
--- a/gcc/testsuite/gcc.target/i386/harden-sls-6.c
+++ b/gcc/testsuite/gcc.target/i386/harden-sls-6.c
@@ -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" } } */

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-01 13:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-01 13:42 [gcc r13-6391] harden-sls-6.c: Fix warning on LLP64 Jonathan Yong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).