]> git.ipfire.org Git - people/ms/u-boot.git/blame - scripts/gcc-stack-usage.sh
mmc: omap_hsmmc: do not embed struct mmc in struct omap_hsmmc_plat
[people/ms/u-boot.git] / scripts / gcc-stack-usage.sh
CommitLineData
5b1f1f4a
MY
1#!/bin/sh
2# Test for gcc '-fstack-usage' support
3# Copyright (C) 2013, Masahiro Yamada <yamada.m@jp.panasonic.com>
4#
5# SPDX-License-Identifier: GPL-2.0+
6#
7
8TMP="$$"
9
10cat <<END | $@ -Werror -fstack-usage -x c - -c -o $TMP >/dev/null 2>&1 \
11 && echo "y"
12int main(void)
13{
14 return 0;
15}
16END
17
18rm -f $TMP $TMP.su