Wframe-larger-than flag bug

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Wframe-larger-than flag bug

David Zarzycki via cfe-dev
Hi,

I'm compiling my project with clang version 7.0.0-3.
I added compilation flag frame-larger-than in order to warning using more than 1024 bytes.

clang indeed warning as expected, but when I added -Werror in order to treat the warning as error clang ignore this flag and it stays warning.

the compilation flags include also save-temps=obj, when I remove this flag the warning treated as error.

Does save-temps flag should be related to -Werror or -Wframe-larger-than?

full compilation flags:  
clang++-7 -D_SYS_LINUX_ -D_HOSTSYS_LINUX_ -D_CPU_  -D_SYS64_ -D_DEBUG_ -O2  -Wframe-larger-than=1024 -MD -Wall -save-temps=obj -Wextra -Wshadow -Werror -g -ggdb -fPIC

Thanks,
Ohad

_______________________________________________
cfe-dev mailing list
[hidden email]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev