public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/aoliva/heads/testme)] [testsuite] Adjust for fixed x18, static chain x9 on aarch64-vxworks Date: Wed, 15 Mar 2023 14:05:59 +0000 (GMT) [thread overview] Message-ID: <20230315140559.11A513858298@sourceware.org> (raw) https://gcc.gnu.org/g:918f92935aa27b45cb4e40598390143aa0970bd4 commit 918f92935aa27b45cb4e40598390143aa0970bd4 Author: Alexandre Oliva <oliva@adacore.com> Date: Thu Mar 9 05:15:54 2023 -0300 [testsuite] Adjust for fixed x18, static chain x9 on aarch64-vxworks r18 is reserved (fixed) by VxWorks so we use a different reg for the static chain. for gcc/testsuite/ChangeLog * gcc.dg/cwsc1.c (CHAIN, aarch64): x9 instead x18 for __vxworks. * gcc.target/aarch64/shadow_call_stack_1.c: Don't expect -ffixed-x18 error on vxworks. Diff: --- gcc/testsuite/gcc.dg/cwsc1.c | 6 +++++- gcc/testsuite/gcc.target/aarch64/shadow_call_stack_1.c | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/gcc.dg/cwsc1.c b/gcc/testsuite/gcc.dg/cwsc1.c index e793e26116a..cccf4139c35 100644 --- a/gcc/testsuite/gcc.dg/cwsc1.c +++ b/gcc/testsuite/gcc.dg/cwsc1.c @@ -6,7 +6,11 @@ #elif defined(__i386__) # define CHAIN "%ecx" #elif defined(__aarch64__) -# define CHAIN "x18" +# if defined __vxworks +# define CHAIN "x9" +# else +# define CHAIN "x18" +# endif #elif defined(__alpha__) # define CHAIN "$1" #elif defined(__arm__) diff --git a/gcc/testsuite/gcc.target/aarch64/shadow_call_stack_1.c b/gcc/testsuite/gcc.target/aarch64/shadow_call_stack_1.c index ab68d6e8482..c7c230fc194 100644 --- a/gcc/testsuite/gcc.target/aarch64/shadow_call_stack_1.c +++ b/gcc/testsuite/gcc.target/aarch64/shadow_call_stack_1.c @@ -3,4 +3,5 @@ int i; -/* { dg-error "'-fsanitize=shadow-call-stack' requires '-ffixed-x18'" "" {target "aarch64*-*-*" } 0 } */ +/* aarch64-*-vxworks has x18 as a fixed register. */ +/* { dg-error "'-fsanitize=shadow-call-stack' requires '-ffixed-x18'" "" { target { aarch64*-*-* && { ! aarch64-*-vxworks* } } } 0 } */
next reply other threads:[~2023-03-15 14:05 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-03-15 14:05 Alexandre Oliva [this message] 2023-03-16 14:22 Alexandre Oliva 2023-03-23 3:48 Alexandre Oliva 2023-03-24 6:25 Alexandre Oliva 2023-03-30 14:07 Alexandre Oliva 2023-04-06 6:35 Alexandre Oliva
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230315140559.11A513858298@sourceware.org \ --to=aoliva@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).