blob: 3db32e35f680061a8c45628fcf04dfb03dc24977 [file] [log] [blame]
Masahiro Yamada5b1f1f42013-12-11 20:11:34 +09001#!/bin/sh
Tom Rini83d290c2018-05-06 17:58:06 -04002# SPDX-License-Identifier: GPL-2.0+
Masahiro Yamada5b1f1f42013-12-11 20:11:34 +09003# Test for gcc '-fstack-usage' support
4# Copyright (C) 2013, Masahiro Yamada <yamada.m@jp.panasonic.com>
5#
Masahiro Yamada5b1f1f42013-12-11 20:11:34 +09006
7TMP="$$"
8
9cat <<END | $@ -Werror -fstack-usage -x c - -c -o $TMP >/dev/null 2>&1 \
10 && echo "y"
11int main(void)
12{
13 return 0;
14}
15END
16
17rm -f $TMP $TMP.su