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 the -O0 configuration and its warnings #557

Merged
merged 1 commit into from
Nov 12, 2024

Conversation

NWilson
Copy link
Member

@NWilson NWilson commented Nov 11, 2024

The CI configuration was using CC='gcc -O0. However, this doesn't work! Because CFLAGS was unset, ./configure would set CFLAGS to -O2, resulting in a commandline of gcc -O0 ... -O2 ....

Fixing this reveals that GCC generates additional warnings when in -O0 mode. Presumably it doesn't do dead-code pruning, and so generates additional areas in provable-unreachable sections of code (which would be pruned in -O2).

Copy link
Collaborator

@zherczeg zherczeg left a comment

Choose a reason for hiding this comment

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

LGTM

@zherczeg zherczeg merged commit 6e545aa into PCRE2Project:master Nov 12, 2024
17 checks passed
@NWilson NWilson deleted the user/niwilson/debug-warn branch December 17, 2024 09:48
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