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
9d2a6a8e
Commit
9d2a6a8e
authored
Jun 05, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(hppa_encode_label): Allocate stuff on permanent_obstack rather than
via malloc. From-SVN: r9876
parent
549fd8ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
gcc/config/pa/pa.c
+5
-6
No files found.
gcc/config/pa/pa.c
View file @
9d2a6a8e
...
...
@@ -4242,6 +4242,7 @@ output_call (insn, call_dest, return_pointer)
return
""
;
}
extern
struct
obstack
permanent_obstack
;
extern
struct
obstack
*
saveable_obstack
;
/* In HPUX 8.0's shared library scheme, special relocations are needed
...
...
@@ -4251,8 +4252,8 @@ extern struct obstack *saveable_obstack;
For reasons too disgusting to describe storage for the new name
is allocated either on the saveable_obstack (released at function
exit) or
via malloc for things that can never change (libcall names
for example). */
exit) or
on the permanent_obstack for things that can never change
(libcall names
for example). */
void
hppa_encode_label
(
sym
,
permanent
)
...
...
@@ -4263,10 +4264,8 @@ hppa_encode_label (sym, permanent)
int
len
=
strlen
(
str
);
char
*
newstr
;
if
(
permanent
)
newstr
=
malloc
(
len
+
2
);
else
newstr
=
obstack_alloc
(
saveable_obstack
,
len
+
2
);
newstr
=
obstack_alloc
((
permanent
?
&
permanent_obstack
:
saveable_obstack
),
len
+
2
);
if
(
str
[
0
]
==
'*'
)
*
newstr
++
=
*
str
++
;
...
...
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