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
f7a80099
Commit
f7a80099
authored
Jan 09, 2001
by
Nick Clifton
Committed by
Nick Clifton
Jan 09, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix memory leak
From-SVN: r38811
parent
5a259aec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
2 deletions
+25
-2
gcc/ChangeLog
+7
-0
gcc/config/arm/arm.c
+18
-2
No files found.
gcc/ChangeLog
View file @
f7a80099
2001-01-08 Nick Clifton <nickc@redhat.com>
* config/arm/arm.c (arm_mark_machine_status): Check to see if
the machine structure has been allocated.
(arm_free_machine_status): New function: Free the machine
specific function structure.
2001-01-08 Richard Henderson <rth@redhat.com>
* jump.c (simplejump_p): Revert last change.
...
...
gcc/config/arm/arm.c
View file @
f7a80099
...
...
@@ -76,6 +76,7 @@ static Mmode select_dominance_cc_mode PARAMS ((rtx, rtx, Hint));
static
Ccstar
shift_op
PARAMS
((
rtx
,
Hint
*
));
static
void
arm_init_machine_status
PARAMS
((
struct
function
*
));
static
void
arm_mark_machine_status
PARAMS
((
struct
function
*
));
static
void
arm_free_machine_status
PARAMS
((
struct
function
*
));
static
int
number_of_first_bit_set
PARAMS
((
int
));
static
void
replace_symbols_in_block
PARAMS
((
tree
,
rtx
,
rtx
));
static
void
thumb_exit
PARAMS
((
FILE
*
,
int
,
rtx
));
...
...
@@ -9587,8 +9588,11 @@ arm_mark_machine_status (p)
{
machine_function
*
machine
=
p
->
machine
;
ggc_mark_rtx
(
machine
->
ra_rtx
);
ggc_mark_rtx
(
machine
->
eh_epilogue_sp_ofs
);
if
(
machine
)
{
ggc_mark_rtx
(
machine
->
ra_rtx
);
ggc_mark_rtx
(
machine
->
eh_epilogue_sp_ofs
);
}
}
static
void
...
...
@@ -9603,6 +9607,17 @@ arm_init_machine_status (p)
#endif
}
static
void
arm_free_machine_status
(
p
)
struct
function
*
p
;
{
if
(
p
->
machine
)
{
free
(
p
->
machine
);
p
->
machine
=
NULL
;
}
}
/* Return an RTX indicating where the return address to the
calling function can be found. */
rtx
...
...
@@ -9650,6 +9665,7 @@ arm_init_expanders ()
/* Arrange to initialize and mark the machine per-function status. */
init_machine_status
=
arm_init_machine_status
;
mark_machine_status
=
arm_mark_machine_status
;
free_machine_status
=
arm_free_machine_status
;
}
/* Generate the rest of a function's prologue. */
...
...
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