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
6f87c7d8
Commit
6f87c7d8
authored
Oct 12, 1998
by
Jason Merrill
Committed by
Jason Merrill
Oct 12, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* collect2.c (extract_init_priority): No priority is 65535.
From-SVN: r23033
parent
c98e175c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
gcc/ChangeLog
+4
-0
gcc/collect2.c
+6
-2
No files found.
gcc/ChangeLog
View file @
6f87c7d8
Mon
Oct
12
19
:
57
:
34
1998
Jason
Merrill
<
jason
@yorick
.
cygnus
.
com
>
*
collect2
.
c
(
extract_init_priority
)
:
No
priority
is
65535
.
Mon
Oct
12
12
:
10
:
37
1998
Alexandre
Oliva
<
oliva
@dcc
.
unicamp
.
br
>
*
Makefile
.
in
(
build_tooldir
)
:
new
variable
,
same
as
old
...
...
gcc/collect2.c
View file @
6f87c7d8
...
...
@@ -151,6 +151,9 @@ extern char *make_temp_file PROTO ((char *));
#define SYMBOL__MAIN __main
#endif
/* This must match tree.h. */
#define DEFAULT_INIT_PRIORITY 65535
#if defined (LDD_SUFFIX) || SUNOS4_SHARED_LIBRARIES
#define SCAN_LIBRARIES
#endif
...
...
@@ -1763,14 +1766,15 @@ static int
extract_init_priority
(
name
)
char
*
name
;
{
int
pos
=
0
;
int
pos
=
0
,
pri
;
while
(
name
[
pos
]
==
'_'
)
++
pos
;
pos
+=
10
;
/* strlen ("GLOBAL__X_") */
/* Extract init_p number from ctor/dtor name. */
return
atoi
(
name
+
pos
);
pri
=
atoi
(
name
+
pos
);
return
pri
?
pri
:
DEFAULT_INIT_PRIORITY
;
}
/* Insertion sort the ids from ctor/dtor list HEAD_PTR in descending order.
...
...
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