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

Fix string literal conversion warnings in codegen, p, il, infra, optimizer #7185

Merged
merged 4 commits into from
Dec 13, 2023

Conversation

dylanjtuttle
Copy link
Contributor

@dylanjtuttle dylanjtuttle commented Nov 16, 2023

Work towards fixing AIX warnings about assigning string literals to non-const char pointers by adding 'const' qualifiers to some string variables and parameters (or worst case scenario, casting to (char *)) in codegen, p, il, and optimizer.

This PR contributes to (but does not close) eclipse-openj9/openj9#14859

This PR must be merged in coordination with eclipse-openj9/openj9#18465

@dylanjtuttle dylanjtuttle changed the title Fix -Wwritable-strings in codegen, p, il, infra, optimizer Fix string literal conversion warnings in codegen, p, il, infra, optimizer Nov 22, 2023
@hzongaro hzongaro self-assigned this Dec 11, 2023
Copy link
Contributor

@hzongaro hzongaro left a comment

Choose a reason for hiding this comment

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

I think the changes look good overall. Just one question and a comment on typo. in some existing code. Thanks!

compiler/codegen/Relocation.hpp Outdated Show resolved Hide resolved
compiler/optimizer/OrderBlocks.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@hzongaro hzongaro left a comment

Choose a reason for hiding this comment

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

Thanks for the updates! The changes look good. May I ask to squash the changes from commit de4ab65 into your other commits?

@hzongaro
Copy link
Contributor

Jenkins build all

@hzongaro
Copy link
Contributor

It looks like a riscv test timed out. Rerunning. . . .

Jenkins build riscv

Copy link
Contributor

@hzongaro hzongaro left a comment

Choose a reason for hiding this comment

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

Thanks for the new commit b0fb5d5 with a change in support of an upstream pull request. May I ask you to squash it into one of the existing commits? Then I'll rerun pull request testing.

Fix string literal conversion warnings in compiler/codegen

Signed-off-by: Dylan Tuttle <[email protected]>
Fix string literal conversion warnings in compiler/p

Signed-off-by: Dylan Tuttle <[email protected]>
Fix string literal conversion warnings in compiler/il

Signed-off-by: Dylan Tuttle <[email protected]>
@hzongaro
Copy link
Contributor

Jenkins build all

@hzongaro
Copy link
Contributor

Windows failure appears to be due to infrastructure issues. I'm not clear on the reason for the riscv failures, but I don't think they're related to this change. Rerunning both.

Jenkins build win,riscv

@hzongaro
Copy link
Contributor

Trying riscv once more

Jenkins build riscv

Fix string literal conversion warnings in compiler/optimizer

Signed-off-by: Dylan Tuttle <[email protected]>
@hzongaro
Copy link
Contributor

Jenkins build all

@hzongaro hzongaro merged commit a4c2021 into eclipse-omr:master Dec 13, 2023
3 of 5 checks passed
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