Skip to content

re-enable all disabled warnings in CMake#9092

Open
alexreinking wants to merge 12 commits intomainfrom
alexreinking/reenable-warnings
Open

re-enable all disabled warnings in CMake#9092
alexreinking wants to merge 12 commits intomainfrom
alexreinking/reenable-warnings

Conversation

@alexreinking
Copy link
Copy Markdown
Member

We've seen some drift in the warnings checked by CI between Make/CMake. I'm going to try re-enabling all warnings just to see what we still need to disable.

@alexreinking
Copy link
Copy Markdown
Member Author

Fixing all the int64-to-int32 warnings is likely quixotic, but I think they're still worth some level of evaluation... the code in HexagonAlignment.h (for example) was really gnarly and the warning was actually a good hint that more thought needed to be put into that routine.

int native_lanes = required_alignment / op->value.type().bytes();
return is_aligned_impl<Store>(op, native_lanes, aligned_offset);
bool known_alignment = (op->alignment.modulus % native_lanes) == 0;
int64_t remainder = op->alignment.remainder % native_lanes;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If op->alignment is a negative constant (seems impossible?) % will do the wrong thing here. Should use mod_imp instead.

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