-
Notifications
You must be signed in to change notification settings - Fork 3k
minimal-printf should not bypass the retargetting code #11235
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
{ | ||
"GCC_ARM": { | ||
"common": ["-DMBED_MINIMAL_PRINTF", "-fno-builtin-printf"], | ||
"common": ["-DMBED_MINIMAL_PRINTF"], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was this removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Because the change is making printf work "normally", so the compiler no longer needs to treat it as "abnormal". Without this option, the compiler can transform Putting this option in meant output was consistent as long as the user always used There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. I need to understand how that retarget work. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's not so much about how the retargetting works in detail as the fact you're short-circuiting it
If those things don't all go to the same place, or skip the buffering among only some paths, then things get weird when you mix them. (The retargetting controls where fputc(stdout) goes, and then all other I/O calls follow). |
||
"ld": ["-Wl,--wrap,printf", "-Wl,--wrap,sprintf", "-Wl,--wrap,snprintf", | ||
"-Wl,--wrap,vprintf", "-Wl,--wrap,vsprintf", "-Wl,--wrap,vsnprintf", | ||
"-Wl,--wrap,fprintf", "-Wl,--wrap,vfprintf"] | ||
}, | ||
"ARMC6": { | ||
"common": ["-DMBED_MINIMAL_PRINTF", "-fno-builtin-printf"] | ||
"common": ["-DMBED_MINIMAL_PRINTF"] | ||
}, | ||
"ARM": { | ||
"common": ["-DMBED_MINIMAL_PRINTF"] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should
minimal-printf-enable-file-stream
also be removed givenmbed_minimal_putchar
no longer considers it?If it should be removed, references in
mbed_printf.c/h
andmbed_printf_wrapper.c
also should be removed.Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ec7e232