We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Instead of printing include file names, it always prints the main source file names. This is inconsistent with gcc and makes the output ambiguous.
// test.inc: void foo(void); void foo(void) { } // test.c: #include "test.inc"
gcc:
echo 'void foo(void); void foo(void) { }' > test.inc && echo '#include "test.inc"' > test.c && gcc -fstack-usage -c test.c -o test.o && cat test.su
output: test.inc:1:22:foo 16 static
test.inc:1:22:foo 16 static
clang:
echo 'void foo(void); void foo(void) { }' > test.inc && echo '#include "test.inc"' > test.c && clang-15 -fstack-usage -c test.c -o test.o && cat test.su
output: test.c:1:foo 8 static
test.c:1:foo 8 static
The text was updated successfully, but these errors were encountered:
-fstack-usage: fix filename for functions in an included file
343f5ab
Fix llvm#69889
-fstack-usage: fix filename for functions in an included file (#69896)
d5b0ad6
Fix #69889
MaskRay
Successfully merging a pull request may close this issue.
Instead of printing include file names, it always prints the main source file names. This is inconsistent with gcc and makes the output ambiguous.
gcc:
echo 'void foo(void); void foo(void) { }' > test.inc && echo '#include "test.inc"' > test.c && gcc -fstack-usage -c test.c -o test.o && cat test.su
output:
test.inc:1:22:foo 16 static
clang:
echo 'void foo(void); void foo(void) { }' > test.inc && echo '#include "test.inc"' > test.c && clang-15 -fstack-usage -c test.c -o test.o && cat test.su
output:
test.c:1:foo 8 static
The text was updated successfully, but these errors were encountered: