1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0+ 3 # Test for gcc '-fstack-usage' support 4 # Copyright (C) 2013, Masahiro Yamada <yamada.m (at] jp.panasonic.com> 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 18