Skip to content

Remove __cxa_thread_atexit stubs - #15531

Merged
sbc100 merged 1 commit into
mainfrom
remove_unused_stubs
Nov 16, 2021
Merged

Remove __cxa_thread_atexit stubs#15531
sbc100 merged 1 commit into
mainfrom
remove_unused_stubs

Conversation

@sbc100

@sbc100 sbc100 commented Nov 15, 2021

Copy link
Copy Markdown
Collaborator

Back in #14489 we started using the implemenation of
__cxa_thread_atexit from libcxxabi so this is stub should never be
needed.

This change also involves renaming the test from .c to .cpp since
C programs don't generally have access to __cxa_thread_atexit (its
part of libcxxabi).

I also removed the call to __cxa_thread_atexit_impl since we don't
define that anywhere in emscripten.

Also run this tests with threads enabled which would have resulted
in an undefined reference to __cxa_thread_atexit_impl previously.

Back in #14489 we started using the implemenation of
`__cxa_thread_atexit` from libcxxabi so this is stub should never be
needed.

This change also involves renaming the test from `.c` to `.cpp` since
C programs don't generally have access to `__cxa_thread_atexit` (its
part of libcxxabi).

I also removed the call to `__cxa_thread_atexit_impl` since we don't
define that anywhere in emscripten.

Also run this tests with threads enabled which would have resulted
in an undefined reference to `__cxa_thread_atexit_impl` previously.
@sbc100
sbc100 requested a review from kripken November 15, 2021 23:14
@sbc100
sbc100 enabled auto-merge (squash) November 15, 2021 23:26
@sbc100
sbc100 merged commit 9b98d42 into main Nov 16, 2021
@sbc100
sbc100 deleted the remove_unused_stubs branch November 16, 2021 00:09
mmarczell-graphisoft pushed a commit to GRAPHISOFT/emscripten that referenced this pull request Jan 5, 2022
Back in emscripten-core#14489 we started using the implemenation of
`__cxa_thread_atexit` from libcxxabi so this is stub should never be
needed.

This change also involves renaming the test from `.c` to `.cpp` since
C programs don't generally have access to `__cxa_thread_atexit` (its
part of libcxxabi).

I also removed the call to `__cxa_thread_atexit_impl` since we don't
define that anywhere in emscripten.

Also run this tests with threads enabled which would have resulted
in an undefined reference to `__cxa_thread_atexit_impl` previously.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants