nasm/include
Cyrill Gorcunov 7d23d8d26f compier: Zap __builtin_constant_p on gcc 4.x series
It is been discovered that on gcc-4.8.4 compiler can't
properly evaluate __builtin_constant_p.

 | gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
 |
 | In file included from asm/nasm.c:38:0:
 | asm/nasm.c: In function ‘assemble_file’:
 | ./include/compiler.h:377:27: error: first argument to ‘__builtin_choose_expr’ not a constant
 |  # define if_constant(x,y) __builtin_choose_expr(is_constant(x),(x),(y))
 |                            ^
 | ./include/nasmlib.h:145:23: note: in expansion of macro ‘if_constant’
 |          static_assert(if_constant(x, 1), #x);                               \
 |                        ^
 | ./include/nasmlib.h:167:9: note: in expansion of macro ‘nasm_try_static_assert’
 |          nasm_try_static_assert(x);                              \
 |          ^
 | asm/nasm.c:1544:17: note: in expansion of macro ‘nasm_assert’
 |                  nasm_assert(output_ins.times >= 0);
 |

Zap it for 4.x series so we could run our tests.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
2018-12-15 20:33:25 +03:00
..
bytesex.h bytesex.h: more simplifications and add const 2017-11-29 17:19:27 -08:00
compiler.h compier: Zap __builtin_constant_p on gcc 4.x series 2018-12-15 20:33:25 +03:00
disp8.h
error.h nasm_warnf() -> nasm_warn() 2018-12-14 13:33:24 -08:00
hashtbl.h hashtbl: revamp the hash table interface, support binary keys 2018-12-11 13:18:49 -08:00
iflag.h Fix problem with C99 inlines and -Werror=missing-prototypes 2018-02-20 12:34:17 -08:00
ilog2.h ilog2: return unsigned int for applicable routines 2018-06-14 19:20:08 -07:00
insns.h Merge tag 'nasm-2.13.03' 2018-02-07 13:51:54 -08:00
labels.h Cleanup of label renaming infrastructure, add subsection support 2018-06-01 18:06:25 -07:00
md5.h
nasm.h Restore the ability to have ? in identifiers, except ? itself 2018-12-14 00:57:05 -08:00
nasmint.h nasmint.h: change header guards to NASM_NASMINT_H 2016-10-04 18:11:57 -07:00
nasmlib.h nasmlib: Fix space/tabs mess 2018-12-15 18:14:50 +03:00
nctype.h Restore the ability to have ? in identifiers, except ? itself 2018-12-14 00:57:05 -08:00
opflags.h opflags: Convert is_class and is_reg_class to helpers 2018-10-13 22:57:30 +03:00
perfhash.h Add generic perfect string hashes, use for directives 2017-04-03 00:27:07 -07:00
raa.h RAA: make pointer vs integer RAAs type safe 2018-06-18 17:11:54 -07:00
rbtree.h
rdoff.h rdoff: use nasm-provided safe memory allocation and I/O 2017-04-17 13:56:50 -07:00
saa.h saa, raa: saa_init() and raa_init() will never return NULL 2017-04-23 23:37:11 -07:00
strlist.h strlist, warnings: improve strlist, buffer warnings until error 2018-12-14 00:17:13 -08:00
tables.h Handle multiple standard macro sets sanely 2016-07-13 14:23:48 -07:00
ver.h version: Make them dynamic for regression tests sake 2018-11-24 16:59:32 +03:00