Skip to content

Correct implementation of gcc specific internal functions (take 2) #2284

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 8, 2014

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Sep 6, 2014

This pull request implements what suggested in #107

/cc @kibergus
/cc @matthijskooijman

Probalby new.h may be removed completely.
The following empty stubs has been replaced by the gcc
flag -fno-threadsafe-static:

  int __cxa_guard_acquire(__guard *);
  void __cxa_guard_release (__guard *);
  void __cxa_guard_abort (__guard *);

The following empty stubs has been moved into their specific
module abi.cpp:

  void __cxa_pure_virtual(void) __attribute ((noreturn));
  void __cxa_deleted_virtual(void) __attribute ((noreturn));

Fix arduino#107
@ArduinoBot
Copy link
Contributor

Merged build finished. Test PASSed.

@matthijskooijman
Copy link
Collaborator

Code looks good to me. Once the proposal in #108 (comment) is implemented, we can call std::terminate instead of abort in these functions as well.

cmaglie added a commit that referenced this pull request Sep 8, 2014
Correct implementation of gcc specific internal functions (take 2)
@cmaglie cmaglie merged commit 82e04ba into arduino:ide-1.5.x Sep 8, 2014
@cmaglie cmaglie deleted the ide-1.5.x-cxx-abi-compat branch September 8, 2014 17:14
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.

3 participants