aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorPeter Bergner <bergner@linux.ibm.com>2024-06-07 16:03:08 -0500
committerPeter Bergner <bergner@linux.ibm.com>2024-06-08 09:28:33 -0500
commite91cf26a954a5c1bf431e36f3a1e69f94e9fa4fe (patch)
tree3e3ebf86028397048f8309d32bbec1010f56b86f /gcc
parent2c9643c27ecddb7f597d34009d89e932b4aca58e (diff)
downloadgcc-e91cf26a954a5c1bf431e36f3a1e69f94e9fa4fe.zip
gcc-e91cf26a954a5c1bf431e36f3a1e69f94e9fa4fe.tar.gz
gcc-e91cf26a954a5c1bf431e36f3a1e69f94e9fa4fe.tar.bz2
rs6000: Update ELFv2 stack frame comment showing the correct ROP save location
The ELFv2 stack frame layout comment in rs6000-logue.cc shows the ROP hash save slot in the wrong location. Update the comment to show the correct ROP hash save location in the frame. 2024-06-07 Peter Bergner <bergner@linux.ibm.com> gcc/ * config/rs6000/rs6000-logue.cc (rs6000_stack_info): Update comment.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/rs6000/rs6000-logue.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/config/rs6000/rs6000-logue.cc b/gcc/config/rs6000/rs6000-logue.cc
index bd5d56b..d61a25a 100644
--- a/gcc/config/rs6000/rs6000-logue.cc
+++ b/gcc/config/rs6000/rs6000-logue.cc
@@ -591,21 +591,21 @@ rs6000_savres_strategy (rs6000_stack_t *info,
+---------------------------------------+
| Parameter save area (+padding*) (P) | 32
+---------------------------------------+
- | Optional ROP hash slot (R) | 32+P
+ | Alloca space (A) | 32+P
+---------------------------------------+
- | Alloca space (A) | 32+P+R
+ | Local variable space (L) | 32+P+A
+---------------------------------------+
- | Local variable space (L) | 32+P+R+A
+ | Optional ROP hash slot (R) | 32+P+A+L
+---------------------------------------+
- | Save area for AltiVec registers (W) | 32+P+R+A+L
+ | Save area for AltiVec registers (W) | 32+P+A+L+R
+---------------------------------------+
- | AltiVec alignment padding (Y) | 32+P+R+A+L+W
+ | AltiVec alignment padding (Y) | 32+P+A+L+R+W
+---------------------------------------+
- | Save area for GP registers (G) | 32+P+R+A+L+W+Y
+ | Save area for GP registers (G) | 32+P+A+L+R+W+Y
+---------------------------------------+
- | Save area for FP registers (F) | 32+P+R+A+L+W+Y+G
+ | Save area for FP registers (F) | 32+P+A+L+R+W+Y+G
+---------------------------------------+
- old SP->| back chain to caller's caller | 32+P+R+A+L+W+Y+G+F
+ old SP->| back chain to caller's caller | 32+P+A+L+R+W+Y+G+F
+---------------------------------------+
* If the alloca area is present, the parameter save area is