From 43db9e00d5837c100c0b2fbbee64a08ab807d1e0 Mon Sep 17 00:00:00 2001 From: thead_admin Date: Tue, 13 Sep 2022 11:04:33 +0800 Subject: Linux_SDK_V0.9.5 --- scripts/gcc-stack-usage.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 scripts/gcc-stack-usage.sh (limited to 'scripts/gcc-stack-usage.sh') diff --git a/scripts/gcc-stack-usage.sh b/scripts/gcc-stack-usage.sh new file mode 100755 index 00000000..3db32e35 --- /dev/null +++ b/scripts/gcc-stack-usage.sh @@ -0,0 +1,17 @@ +#!/bin/sh +# SPDX-License-Identifier: GPL-2.0+ +# Test for gcc '-fstack-usage' support +# Copyright (C) 2013, Masahiro Yamada +# + +TMP="$$" + +cat </dev/null 2>&1 \ + && echo "y" +int main(void) +{ + return 0; +} +END + +rm -f $TMP $TMP.su -- cgit v1.2.3