public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/ibuclaw/heads/darwin)] Darwin, PPC : Fix R13 for PPC64.
@ 2021-04-19 18:06 Iain Buclaw
  0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-04-19 18:06 UTC (permalink / raw)
  To: gcc-cvs

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

commit e56fdb09671e1b40581e48a0bc05e727364acf95
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Fri Dec 11 00:29:42 2020 +0000

    Darwin, PPC : Fix R13 for PPC64.
    
    We have a somewhat unusual situation in that for PPC64, R13 is
    both reserved and callee-saved (it is used internally by the
    pthreads implementation to contain pthread_self).
    
    So add R13 to the fixed regs, but also keep it in the callee-
    saved set.
    
    gcc/ChangeLog:
    
            * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
            (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
            of the fixed regs.

Diff:
---
 gcc/config/rs6000/darwin.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index 42f39e60305..566794af706 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -203,7 +203,7 @@
 
 /* Make both r2 and r13 available for allocation.  */
 #define FIXED_R2 0
-#define FIXED_R13 0
+#define FIXED_R13 TARGET_64BIT
 
 /* Base register for access to local variables of the function.  */
 
@@ -213,6 +213,9 @@
 #undef  RS6000_PIC_OFFSET_TABLE_REGNUM
 #define RS6000_PIC_OFFSET_TABLE_REGNUM 31
 
+#undef FIRST_SAVED_GP_REGNO
+#define FIRST_SAVED_GP_REGNO 13
+
 /* Darwin's stack must remain 16-byte aligned for both 32 and 64 bit
    ABIs.  */


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

* [gcc(refs/users/ibuclaw/heads/darwin)] Darwin, PPC : Fix R13 for PPC64.
@ 2021-09-17 14:34 Iain Buclaw
  0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-09-17 14:34 UTC (permalink / raw)
  To: gcc-cvs

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

commit a22f4dbd40bb7e2bf5a7d69b3f28978a44caca8b
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Fri Dec 11 00:29:42 2020 +0000

    Darwin, PPC : Fix R13 for PPC64.
    
    We have a somewhat unusual situation in that for PPC64, R13 is
    both reserved and callee-saved (it is used internally by the
    pthreads implementation to contain pthread_self).
    
    So add R13 to the fixed regs, but also keep it in the callee-
    saved set.
    
    gcc/ChangeLog:
    
            * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
            (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
            of the fixed regs.

Diff:
---
 gcc/config/rs6000/darwin.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index 6abf8e84f54..120b01f9a2b 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -203,7 +203,7 @@
 
 /* Make both r2 and r13 available for allocation.  */
 #define FIXED_R2 0
-#define FIXED_R13 0
+#define FIXED_R13 TARGET_64BIT
 
 /* Base register for access to local variables of the function.  */
 
@@ -213,6 +213,9 @@
 #undef  RS6000_PIC_OFFSET_TABLE_REGNUM
 #define RS6000_PIC_OFFSET_TABLE_REGNUM 31
 
+#undef FIRST_SAVED_GP_REGNO
+#define FIRST_SAVED_GP_REGNO 13
+
 /* Darwin's stack must remain 16-byte aligned for both 32 and 64 bit
    ABIs.  */


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

* [gcc(refs/users/ibuclaw/heads/darwin)] Darwin, PPC : Fix R13 for PPC64.
@ 2021-04-10 17:01 Iain Buclaw
  0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-04-10 17:01 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:222d4868222c1d69c5962f31b969c9f4aabcb28f

commit 222d4868222c1d69c5962f31b969c9f4aabcb28f
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Fri Dec 11 00:29:42 2020 +0000

    Darwin, PPC : Fix R13 for PPC64.
    
    We have a somewhat unusual situation in that for PPC64, R13 is
    both reserved and callee-saved (it is used internally by the
    pthreads implementation to contain pthread_self).
    
    So add R13 to the fixed regs, but also keep it in the callee-
    saved set.
    
    gcc/ChangeLog:
    
            * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
            (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
            of the fixed regs.

Diff:
---
 gcc/config/rs6000/darwin.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index 42f39e60305..566794af706 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -203,7 +203,7 @@
 
 /* Make both r2 and r13 available for allocation.  */
 #define FIXED_R2 0
-#define FIXED_R13 0
+#define FIXED_R13 TARGET_64BIT
 
 /* Base register for access to local variables of the function.  */
 
@@ -213,6 +213,9 @@
 #undef  RS6000_PIC_OFFSET_TABLE_REGNUM
 #define RS6000_PIC_OFFSET_TABLE_REGNUM 31
 
+#undef FIRST_SAVED_GP_REGNO
+#define FIRST_SAVED_GP_REGNO 13
+
 /* Darwin's stack must remain 16-byte aligned for both 32 and 64 bit
    ABIs.  */


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

* [gcc(refs/users/ibuclaw/heads/darwin)] Darwin, PPC : Fix R13 for PPC64.
@ 2021-04-10 15:05 Iain Buclaw
  0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-04-10 15:05 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:22189c8f9d8962f68cde24f012304cb3151c19b4

commit 22189c8f9d8962f68cde24f012304cb3151c19b4
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Fri Dec 11 00:29:42 2020 +0000

    Darwin, PPC : Fix R13 for PPC64.
    
    We have a somewhat unusual situation in that for PPC64, R13 is
    both reserved and callee-saved (it is used internally by the
    pthreads implementation to contain pthread_self).
    
    So add R13 to the fixed regs, but also keep it in the callee-
    saved set.
    
    gcc/ChangeLog:
    
            * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
            (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
            of the fixed regs.

Diff:
---
 gcc/config/rs6000/darwin.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index 42f39e60305..566794af706 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -203,7 +203,7 @@
 
 /* Make both r2 and r13 available for allocation.  */
 #define FIXED_R2 0
-#define FIXED_R13 0
+#define FIXED_R13 TARGET_64BIT
 
 /* Base register for access to local variables of the function.  */
 
@@ -213,6 +213,9 @@
 #undef  RS6000_PIC_OFFSET_TABLE_REGNUM
 #define RS6000_PIC_OFFSET_TABLE_REGNUM 31
 
+#undef FIRST_SAVED_GP_REGNO
+#define FIRST_SAVED_GP_REGNO 13
+
 /* Darwin's stack must remain 16-byte aligned for both 32 and 64 bit
    ABIs.  */


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

* [gcc(refs/users/ibuclaw/heads/darwin)] Darwin, PPC : Fix R13 for PPC64.
@ 2021-03-14 22:01 Iain Buclaw
  0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-03-14 22:01 UTC (permalink / raw)
  To: gcc-cvs

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

commit a6cc66c59812943287ee8fbdb61fea5a3d7b524e
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Fri Dec 11 00:29:42 2020 +0000

    Darwin, PPC : Fix R13 for PPC64.
    
    We have a somewhat unusual situation in that for PPC64, R13 is
    both reserved and callee-saved (it is used internally by the
    pthreads implementation to contain pthread_self).
    
    So add R13 to the fixed regs, but also keep it in the callee-
    saved set.
    
    gcc/ChangeLog:
    
            * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
            (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
            of the fixed regs.

Diff:
---
 gcc/config/rs6000/darwin.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index 42f39e60305..566794af706 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -203,7 +203,7 @@
 
 /* Make both r2 and r13 available for allocation.  */
 #define FIXED_R2 0
-#define FIXED_R13 0
+#define FIXED_R13 TARGET_64BIT
 
 /* Base register for access to local variables of the function.  */
 
@@ -213,6 +213,9 @@
 #undef  RS6000_PIC_OFFSET_TABLE_REGNUM
 #define RS6000_PIC_OFFSET_TABLE_REGNUM 31
 
+#undef FIRST_SAVED_GP_REGNO
+#define FIRST_SAVED_GP_REGNO 13
+
 /* Darwin's stack must remain 16-byte aligned for both 32 and 64 bit
    ABIs.  */


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

* [gcc(refs/users/ibuclaw/heads/darwin)] Darwin, PPC : Fix R13 for PPC64.
@ 2021-03-07 17:02 Iain Buclaw
  0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-03-07 17:02 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:424ed9ec2a354a714c94f7bed77b4d7747ad5030

commit 424ed9ec2a354a714c94f7bed77b4d7747ad5030
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Fri Dec 11 00:29:42 2020 +0000

    Darwin, PPC : Fix R13 for PPC64.
    
    We have a somewhat unusual situation in that for PPC64, R13 is
    both reserved and callee-saved (it is used internally by the
    pthreads implementation to contain pthread_self).
    
    So add R13 to the fixed regs, but also keep it in the callee-
    saved set.
    
    gcc/ChangeLog:
    
            * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
            (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
            of the fixed regs.

Diff:
---
 gcc/config/rs6000/darwin.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index 42f39e60305..566794af706 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -203,7 +203,7 @@
 
 /* Make both r2 and r13 available for allocation.  */
 #define FIXED_R2 0
-#define FIXED_R13 0
+#define FIXED_R13 TARGET_64BIT
 
 /* Base register for access to local variables of the function.  */
 
@@ -213,6 +213,9 @@
 #undef  RS6000_PIC_OFFSET_TABLE_REGNUM
 #define RS6000_PIC_OFFSET_TABLE_REGNUM 31
 
+#undef FIRST_SAVED_GP_REGNO
+#define FIRST_SAVED_GP_REGNO 13
+
 /* Darwin's stack must remain 16-byte aligned for both 32 and 64 bit
    ABIs.  */


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

* [gcc(refs/users/ibuclaw/heads/darwin)] Darwin, PPC : Fix R13 for PPC64.
@ 2021-01-30 19:09 Iain Buclaw
  0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-01-30 19:09 UTC (permalink / raw)
  To: gcc-cvs

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

commit 9aab67473d5b1174b2ce65546b55bdf8099ea5ee
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Fri Dec 11 00:29:42 2020 +0000

    Darwin, PPC : Fix R13 for PPC64.
    
    We have a somewhat unusual situation in that for PPC64, R13 is
    both reserved and callee-saved (it is used internally by the
    pthreads implementation to contain pthread_self).
    
    So add R13 to the fixed regs, but also keep it in the callee-
    saved set.
    
    gcc/ChangeLog:
    
            * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
            (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
            of the fixed regs.

Diff:
---
 gcc/config/rs6000/darwin.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index 42f39e60305..566794af706 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -203,7 +203,7 @@
 
 /* Make both r2 and r13 available for allocation.  */
 #define FIXED_R2 0
-#define FIXED_R13 0
+#define FIXED_R13 TARGET_64BIT
 
 /* Base register for access to local variables of the function.  */
 
@@ -213,6 +213,9 @@
 #undef  RS6000_PIC_OFFSET_TABLE_REGNUM
 #define RS6000_PIC_OFFSET_TABLE_REGNUM 31
 
+#undef FIRST_SAVED_GP_REGNO
+#define FIRST_SAVED_GP_REGNO 13
+
 /* Darwin's stack must remain 16-byte aligned for both 32 and 64 bit
    ABIs.  */


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

* [gcc(refs/users/ibuclaw/heads/darwin)] Darwin, PPC : Fix R13 for PPC64.
@ 2021-01-28 17:32 Iain Buclaw
  0 siblings, 0 replies; 8+ messages in thread
From: Iain Buclaw @ 2021-01-28 17:32 UTC (permalink / raw)
  To: gcc-cvs

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

commit f8d53e819350798e3e314db63f070b7c18c3e736
Author: Iain Sandoe <iain@sandoe.co.uk>
Date:   Fri Dec 11 00:29:42 2020 +0000

    Darwin, PPC : Fix R13 for PPC64.
    
    We have a somewhat unusual situation in that for PPC64, R13 is
    both reserved and callee-saved (it is used internally by the
    pthreads implementation to contain pthread_self).
    
    So add R13 to the fixed regs, but also keep it in the callee-
    saved set.
    
    gcc/ChangeLog:
    
            * config/rs6000/darwin.h (FIXED_R13): Add for PPC64.
            (FIRST_SAVED_GP_REGNO): Save from R13 even when it is one
            of the fixed regs.

Diff:
---
 gcc/config/rs6000/darwin.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index 42f39e60305..566794af706 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -203,7 +203,7 @@
 
 /* Make both r2 and r13 available for allocation.  */
 #define FIXED_R2 0
-#define FIXED_R13 0
+#define FIXED_R13 TARGET_64BIT
 
 /* Base register for access to local variables of the function.  */
 
@@ -213,6 +213,9 @@
 #undef  RS6000_PIC_OFFSET_TABLE_REGNUM
 #define RS6000_PIC_OFFSET_TABLE_REGNUM 31
 
+#undef FIRST_SAVED_GP_REGNO
+#define FIRST_SAVED_GP_REGNO 13
+
 /* Darwin's stack must remain 16-byte aligned for both 32 and 64 bit
    ABIs.  */


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

end of thread, other threads:[~2021-09-17 14:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-19 18:06 [gcc(refs/users/ibuclaw/heads/darwin)] Darwin, PPC : Fix R13 for PPC64 Iain Buclaw
  -- strict thread matches above, loose matches on Subject: below --
2021-09-17 14:34 Iain Buclaw
2021-04-10 17:01 Iain Buclaw
2021-04-10 15:05 Iain Buclaw
2021-03-14 22:01 Iain Buclaw
2021-03-07 17:02 Iain Buclaw
2021-01-30 19:09 Iain Buclaw
2021-01-28 17:32 Iain Buclaw

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