]> git.ipfire.org Git - thirdparty/u-boot.git/blame - scripts/gcc-stack-usage.sh
Merge branch 'next' of https://source.denx.de/u-boot/custodians/u-boot-riscv into...
[thirdparty/u-boot.git] / scripts / gcc-stack-usage.sh
CommitLineData
5b1f1f4a 1#!/bin/sh
83d290c5 2# SPDX-License-Identifier: GPL-2.0+
5b1f1f4a
MY
3# Test for gcc '-fstack-usage' support
4# Copyright (C) 2013, Masahiro Yamada <yamada.m@jp.panasonic.com>
5#
5b1f1f4a
MY
6
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