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
99b13ed3
Commit
99b13ed3
authored
Apr 20, 1998
by
Jim Wilson
Committed by
Jim Wilson
Apr 20, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix BSD/OS build error reported by Shigeya Suzuk.
* frame.c (heapsort): Rename to frame_heapsort. From-SVN: r19351
parent
bb27e6c9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
gcc/ChangeLog
+2
-0
gcc/frame.c
+4
-3
No files found.
gcc/ChangeLog
View file @
99b13ed3
Mon Apr 20 20:44:25 1998 Jim Wilson <wilson@cygnus.com>
* frame.c (heapsort): Rename to frame_heapsort.
* gcc.c (do_spec_1, case '['): Move flag out of loop and initialize it.
Mon Apr 20 12:43:09 1998 Doug Evans <devans@canuck.cygnus.com>
...
...
gcc/frame.c
View file @
99b13ed3
...
...
@@ -269,9 +269,10 @@ fde_split (fde_vector *linear, fde_vector *erratic)
linear
->
count
=
j
;
}
/* This is O(n log(n)). */
/* This is O(n log(n)). BSD/OS defines heapsort in stdlib.h, so we must
use a name that does not conflict. */
static
inline
void
heapsort
(
fde_vector
*
erratic
)
frame_
heapsort
(
fde_vector
*
erratic
)
{
/* For a description of this algorithm, see:
Samuel P. Harbison, Guy L. Steele Jr.: C, a reference manual, 2nd ed.,
...
...
@@ -366,7 +367,7 @@ end_fde_sort (fde_accumulator *accu, size_t count)
fde_split
(
&
accu
->
linear
,
&
accu
->
erratic
);
if
(
accu
->
linear
.
count
+
accu
->
erratic
.
count
!=
count
)
abort
();
heapsort
(
&
accu
->
erratic
);
frame_
heapsort
(
&
accu
->
erratic
);
fde_merge
(
&
accu
->
linear
,
&
accu
->
erratic
);
free
(
accu
->
erratic
.
array
);
return
accu
->
linear
.
array
;
...
...
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