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

Turning on the debug build now also disables optimizations for GCC. #52

Closed
wants to merge 1 commit into from

Conversation

K-Wic
Copy link
Contributor

@K-Wic K-Wic commented Aug 31, 2016

Not using -O0 is a real pita when trying to debug things with gdb.

Unfortunately this step also requires uninlining two functions, which are optimized away in the release build, but cause linker problems when left in.

@TomTheBear
Copy link
Member

Hi, thanks for the PR. I always debugged with -O2 and it was suitable for my needs. I won't merge your PR because I don't want to have general changes in the compiler-specific files. I added it to config_defines.mk where the -g flag is added to CFLAGS when DEBUG is set to true. The inlines are also removed from the two functions in calculator.c

TomTheBear added a commit that referenced this pull request Aug 31, 2016
…n relation to PR #52 which does the changes in other files
@TomTheBear TomTheBear closed this Aug 31, 2016
@K-Wic K-Wic deleted the fix_debug branch August 31, 2016 12:15
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