uboot/scripts/gcc-stack-usage.sh
<<
>>
Prefs
   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@jp.panasonic.com>
   5#
   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
  18