Skip to content

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

Merged
hzongaro merged 4 commits into
eclipse-omr:masterfrom
maggietuttle:constCharAnyTime
Dec 13, 2023
Merged

Fix string literal conversion warnings in codegen, p, il, infra, optimizer#7185
hzongaro merged 4 commits into
eclipse-omr:masterfrom
maggietuttle:constCharAnyTime

Conversation

@maggietuttle

@maggietuttle maggietuttle commented Nov 16, 2023

Copy link
Copy Markdown
Contributor

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

@maggietuttle maggietuttle 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

@hzongaro hzongaro left a comment

Copy link
Copy Markdown
Contributor

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!

Comment thread compiler/codegen/Relocation.hpp Outdated
Comment thread compiler/optimizer/OrderBlocks.cpp Outdated
Comment thread compiler/codegen/Relocation.hpp Outdated

@hzongaro hzongaro left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Jenkins build all

@hzongaro

Copy link
Copy Markdown
Contributor

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

Jenkins build riscv

@hzongaro hzongaro left a comment

Copy link
Copy Markdown
Contributor

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 <jdylantuttle@gmail.com>
Fix string literal conversion warnings in compiler/p

Signed-off-by: Dylan Tuttle <jdylantuttle@gmail.com>
Fix string literal conversion warnings in compiler/il

Signed-off-by: Dylan Tuttle <jdylantuttle@gmail.com>
@hzongaro

Copy link
Copy Markdown
Contributor

Jenkins build all

@hzongaro

Copy link
Copy Markdown
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
Copy Markdown
Contributor

Trying riscv once more

Jenkins build riscv

Comment thread compiler/optimizer/OrderBlocks.cpp
Fix string literal conversion warnings in compiler/optimizer

Signed-off-by: Dylan Tuttle <jdylantuttle@gmail.com>
@hzongaro

Copy link
Copy Markdown
Contributor

Jenkins build all

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