aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rs6000
diff options
context:
space:
mode:
authorBen Elliston <bje@au.ibm.com>2008-12-09 21:08:03 +0000
committerBen Elliston <bje@gcc.gnu.org>2008-12-10 08:08:03 +1100
commit2e5d002a9e6764888b19b70711501011f1ff1bfe (patch)
tree7590ec12792c25aaa5cf231f0450a76857610535 /gcc/config/rs6000
parentc907186351a707515963bab2c27633026292b5a3 (diff)
downloadgcc-2e5d002a9e6764888b19b70711501011f1ff1bfe.zip
gcc-2e5d002a9e6764888b19b70711501011f1ff1bfe.tar.gz
gcc-2e5d002a9e6764888b19b70711501011f1ff1bfe.tar.bz2
* config/rs6000/linux-unwind.h (get_regs): Constify casts.
From-SVN: r142609
Diffstat (limited to 'gcc/config/rs6000')
-rw-r--r--gcc/config/rs6000/linux-unwind.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/config/rs6000/linux-unwind.h b/gcc/config/rs6000/linux-unwind.h
index 86392f4..defdde6 100644
--- a/gcc/config/rs6000/linux-unwind.h
+++ b/gcc/config/rs6000/linux-unwind.h
@@ -162,10 +162,10 @@ get_regs (struct _Unwind_Context *context)
/* li r0, 0x0077; sc (sigreturn new) */
/* li r0, 0x6666; sc (rt_sigreturn old) */
/* li r0, 0x00AC; sc (rt_sigreturn new) */
- if (*(unsigned int *) (pc + 4) != 0x44000002)
+ if (*(const unsigned int *) (pc + 4) != 0x44000002)
return NULL;
- if (*(unsigned int *) (pc + 0) == 0x38007777
- || *(unsigned int *) (pc + 0) == 0x38000077)
+ if (*(const unsigned int *) (pc + 0) == 0x38007777
+ || *(const unsigned int *) (pc + 0) == 0x38000077)
{
struct sigframe {
char gap[SIGNAL_FRAMESIZE];
@@ -174,8 +174,8 @@ get_regs (struct _Unwind_Context *context)
} *frame = (struct sigframe *) context->cfa;
return frame->regs;
}
- else if (*(unsigned int *) (pc + 0) == 0x38006666
- || *(unsigned int *) (pc + 0) == 0x380000AC)
+ else if (*(const unsigned int *) (pc + 0) == 0x38006666
+ || *(const unsigned int *) (pc + 0) == 0x380000AC)
{
struct rt_sigframe {
char gap[SIGNAL_FRAMESIZE + 16];