Skip to content
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

Prevent Clang/LLVM from inlining or removing MPIR_Breakpoint as dead function #4624

Closed
kiranchandramohan opened this issue Dec 14, 2017 · 4 comments

Comments

@kiranchandramohan
Copy link

kiranchandramohan commented Dec 14, 2017

Many parallel debuggers depend on the MPIR_Breakpoint function. Clang/LLVM can inline or remove MPIR_Breakpoint as dead function. Can the optnone attribute be added to the MPIR_Breakpoint function to prevent it from being optimized away ?

file : orte/orted/orted_submit.c

#ifdef __clang__
__attribute__((optnone))
#endif
ORTE_DECLSPEC void* MPIR_Breakpoint(void);
@kiranchandramohan
Copy link
Author

Thanks Ralph.

@rhc54 rhc54 closed this as completed Dec 15, 2017
@ghost
Copy link

ghost commented Jan 15, 2018

Thanks @rhc54 . If I understand the merge #4626 correctly this is only in master so far, but not in 3.1.x or 3.0.x. Any chance to backport this into 3.0.x and 3.1.x, as otherwise hitting MPIR_Breakpoint won't work in those versions when compiled with Clang/LLVM?

@rhc54
Copy link
Contributor

rhc54 commented Jan 15, 2018

Done: #4715 and #4716

@ghost
Copy link

ghost commented Jan 16, 2018

Thanks Ralph.

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

No branches or pull requests

2 participants