diff options
| author | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-12-09 21:08:03 +0000 |
|---|---|---|
| committer | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-12-09 21:08:03 +0000 |
| commit | 58d657fa30f9a8f4c020bae68bf141867aa5ef55 (patch) | |
| tree | 7590ec12792c25aaa5cf231f0450a76857610535 | |
| parent | 9e2aa016bc50137d71b7ae39bf0d2a4ad9f248ea (diff) | |
| download | ppe42-gcc-58d657fa30f9a8f4c020bae68bf141867aa5ef55.tar.gz ppe42-gcc-58d657fa30f9a8f4c020bae68bf141867aa5ef55.zip | |
* config/rs6000/linux-unwind.h (get_regs): Constify casts.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@142609 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/config/rs6000/linux-unwind.h | 10 |
2 files changed, 9 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 075863b8733..87a4762f688 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2008-12-10 Ben Elliston <bje@au.ibm.com> + + * config/rs6000/linux-unwind.h (get_regs): Constify casts. + 2008-12-09 Jan Hubicka <jh@suse.cz> * predict.c (estimate_bb_frequencies): Fix test if profile is present. diff --git a/gcc/config/rs6000/linux-unwind.h b/gcc/config/rs6000/linux-unwind.h index 86392f4181e..defdde60e6d 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]; |

