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

重载 printf 导致输出文本格式化异常 #1

Open
darktiny opened this issue Jan 19, 2016 · 0 comments
Open

重载 printf 导致输出文本格式化异常 #1

darktiny opened this issue Jan 19, 2016 · 0 comments

Comments

@darktiny
Copy link

tracepath.c 中重载了 printf,但在某些情况下,该函数不会被调用,例如 printf("\n")

这似乎和 GCCLLVMprintf 的优化有关

http://www.ciselant.de/projects/gcc_printf/gcc_printf.html
https://groups.google.com/forum/#!topic/llvm-dev/slE2q7yoN-4
https://gcc.gnu.org/ml/gcc-help/2009-10/msg00362.html

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

No branches or pull requests

1 participant