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 function inline errors in debug optimization (-Og) #258

Merged

Conversation

Yashinde145
Copy link
Contributor

Compiler does not inline any functions when using debug optimization (-Og). Hence, remove -Winline flag when compiling with debug optimization.

Compiler does not inline any functions when using debug optimization (-Og). Hence, remove -Winline flag when compiling with debug optimization.
@Yashinde145
Copy link
Contributor Author

@rgerhards Please review the PR.

@rgerhards
Copy link
Member

This sounds OK and I appreciate the patch. Just curios: what is the core reason for patching this? Is it "just" to do the right thing, or did you experience any erros/annoyances? Would be good to know as I do not see any issues, also not in CI.

@rgerhards rgerhards added this to the 1.12.0 milestone Jun 30, 2023
@Yashinde145
Copy link
Contributor Author

Yashinde145 commented Jun 30, 2023

As mentioned in issue #256, the error was found for inlining functions in Yocto librelp sources for DEBUG build. Thanks for reviewing.

@Yashinde145
Copy link
Contributor Author

Hi @rgerhards, I think the centos 8 and fedora 36 checks did not initiate. Can you please re-run it?

@rgerhards
Copy link
Member

I'll check what's going on.

@rgerhards
Copy link
Member

I think I know what is wrong with the two failing CI runs. The workflow has too-old ubuntu versions specified. I think it is OK to merge without them. Will also check and see that I can fix the CI issue.

@rgerhards
Copy link
Member

FYI The CI issue is fixed via #259. But I don't see any reason to rebase and re-run CI.

@rgerhards rgerhards self-assigned this Jul 4, 2023
@rgerhards rgerhards added the bug label Jul 4, 2023
@rgerhards rgerhards merged commit 4b60c89 into rsyslog:master Jul 4, 2023
3 of 5 checks passed
@rgerhards
Copy link
Member

Thx again for the PR! Much appreciated.

@Yashinde145
Copy link
Contributor Author

Thanks for checking and accepting PR!

kraj pushed a commit to YoeDistro/meta-openembedded that referenced this pull request Aug 4, 2023
Compiler does not inline any functions when using debug optimization (-Og).
Hence, remove -Winline flag when compiling with debug optimization.

Backport upstream fix: rsyslog/librelp#258
Remove previous local fix: rsyslog/librelp#256

Signed-off-by: Nicolas Marguet <nicolas.marguet@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
kraj pushed a commit to YoeDistro/meta-openembedded that referenced this pull request Aug 5, 2023
Compiler does not inline any functions when using debug optimization (-Og).
Hence, remove -Winline flag when compiling with debug optimization.

Backport upstream fix: rsyslog/librelp#258
Remove previous local fix: rsyslog/librelp#256

Signed-off-by: Nicolas Marguet <nicolas.marguet@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
daregit pushed a commit to daregit/yocto-combined that referenced this pull request May 22, 2024
…timization

Compiler does not inline any functions when using debug optimization (-Og).
Hence, remove -Winline flag when compiling with debug optimization.

Backport upstream fix: rsyslog/librelp#258
Remove previous local fix: rsyslog/librelp#256

Signed-off-by: Nicolas Marguet <nicolas.marguet@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants