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

Disable warning for mismatched new/delete #7897

Merged
merged 2 commits into from
Oct 17, 2023
Merged

Conversation

abadams
Copy link
Member

@abadams abadams commented Oct 12, 2023

The LLVM headers allocate global variables with a sized operator new, but don't define a sized operator delete (i.e. one that also takes the allocation size). Recent versions of gcc see this as a mismatch and throw a warning. We're not in control of this, so this PR just disables the warning in the Makefile. I haven't observed the same thing with a cmake build, presumably due to different flags in general.

For more context see:
https://stackoverflow.com/questions/72290542/why-does-gcc-use-the-size-aware-delete-operator-by-default-when-optimizing

@abadams abadams merged commit f9b90cb into main Oct 17, 2023
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
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