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
566b213a
Commit
566b213a
authored
Jul 29, 1994
by
Jason Merrill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverse order of execution of
destructor lists. From-SVN: r7817
parent
2c1c10ec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
gcc/libgcc2.c
+3
-15
No files found.
gcc/libgcc2.c
View file @
566b213a
...
...
@@ -1995,21 +1995,9 @@ __do_global_dtors ()
#ifdef DO_GLOBAL_DTORS_BODY
DO_GLOBAL_DTORS_BODY
;
#else
unsigned
nptrs
=
(
unsigned
HOST_WIDE_INT
)
__DTOR_LIST__
[
0
];
unsigned
i
;
/* Some systems place the number of pointers
in the first word of the table.
On other systems, that word is -1.
In all cases, the table is null-terminated. */
/* If the length is not recorded, count up to the null. */
if
(
nptrs
==
-
1
)
for
(
nptrs
=
0
;
__DTOR_LIST__
[
nptrs
+
1
]
!=
0
;
nptrs
++
);
/* GNU LD format. */
for
(
i
=
nptrs
;
i
>=
1
;
i
--
)
__DTOR_LIST__
[
i
]
();
func_ptr
*
p
;
for
(
p
=
__DTOR_LIST__
+
1
;
*
p
;
)
(
*
p
++
)
();
#endif
}
...
...
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