public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/aoliva/heads/testme)] [testsuite] Adjust for fixed x18, static chain x9 on aarch64-vxworks
@ 2023-03-24  6:25 Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-03-24  6:25 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:df0d6f8dd9d09e0ed28673e4c04bac9c68ac3a8d

commit df0d6f8dd9d09e0ed28673e4c04bac9c68ac3a8d
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Thu Mar 23 00:44: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 } */

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] [testsuite] Adjust for fixed x18, static chain x9 on aarch64-vxworks
@ 2023-04-06  6:35 Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-04-06  6:35 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:8977f182d9f3fb633b208b69e6ce9bbfd38c564e

commit 8977f182d9f3fb633b208b69e6ce9bbfd38c564e
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Wed Apr 5 11:27:04 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 } */

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] [testsuite] Adjust for fixed x18, static chain x9 on aarch64-vxworks
@ 2023-03-30 14:07 Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-03-30 14:07 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:bdac79a10665bd2d602ec1497ecc92f6de839039

commit bdac79a10665bd2d602ec1497ecc92f6de839039
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Thu Mar 30 05:07:13 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 } */

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] [testsuite] Adjust for fixed x18, static chain x9 on aarch64-vxworks
@ 2023-03-23  3:48 Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-03-23  3:48 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:9e80775af75b3f3e9c35cd31723be0c008dc184d

commit 9e80775af75b3f3e9c35cd31723be0c008dc184d
Author: Alexandre Oliva <oliva@adacore.com>
Date:   Thu Mar 23 00:44: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 } */

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] [testsuite] Adjust for fixed x18, static chain x9 on aarch64-vxworks
@ 2023-03-16 14:22 Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-03-16 14:22 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:0a9a8a8dd7d8581550b88f8c29162588ec583477

commit 0a9a8a8dd7d8581550b88f8c29162588ec583477
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 } */

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [gcc(refs/users/aoliva/heads/testme)] [testsuite] Adjust for fixed x18, static chain x9 on aarch64-vxworks
@ 2023-03-15 14:05 Alexandre Oliva
  0 siblings, 0 replies; 6+ messages in thread
From: Alexandre Oliva @ 2023-03-15 14:05 UTC (permalink / raw)
  To: gcc-cvs

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 } */

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-04-06  6:35 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-24  6:25 [gcc(refs/users/aoliva/heads/testme)] [testsuite] Adjust for fixed x18, static chain x9 on aarch64-vxworks Alexandre Oliva
  -- strict thread matches above, loose matches on Subject: below --
2023-04-06  6:35 Alexandre Oliva
2023-03-30 14:07 Alexandre Oliva
2023-03-23  3:48 Alexandre Oliva
2023-03-16 14:22 Alexandre Oliva
2023-03-15 14:05 Alexandre Oliva

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).