aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2019-06-05 16:45:57 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2019-06-05 12:45:57 -0400
commit781d39f26e0d5e9b8a0234525d8930e1d1f938bf (patch)
treeb2760952792c7dc0ddb0326672590cb4b8b72427 /libgcc
parenta637fd40b338afa328601b126bdb6356a1f14e0c (diff)
downloadgcc-781d39f26e0d5e9b8a0234525d8930e1d1f938bf.zip
gcc-781d39f26e0d5e9b8a0234525d8930e1d1f938bf.tar.gz
gcc-781d39f26e0d5e9b8a0234525d8930e1d1f938bf.tar.bz2
aix-unwind.h (LR_REGNO): Rename to R_LR.
* config/rs6000/aix-unwind.h (LR_REGNO): Rename to R_LR. (CR2_REGNO): Rename to R_CR2. (XER_REGNO): Rename to R_XER. (FIRST_ALTIVEC_REGNO): Rename to R_FIRST_ALTIVEC. (VRSAVE_REGNO): Rename to R_VRSAVE. (VSCR_REGNO): R_VSCR. From-SVN: r271967
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog9
-rw-r--r--libgcc/config/rs6000/aix-unwind.h28
2 files changed, 23 insertions, 14 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 082fabc..371876a 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,12 @@
+2019-06-05 David Edelsohn <dje.gcc@gmail.com>
+
+ * config/rs6000/aix-unwind.h (LR_REGNO): Rename to R_LR.
+ (CR2_REGNO): Rename to R_CR2.
+ (XER_REGNO): Rename to R_XER.
+ (FIRST_ALTIVEC_REGNO): Rename to R_FIRST_ALTIVEC.
+ (VRSAVE_REGNO): Rename to R_VRSAVE.
+ (VSCR_REGNO): R_VSCR.
+
2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
* config.host (rx-*-linux*): Add new case.
diff --git a/libgcc/config/rs6000/aix-unwind.h b/libgcc/config/rs6000/aix-unwind.h
index ccd3615..a0e998c 100644
--- a/libgcc/config/rs6000/aix-unwind.h
+++ b/libgcc/config/rs6000/aix-unwind.h
@@ -24,12 +24,12 @@
/* Useful register numbers. */
-#define LR_REGNO 65
-#define CR2_REGNO 70
-#define XER_REGNO 76
-#define FIRST_ALTIVEC_REGNO 77
-#define VRSAVE_REGNO 109
-#define VSCR_REGNO 110
+#define R_LR 65
+#define R_CR2 70
+#define R_XER 76
+#define R_FIRST_ALTIVEC 77
+#define R_VRSAVE 109
+#define R_VSCR 110
/* If the current unwind info (FS) does not contain explicit info
saving R2, then we have to do a minor amount of code reading to
@@ -44,7 +44,7 @@
{ \
unsigned int *insn \
= (unsigned int *) \
- _Unwind_GetGR ((CTX), LR_REGNO); \
+ _Unwind_GetGR ((CTX), R_LR); \
if (*insn == 0xE8410028) \
_Unwind_SetGRPtr ((CTX), 2, (CTX)->cfa + 40); \
} \
@@ -56,7 +56,7 @@
{ \
unsigned int *insn \
= (unsigned int *) \
- _Unwind_GetGR ((CTX), LR_REGNO); \
+ _Unwind_GetGR ((CTX), R_LR); \
if (*insn == 0x80410014) \
_Unwind_SetGRPtr ((CTX), 2, (CTX)->cfa + 20); \
} \
@@ -241,9 +241,9 @@ ppc_aix_fallback_frame_state (struct _Unwind_Context *context,
if (i != __LIBGCC_STACK_POINTER_REGNUM__)
REGISTER_CFA_OFFSET_FOR (fs, i, &mctx->gpr[i], new_cfa);
- REGISTER_CFA_OFFSET_FOR (fs, CR2_REGNO, &mctx->cr, new_cfa);
- REGISTER_CFA_OFFSET_FOR (fs, XER_REGNO, &mctx->xer, new_cfa);
- REGISTER_CFA_OFFSET_FOR (fs, LR_REGNO, &mctx->lr, new_cfa);
+ REGISTER_CFA_OFFSET_FOR (fs, R_CR2, &mctx->cr, new_cfa);
+ REGISTER_CFA_OFFSET_FOR (fs, R_XER, &mctx->xer, new_cfa);
+ REGISTER_CFA_OFFSET_FOR (fs, R_LR, &mctx->lr, new_cfa);
fs->retaddr_column = RETURN_COLUMN;
REGISTER_CFA_OFFSET_FOR (fs, RETURN_COLUMN, &mctx->iar, new_cfa);
@@ -268,10 +268,10 @@ ppc_aix_fallback_frame_state (struct _Unwind_Context *context,
for (i = 0; i < 32; i++)
REGISTER_CFA_OFFSET_FOR
- (fs, i+FIRST_ALTIVEC_REGNO, &vstate->regs[i], new_cfa);
+ (fs, i+R_FIRST_ALTIVEC, &vstate->regs[i], new_cfa);
- REGISTER_CFA_OFFSET_FOR (fs, VSCR_REGNO, &vstate->vscr, new_cfa);
- REGISTER_CFA_OFFSET_FOR (fs, VRSAVE_REGNO, &vstate->vrsave, new_cfa);
+ REGISTER_CFA_OFFSET_FOR (fs, R_VSCR, &vstate->vscr, new_cfa);
+ REGISTER_CFA_OFFSET_FOR (fs, R_VRSAVE, &vstate->vrsave, new_cfa);
}
}