H. Peter Anvin
d08b1c4370
Merge remote-tracking branch 'origin/nasm-2.13.xx' into nasm-2.13.xx
...
Resolved Conflicts:
include/iflag.h
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2018-02-06 14:50:08 -08:00
H. Peter Anvin
a7ecf2646d
iflag: automatically assign values, saner handling of CPU levels
...
Automatically assign values to the instruction flags; we ended up with
a case where pushing flags into the next dword caused comparison
failures due to other places in the code explicitly comparing
field[3].
This creates necessary defines for this not to happen; it also cleans
up a fair bit of the iflag code.
This resolves BR 3392454.
Reported-by: Thomasz Kantecki <tomasz.kantecki@intel.com >
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2018-02-06 14:43:07 -08:00
Cyrill Gorcunov
7c640b7579
NASM 2.13.03rc4
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
nasm-2.13.03rc4
2018-02-07 00:06:47 +03:00
Cyrill Gorcunov
91f8aa7118
iflag: Fix iflag_cmp_cpu_level
...
In commit a8f3698cf3
the iflag_cmp_cpu_level escaped updating. Fix it.
Reported-by: Tomasz Kantecki <tomasz.kantecki@intel.com >
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2018-02-06 23:04:58 +03:00
Cyrill Gorcunov
4d7e680cb0
NASM 2.13.03rc3
...
Need a new version due to occasional merge,
see da1cb0e000
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
nasm-2.13.03rc3
2018-02-05 20:23:47 +03:00
Cyrill Gorcunov
da1cb0e000
Revert "insns.dat: Add VAESENC, VAESENCLAST instructions"
...
This reverts commit d625f85cd2 .
Occasionally merged in from the master, while it was here
already in different form.
2018-02-05 20:20:48 +03:00
Cyrill Gorcunov
d287398b8d
NASM 2.13.03rc2
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
nasm-2.13.03.rc2
2018-02-05 20:14:25 +03:00
Cyrill Gorcunov
9254323fdf
changes.doc: document dwarf issue
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2018-02-05 20:13:44 +03:00
Cyrill Gorcunov
e0ff7b025b
output: elf -- Add missing dwarf loc section
...
Lost during elf engine unification in
4670887c4d
https://bugzilla.nasm.us/show_bug.cgi?id=3392459
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2018-02-05 20:08:10 +03:00
Tomasz Kantecki
d625f85cd2
insns.dat: Add VAESENC, VAESENCLAST instructions
...
Signed-off-by: Tomasz Kantecki <tomasz.kantecki@intel.com >
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2018-02-05 20:04:52 +03:00
Cyrill Gorcunov
70c439b8de
output: elf -- Add missing dwarf loc section
...
Lost during elf engine unification in
4670887c4d
https://bugzilla.nasm.us/show_bug.cgi?id=3392459
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2018-01-28 00:56:18 +03:00
H. Peter Anvin
2f47c3c229
Merge tag 'nasm-2.13.03rc1'
...
NASM 2.13.03rc1
Resolved Conflicts:
version
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2018-01-08 13:01:27 -08:00
H. Peter Anvin
2eb00b5fe1
NASM 2.13.03rc1
nasm-2.13.03rc1
2018-01-08 13:00:22 -08:00
H. Peter Anvin
0c2da082ee
changes.doc: document VAES* and VPCLMULQDQ
...
Document new instruction support.
Signed-off-by: H. Peter Anvin <hpa@zytor.com >
2018-01-08 12:59:26 -08:00
Tomasz Kantecki
4764dfaa51
insns.dat: Add VPCLMULQDQ instruictions
...
https://bugzilla.nasm.us/show_bug.cgi?id=3392455
Signed-off-by: Tomasz Kantecki <tomasz.kantecki@intel.com >
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2018-01-08 12:53:48 -08:00
Cyrill Gorcunov
7680602f86
insns-flags: Add VPCLMULQDQ flag
...
In sake of https://bugzilla.nasm.us/show_bug.cgi?id=3392455
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2018-01-08 12:53:41 -08:00
Cyrill Gorcunov
581fc6899b
insns.dat: Move VAES instructions to AES group
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2018-01-08 12:53:32 -08:00
Tomasz Kantecki
1aebcc76e3
insns.dat: Add VAESENC, VAESENCLAST instructions
...
Signed-off-by: Tomasz Kantecki <tomasz.kantecki@intel.com >
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2018-01-08 12:53:26 -08:00
Cyrill Gorcunov
a8f3698cf3
insns-iflags: Add AES, VAES flags
...
In sake of https://bugzilla.nasm.us/show_bug.cgi?id=3392454
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2018-01-08 12:53:19 -08:00
Tomasz Kantecki
c90d99a655
insns.dat: Add VPCLMULQDQ instruictions
...
https://bugzilla.nasm.us/show_bug.cgi?id=3392455
Signed-off-by: Tomasz Kantecki <tomasz.kantecki@intel.com >
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2017-12-29 17:20:33 +03:00
Cyrill Gorcunov
f1f8ef48f4
insns-flags: Add VPCLMULQDQ flag
...
In sake of https://bugzilla.nasm.us/show_bug.cgi?id=3392455
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2017-12-29 17:20:29 +03:00
Cyrill Gorcunov
0ba95b7767
insns.dat: Move VAES instructions to AES group
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2017-12-29 17:20:25 +03:00
Tomasz Kantecki
3a6c71f931
insns.dat: Add VAESENC, VAESENCLAST instructions
...
Signed-off-by: Tomasz Kantecki <tomasz.kantecki@intel.com >
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2017-12-29 17:20:21 +03:00
Cyrill Gorcunov
73ab510c71
insns-iflags: Add AES, VAES flags
...
In sake of https://bugzilla.nasm.us/show_bug.cgi?id=3392454
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2017-12-29 17:20:17 +03:00
H. Peter Anvin
81b62b9f54
Eliminate filename length restrictions, remote ofmt->filename()
...
Get rid of remaining dependencies on FILENAME_MAX, which ought to have
been removed a long time ago.
Remove ofmt->filename(); all implementations pretty much do the same
thing and there is absolutely no reason to duplicate that
functionality all over the place.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-12-20 13:38:20 -08:00
H. Peter Anvin
dcbaf677d4
error: add --enable-panic-abort config options
...
For debugging purposes, make it possible to force calling abort() on
ERR_PANIC.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-12-20 12:10:33 -08:00
H. Peter Anvin
7a6bf74d02
error: add ERR_TOPFILE
...
Add ERR_TOPFILE, for cases where displaying the current file and line
are completely inappropriate. Instead, display the main input file,
or, if not available, the output file.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-12-20 12:10:13 -08:00
H. Peter Anvin
883985def5
nasm.c: better handling of errors without a file without ERR_NOFILE
...
We have hardcoded ERR_NOFILE in a number of places which really should
not need them, and it represents loss of information. Instead, be
robust in the handling either of no filename or no line number.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-12-20 11:32:39 -08:00
H. Peter Anvin
29dff5a29e
saa.c: unify the various saa_write*() routines
...
Use cpu_to_le*() to unify the various saa_write*() routines.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 17:31:14 -08:00
H. Peter Anvin
f52ea70dd1
bytesex.h: more simplifications and add const
...
Add more simplifications where it is practical; unify WRITECHAR() as
it has no need for byte swapping in any way.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 17:19:27 -08:00
H. Peter Anvin
df5548a40c
bytesex.h: make sure WRITE*() doesn't screw up on wrong pointer type
...
Make the WRITE*() macros independent of pointer type. As it was, we
would get totally wrong result on X86_MEMORY machines if the pointer
was not uint8_t *.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 17:07:58 -08:00
H. Peter Anvin
7370483b00
bytesex.h: remove an unnecessary double expansion in WRITEADDR()
...
We can't really avoid the double expansion of (p), but the WRITE*()
macros all do that. However, there is no reason to double-expand (s).
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 16:59:49 -08:00
H. Peter Anvin
8cdde2bbaa
bytesex.h: simplify the trivial case of cpu_to_le*()
...
In the trivial case, cpu_to_le*() can just be macros containing a
single cast.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 16:56:59 -08:00
H. Peter Anvin
82025ea0e9
nasmlib/file.c: simplify and unify fwriteint*/addr()
...
The fwriteint*() and fwriteaddr() functions can be trivially unified
by using cpu_to_le*().
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 16:53:52 -08:00
H. Peter Anvin
b533f545e4
compiler.h: HAVE___BUILTIN_CONSTANT_P has 3 underscores
...
HAVE_ + __BUILTIN_CONSTANT_P makes 3 underscores...
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 16:48:27 -08:00
H. Peter Anvin
03a5187c59
compiler.h: indentation cleanup
...
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 16:36:14 -08:00
H. Peter Anvin
b230622576
bytesex.h: unify and optimize WRITEADDR()
...
WRITEADDR() really doesn't need multiple implementations. Unify them,
and optimize the case of a constant length argument (not sure if that
is currently used, however.)
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 16:05:59 -08:00
H. Peter Anvin
cb7da7e7f6
compiler.h: add is_constant()
...
Add macro is_constant() to return true if and only if the value is a
compile-time constant. It may never return true, however.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 16:05:05 -08:00
H. Peter Anvin
e5033dfd1c
configure.ac: add endian headers to configure test
...
- Add endian headers to the standard tests if present
- Check for __builtin_constant_p()
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 16:04:05 -08:00
H. Peter Anvin
2dbfdee780
aclocal.m4: correct and update PA_HAVE_FUNC()
...
PA_HAVE_FUNC() would fail on some systems for inline functions or
macros due to missing #includes. Also modernize to current autoconf
style.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 16:02:52 -08:00
H. Peter Anvin
4b70b62ba2
Makefile.in: fix typo in pathname
...
tools/ not qtools/
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 15:27:51 -08:00
H. Peter Anvin
670db2fd35
Merge tag 'nasm-2.13.02'
...
NASM 2.13.02
Resolved Conflicts:
version
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 11:31:36 -08:00
H. Peter Anvin
fe2f6de2ee
NASM 2.13.02
nasm-2.13.02
2017-11-29 11:29:38 -08:00
H. Peter Anvin
075ebe7f66
doc: clean up 2.13.02 release notes, document MachO debug option
...
Clean up the 2.13.02 release notes: we don't need to list every single
subcase where we would crash, as it is not really relevant to the
user.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 11:25:24 -08:00
H. Peter Anvin
23b971d993
doc: clarify the BITS issue for 2.13.02.
...
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-29 11:05:02 -08:00
Cyrill Gorcunov
d44a7c0a7c
NASM 2.13.02rc3
nasm-2.13.02rc3
2017-11-26 00:36:49 +03:00
Cyrill Gorcunov
8e2307caca
docs: changes -- Drop leftover
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2017-11-25 17:42:45 +03:00
Cyrill Gorcunov
4c171ce268
doc: Update changes for 2.13.02
...
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com >
2017-11-25 17:41:38 +03:00
H. Peter Anvin
53d8f220e1
msvc.mak: fix yet another recursion situation
...
We don't want to call make to rebuild msvc.dep when that is what we
are actually trying to do, over and over again...
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-08 11:08:37 -08:00
H. Peter Anvin
9fd8a34938
msvc.mak: avoid infinite recursion on msvc.dep
...
We can't call $(MAKE) on msvc.dep if running that requires us to have
msvc.dep...
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com >
2017-11-08 11:06:39 -08:00