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