summaryrefslogtreecommitdiffstats
path: root/package/gcc
diff options
context:
space:
mode:
authorFrancois Perrad <fperrad@gmail.com>2017-08-06 12:56:08 +0200
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>2017-08-09 23:41:51 +0200
commit128a16aceeb43d7d22b10c6845f7c4d09439e031 (patch)
tree31067e634574e753ba3d7ad43d51a4e050eacbfb /package/gcc
parentd2f0f5df468209e0bd97b54e713e80e92188ef4f (diff)
downloadbuildroot-128a16aceeb43d7d22b10c6845f7c4d09439e031.tar.gz
buildroot-128a16aceeb43d7d22b10c6845f7c4d09439e031.zip
ficl: fix build with gcc 7
gcc 7 with -Os (optimize for size) takes the liberty to remove the code of inline functions entirely - which is indeed allowed according to the C99 standard, cfr. this [1] very complete StackOverflow answer. This leads to undefined function references at link time. The proper approach is to patch the code to use 'static inline' instead. However, for various reasons such a patch is not entirely trivial, and upstream has not moved since 7 years, so instead take the simpler approach of restoring the gcc original inline behaviour with -fgnu89-inline to fix this issue. Fixes http://autobuild.buildroot.org/results/d72/d72a7e9775a10bc884b9953dd2eba3ad32100cca [1] https://stackoverflow.com/questions/6312597/is-inline-without-static-or-extern-ever-useful-in-c99 Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Diffstat (limited to 'package/gcc')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud