On Wed, Feb 15, 2023 at 01:44:08PM +0000, Jonathan Yong via Gcc-patches wrote:
> gcc/testsuite/ChangeLog:
> 
>         * gcc.target/i386/harden-sls-6.c: fix warning on LLP64
>         targets.
> 
> Attached patch OK?

> From c0572a1e95c6f569980d6b7454c8dc293f07389e Mon Sep 17 00:00:00 2001
> From: Jonathan Yong <10wa...@gmail.com>
> Date: Wed, 15 Feb 2023 13:42:12 +0000
> Subject: [PATCH] harden-sls-6.c: fix warning on LLP64
> 
> gcc/testsuite/ChangeLog:
> 
>       * gcc.target/i386/harden-sls-6.c: fix warning on LLP64
>       targets.

s/fix/Fix/

Otherwise LGTM.
> 
> Signed-off-by: Jonathan Yong <10wa...@gmail.com>
> ---
>  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" } } */

        Jakub

Reply via email to