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

Optimise to omit frame pointer even in a debug build #19

Merged
merged 2 commits into from
Jan 20, 2016
Merged

Conversation

LiyouZhou
Copy link
Contributor

In bootloader_util.c there is a piece of asm that uses
r7. r7 is usually used by gcc as a frame pointer hence gcc
would complain even though a frame pointer is not actually
needed. -fomit-frame-pointer prevents this warning.

fixes #11

@pan- @andresag01 please review

Liyou Zhou added 2 commits January 12, 2016 15:42
In bootloader_util.c there is a piece of asm that uses
r7. r7 is usually used by gcc as a frame pointer hence gcc
would complain even though a frame pointer is not actually
needed. -fomit-frame-pointer prevents this warning.
@andresag01
Copy link

This seems to fix the problem. I tried building with GCC and -d and it succeeds. Also the application works as expected.

Lets wait for @pan- to comment.

@pan-
Copy link
Member

pan- commented Jan 20, 2016

It's ok for me, I merge.

pan- added a commit that referenced this pull request Jan 20, 2016
Optimise to omit frame pointer even in a debug build
@pan- pan- merged commit 629fe52 into master Jan 20, 2016
@0xc0170 0xc0170 mentioned this pull request Feb 17, 2016
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.

It's not possible to generate a debug build with nrf51-sdk 1.0.1
3 participants