Better support for function attributes, autoconf cleanups
commit8b190834832a0ccb947323d4fc19a9066512821e
authorH. Peter Anvin <hpa@linux.intel.com>
Tue, 15 Nov 2016 22:01:37 +0000 (15 14:01 -0800)
committerH. Peter Anvin <hpa@linux.intel.com>
Tue, 15 Nov 2016 22:01:37 +0000 (15 14:01 -0800)
treed66f3dba9f2068631c6d5e0f498a36c784b81f63
parent70d0458050f654c2f55993a200bcd351b1e310e7
Better support for function attributes, autoconf cleanups

Use autoconf to detect function attributes; some compilers like Sun CC
do support some gcc-style attributes, but don't define __GNUC__.  Also
-U__STRICT_ANSI__ already in configure.ac so our tests match what we
might eventually encounter.

Add const_func and pure_func attributes.

Decorate functions in nasmlib.h with const_func and pure_func.

Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
aclocal.m4
configure.ac
include/compiler.h
include/nasmlib.h