Skip to content

Fix ubsan build on freebsd regarding float. #15935

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

Closed
wants to merge 1 commit into from

Conversation

devnexen
Copy link
Member

due to the system header machine/ieeefp.h proceeding to a bitshift operation.

Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any issues. I'm assuming this cannot be fixed for gcc? I couldn't find an equivalent there.

@@ -27,7 +27,19 @@
#include <stddef.h>

#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
/// On FreeBSD with ubsan/clang we get the following:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: We're pretty much never using /// comments.

due to the system header machine/ieeefp.h proceeding to a bitshift
operation.
@devnexen
Copy link
Member Author

I don't see any issues. I'm assuming this cannot be fixed for gcc? I couldn't find an equivalent there.

gcc on freebsd does not work that well anyway, clang is the main compiler.

@devnexen devnexen closed this in 5feb29e Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants