Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
2e5d002a
Commit
2e5d002a
authored
Dec 09, 2008
by
Ben Elliston
Committed by
Ben Elliston
Dec 10, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* config/rs6000/linux-unwind.h (get_regs): Constify casts.
From-SVN: r142609
parent
c9071863
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
+9
-5
gcc/ChangeLog
+4
-0
gcc/config/rs6000/linux-unwind.h
+5
-5
No files found.
gcc/ChangeLog
View file @
2e5d002a
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
>
2008
-
12
-
09
Jan
Hubicka
<
jh
@suse
.
cz
>
*
predict
.
c
(
estimate_bb_frequencies
)
:
Fix
test
if
profile
is
present
.
*
predict
.
c
(
estimate_bb_frequencies
)
:
Fix
test
if
profile
is
present
.
gcc/config/rs6000/linux-unwind.h
View file @
2e5d002a
...
@@ -162,10 +162,10 @@ get_regs (struct _Unwind_Context *context)
...
@@ -162,10 +162,10 @@ get_regs (struct _Unwind_Context *context)
/* li r0, 0x0077; sc (sigreturn new) */
/* li r0, 0x0077; sc (sigreturn new) */
/* li r0, 0x6666; sc (rt_sigreturn old) */
/* li r0, 0x6666; sc (rt_sigreturn old) */
/* li r0, 0x00AC; sc (rt_sigreturn new) */
/* li r0, 0x00AC; sc (rt_sigreturn new) */
if
(
*
(
unsigned
int
*
)
(
pc
+
4
)
!=
0x44000002
)
if
(
*
(
const
unsigned
int
*
)
(
pc
+
4
)
!=
0x44000002
)
return
NULL
;
return
NULL
;
if
(
*
(
unsigned
int
*
)
(
pc
+
0
)
==
0x38007777
if
(
*
(
const
unsigned
int
*
)
(
pc
+
0
)
==
0x38007777
||
*
(
unsigned
int
*
)
(
pc
+
0
)
==
0x38000077
)
||
*
(
const
unsigned
int
*
)
(
pc
+
0
)
==
0x38000077
)
{
{
struct
sigframe
{
struct
sigframe
{
char
gap
[
SIGNAL_FRAMESIZE
];
char
gap
[
SIGNAL_FRAMESIZE
];
...
@@ -174,8 +174,8 @@ get_regs (struct _Unwind_Context *context)
...
@@ -174,8 +174,8 @@ get_regs (struct _Unwind_Context *context)
}
*
frame
=
(
struct
sigframe
*
)
context
->
cfa
;
}
*
frame
=
(
struct
sigframe
*
)
context
->
cfa
;
return
frame
->
regs
;
return
frame
->
regs
;
}
}
else
if
(
*
(
unsigned
int
*
)
(
pc
+
0
)
==
0x38006666
else
if
(
*
(
const
unsigned
int
*
)
(
pc
+
0
)
==
0x38006666
||
*
(
unsigned
int
*
)
(
pc
+
0
)
==
0x380000AC
)
||
*
(
const
unsigned
int
*
)
(
pc
+
0
)
==
0x380000AC
)
{
{
struct
rt_sigframe
{
struct
rt_sigframe
{
char
gap
[
SIGNAL_FRAMESIZE
+
16
];
char
gap
[
SIGNAL_FRAMESIZE
+
16
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment