]> Git Repo - J-u-boot.git/blob - scripts/gcc-stack-usage.sh
Makefile: add a new script to check -fstack-usage support
[J-u-boot.git] / scripts / gcc-stack-usage.sh
1 #!/bin/sh
2 # Test for gcc '-fstack-usage' support
3 # Copyright (C) 2013, Masahiro Yamada <[email protected]>
4 #
5 # SPDX-License-Identifier:      GPL-2.0+
6 #
7
8 TMP="$$"
9
10 cat <<END | $@ -Werror -fstack-usage -x c - -c -o $TMP >/dev/null 2>&1 \
11                                                         && echo "y"
12 int main(void)
13 {
14         return 0;
15 }
16 END
17
18 rm -f $TMP $TMP.su
This page took 0.028124 seconds and 4 git commands to generate.