platform/upstream/nasm.git
16 years agoTest version of dwarf debugging format for elf64
Charles Crayne [Thu, 7 Feb 2008 06:17:55 +0000 (22:17 -0800)]
Test version of dwarf debugging format for elf64

Not ready for prime time, but anyone who is interested
is welcome to help me test.

16 years agoMkfiles/README: document the Netware Makefile.
H. Peter Anvin [Wed, 6 Feb 2008 05:35:08 +0000 (21:35 -0800)]
Mkfiles/README: document the Netware Makefile.

16 years agoAdd Makefile for Netware
H. Peter Anvin [Wed, 6 Feb 2008 05:30:16 +0000 (21:30 -0800)]
Add Makefile for Netware

Add Makefile for Netware, using the GNU toolchain.

16 years agoversion.pl: produce Makefile variables
H. Peter Anvin [Wed, 6 Feb 2008 05:29:32 +0000 (21:29 -0800)]
version.pl: produce Makefile variables

Add a mode to version.pl to produce Makefile variables (used by
Netware Makefile.)

16 years agoFix "carryover" of exclude information from one file to another.
H. Peter Anvin [Wed, 6 Feb 2008 05:27:43 +0000 (21:27 -0800)]
Fix "carryover" of exclude information from one file to another.

my %foo; doesn't mean %foo is initialized to empty, need my %foo = ();
or my %foo = undef; or similar for that.

16 years agoNASM 2.02rc1
H. Peter Anvin [Wed, 30 Jan 2008 22:23:43 +0000 (14:23 -0800)]
NASM 2.02rc1

16 years agoAdd list of changes for 2.02, so far
H. Peter Anvin [Wed, 30 Jan 2008 22:22:17 +0000 (14:22 -0800)]
Add list of changes for 2.02, so far

16 years agoTest for BR 1879590
H. Peter Anvin [Wed, 30 Jan 2008 22:13:46 +0000 (14:13 -0800)]
Test for BR 1879590

16 years agoBR 1879590: More MMX/SSE size fixes
Ismail Dönmez [Wed, 30 Jan 2008 22:09:45 +0000 (14:09 -0800)]
BR 1879590: More MMX/SSE size fixes

Fix more instances of MMX/SSE having "SM" instead of "SQ" or "SO".
This should hopefully resolve bug report 1879590.

16 years agoBR 1880905: make sure we have enough zero-padding data for 'DO'
H. Peter Anvin [Mon, 28 Jan 2008 00:39:26 +0000 (16:39 -0800)]
BR 1880905: make sure we have enough zero-padding data for 'DO'

When using DO with a string that was too short, we would run off the
end of an all-zero buffer.  Make sure the buffer is long enough.

16 years agoPrevent segfault in stabs64_typevalue
Charles Crayne [Sun, 27 Jan 2008 20:49:20 +0000 (12:49 -0800)]
Prevent segfault in stabs64_typevalue

Prevent segfault when type == STT_OBJECT and no symbol
has been defined.

16 years agofloat.c: BR 1879670: fix output byte order
H. Peter Anvin [Fri, 25 Jan 2008 16:11:23 +0000 (08:11 -0800)]
float.c: BR 1879670: fix output byte order

The fix for the memory overwrite output the bytes in the wrong order.
Fix.

16 years agoIgnore ERR_PASS1 except for actual warnings
H. Peter Anvin [Tue, 22 Jan 2008 22:08:36 +0000 (14:08 -0800)]
Ignore ERR_PASS1 except for actual warnings

is_suppressed_warning() should never return true unless we're actually
dealing with a warning.  There is a handful of cases where we pass
ERR_PASS1 down together with errors, but that's mostly because it fits
into an overall pattern.  Thus, ignore it.

16 years agoRAA subsystem: use shift instead of divide
H. Peter Anvin [Tue, 22 Jan 2008 00:33:00 +0000 (16:33 -0800)]
RAA subsystem: use shift instead of divide

Make the RAA size always a power of two, so we can use shifts instead
of multiple, expensive divides.

16 years agopreproc.c: simplify detoken() slightly
H. Peter Anvin [Tue, 22 Jan 2008 00:31:57 +0000 (16:31 -0800)]
preproc.c: simplify detoken() slightly

Probably pointless optimization of detoken()...

16 years agonasmlib.c: log nasm_free() before calling free()
H. Peter Anvin [Tue, 22 Jan 2008 00:29:10 +0000 (16:29 -0800)]
nasmlib.c: log nasm_free() before calling free()

If we're logging nasm_free(), then log it before we actually call
free(); that way we can find out what the last thing was if free()
crashes.

16 years agonasmlib.h: nasm_zalloc() should call nasm_zalloc_log()
H. Peter Anvin [Tue, 22 Jan 2008 00:28:04 +0000 (16:28 -0800)]
nasmlib.h: nasm_zalloc() should call nasm_zalloc_log()

If we're doing logging, we need to call nasm_zalloc_log()

16 years agomisc/findleak.pl: make executable
H. Peter Anvin [Tue, 22 Jan 2008 00:26:32 +0000 (16:26 -0800)]
misc/findleak.pl: make executable

misc/findleak.pl: no text change, but mark file executable.

16 years agonasm.h: make t_type an enum
H. Peter Anvin [Tue, 22 Jan 2008 00:26:05 +0000 (16:26 -0800)]
nasm.h: make t_type an enum

Make t_type an enum to make debugging easier.

16 years agonasm.c: clean up the handing of response files
H. Peter Anvin [Tue, 22 Jan 2008 00:23:59 +0000 (16:23 -0800)]
nasm.c: clean up the handing of response files

Avoid using malloc/free (not nasm_malloc/nasm_free even) in the
processing of response files; move to separate function.

16 years agofloat.c: fix memory overwrite with 8-, 16- or 80-bit constants
H. Peter Anvin [Tue, 22 Jan 2008 00:19:52 +0000 (16:19 -0800)]
float.c: fix memory overwrite with 8-, 16- or 80-bit constants

We incorrectly clobbered 4 extra bytes when serializing 8-, 16- or
80-bit constants.  Be less smart, but actually correct.

16 years agoOpenWatcom makefiles: add DEBUG option
H. Peter Anvin [Tue, 22 Jan 2008 00:18:44 +0000 (16:18 -0800)]
OpenWatcom makefiles: add DEBUG option

Add a Makefile variable, DEBUG, which can be used to set debug options
(-d2, -DLOGALLOC, etc.)

16 years agoFix the options when compiling under OpenWatcom
H. Peter Anvin [Mon, 21 Jan 2008 19:50:31 +0000 (11:50 -0800)]
Fix the options when compiling under OpenWatcom

OpenWatcom needs different strings for compile and link target, so
using -bcl which uses the same string for both is just plain wrong.
This fixes that bit, but running nasm on test/floatx.asm (at least as
a DOS or a Win32 binary) crashes with a NULL pointer reference inside
the C library free() function.

16 years agodoc/Makefile.in: avoid deleting opt_var.txt, fix dependencies
H. Peter Anvin [Mon, 21 Jan 2008 05:50:02 +0000 (21:50 -0800)]
doc/Makefile.in: avoid deleting opt_var.txt, fix dependencies

Fix dependencies in the generation of the instruction list, and make
sure we don't delete opt_var.txt on "make spotless".

16 years agoAdd autogenerated instruction list to NASM documentation
Charles Crayne [Mon, 21 Jan 2008 00:27:03 +0000 (16:27 -0800)]
Add autogenerated instruction list to NASM documentation

1. Allow included files in rdsrc.pl
2. New program inslist.pl to generate instruction list from insns.dat
3. Mark certain comments in insns.dat as documentation subheaders
4. Add Instruction List appendix to nasmdoc.src
5. Update build process to invoke inslist.pl

16 years agoNASM 2.01
H. Peter Anvin [Thu, 17 Jan 2008 20:12:05 +0000 (15:12 -0500)]
NASM 2.01

16 years agoDocument change in ELF section limit
H. Peter Anvin [Thu, 17 Jan 2008 20:11:46 +0000 (15:11 -0500)]
Document change in ELF section limit

16 years agoMerge branch 'master' of git+ssh://ccrayne@repo.or.cz/srv/git/nasm
Charles Crayne [Thu, 17 Jan 2008 02:41:03 +0000 (18:41 -0800)]
Merge branch 'master' of git+ssh://ccrayne@repo.or.cz/srv/git/nasm

16 years agoIncrease GLOBAL_TEMP_BASE
Charles Crayne [Thu, 17 Jan 2008 02:38:48 +0000 (18:38 -0800)]
Increase GLOBAL_TEMP_BASE

Increase GLOBAL_TEMP_BASE from 4096 to 1048576

16 years agoRemove debugging printf
H. Peter Anvin [Sun, 13 Jan 2008 19:46:04 +0000 (11:46 -0800)]
Remove debugging printf

Remove debugging printf which shouldn't ever have been checked in ;)

16 years agoTemporary fix for large number of sections
Charles Crayne [Sat, 12 Jan 2008 01:22:19 +0000 (17:22 -0800)]
Temporary fix for large number of sections

Increase GLOBAL_TEMP_BASE TO 4096

16 years agoNASM 2.01rc2
H. Peter Anvin [Wed, 9 Jan 2008 07:07:50 +0000 (23:07 -0800)]
NASM 2.01rc2

16 years agoSanitize the pass logic, and only issue PASS1 warnings on pass0 == 1
H. Peter Anvin [Wed, 9 Jan 2008 07:03:57 +0000 (23:03 -0800)]
Sanitize the pass logic, and only issue PASS1 warnings on pass0 == 1

For PASS1 warnings, only do them when pass0 == 1.  The prior passes
are to be considered training passes.  This is a bit awkward if we
then hit an error, but it's better than n repeated warnings.

16 years agoRemove magic "five pass minimum" - I'm pretty sure optimizer is fixed.
H. Peter Anvin [Wed, 9 Jan 2008 06:31:20 +0000 (22:31 -0800)]
Remove magic "five pass minimum" - I'm pretty sure optimizer is fixed.

The five-pass-minimum was a hack for a bug which I think is identified
now.  Doesn't really change the fact that if you want the optimizer,
you probably want -Ox.

16 years agoOptimizer: force progression through final passes when hitting limit
H. Peter Anvin [Wed, 9 Jan 2008 06:29:21 +0000 (22:29 -0800)]
Optimizer: force progression through final passes when hitting limit

We have a number of bug reports about things not working properly when
the optimizer is running out of passes.  I suspect the reason is
simply that we don't properly execute the final passes (pass0 = 1, 2)
when hitting the limit.  Make sure we advance pass0 the last few
times.

16 years agoBR 1864243: better warnings for out-of-range constants
H. Peter Anvin [Wed, 9 Jan 2008 06:13:48 +0000 (22:13 -0800)]
BR 1864243: better warnings for out-of-range constants

In particular, we'd miss issuing warnings for out-of-range dword
values, and the message for constants too large (we can't deal with >
64 bits) said 32 bits, not 64.

16 years agodisasm: relative operands are signed, not unsigned
H. Peter Anvin [Wed, 2 Jan 2008 20:19:41 +0000 (12:19 -0800)]
disasm: relative operands are signed, not unsigned

Relative operands are signed, not unsigned; record them as such and
then apply proper truncation after offset addition.

16 years agoDefine MKDIR for rdoff make file
Charles Crayne [Sun, 30 Dec 2007 22:24:10 +0000 (14:24 -0800)]
Define MKDIR for rdoff make file

Addition of rdoff man pages uses MKDIR, which was not defined

16 years agoregularized spelling of license to match name of LICENSE file
Beroset [Sat, 29 Dec 2007 14:44:23 +0000 (09:44 -0500)]
regularized spelling of license to match name of LICENSE file

16 years agoCheck in Ed Beroset's documentation fix
Charles Crayne [Fri, 28 Dec 2007 23:00:03 +0000 (15:00 -0800)]
Check in Ed Beroset's documentation fix

Correct count in %strlen example

16 years agodisasm: 32-bit index registers were displayed as 64 bits
H. Peter Anvin [Thu, 27 Dec 2007 03:10:20 +0000 (19:10 -0800)]
disasm: 32-bit index registers were displayed as 64 bits

Fix bug where 32-bit index registers got incorrectly displayed as 64
bits:

00000000  678B040B          mov eax,[ebx+rcx]
00000004  678B044B          mov eax,[ebx+rcx*2]
00000008  678B045B          mov eax,[ebx+rbx*2]

16 years agoMore changes for 2.01
H. Peter Anvin [Wed, 26 Dec 2007 18:18:49 +0000 (10:18 -0800)]
More changes for 2.01

16 years agospecfile: correctly handle compressed manpages
H. Peter Anvin [Wed, 26 Dec 2007 18:18:01 +0000 (10:18 -0800)]
specfile: correctly handle compressed manpages

16 years agoNASM 2.01rc1
H. Peter Anvin [Tue, 25 Dec 2007 23:38:41 +0000 (15:38 -0800)]
NASM 2.01rc1

16 years agoDocument "-f elf" fix.
H. Peter Anvin [Tue, 25 Dec 2007 23:38:22 +0000 (15:38 -0800)]
Document "-f elf" fix.

16 years agoUpdate CHANGES for an upcoming 2.01 release.
H. Peter Anvin [Tue, 25 Dec 2007 23:31:27 +0000 (15:31 -0800)]
Update CHANGES for an upcoming 2.01 release.

16 years agoRemove bogus duplicates of the PREFETCH* instructions
H. Peter Anvin [Tue, 25 Dec 2007 23:07:39 +0000 (15:07 -0800)]
Remove bogus duplicates of the PREFETCH* instructions

16 years ago(Hopefully) fix the handing of MMX instructions with prefixes
H. Peter Anvin [Tue, 25 Dec 2007 23:18:12 +0000 (15:18 -0800)]
(Hopefully) fix the handing of MMX instructions with prefixes

Mark MMX instructions with \323 (do not add REX.W) unless they involve
the integer instruction file.

Change SM -> SQ for MMX instructions.

Something not complete attached, so my understanding is
mmxreg,mmxrm needs SQ

Something like xmmreg,reg32 needs SD
xmmreg,xmmrm needs SO

16 years agondisasm: handle instructions at offset zero
H. Peter Anvin [Thu, 20 Dec 2007 20:24:17 +0000 (12:24 -0800)]
ndisasm: handle instructions at offset zero

Correctly handle instructions at offset zero

16 years agoAdd RDOFF man pages to specfile.
H. Peter Anvin [Wed, 19 Dec 2007 00:13:47 +0000 (16:13 -0800)]
Add RDOFF man pages to specfile.

16 years agordoff: add man pages from the Debian project.
H. Peter Anvin [Wed, 19 Dec 2007 00:12:13 +0000 (16:12 -0800)]
rdoff: add man pages from the Debian project.

Add man pages for some of the rdoff programs, from the Debian project.

16 years agoComplete the altreg set with "r0h".."r3h".
H. Peter Anvin [Mon, 10 Dec 2007 23:36:39 +0000 (15:36 -0800)]
Complete the altreg set with "r0h".."r3h".

16 years agoMerge branch 'master' of git+ssh://repo.or.cz/srv/git/nasm
H. Peter Anvin [Mon, 10 Dec 2007 23:35:50 +0000 (15:35 -0800)]
Merge branch 'master' of git+ssh://repo.or.cz/srv/git/nasm

16 years agoDocument naming of registers in 64-bit mode
H. Peter Anvin [Mon, 10 Dec 2007 23:35:28 +0000 (15:35 -0800)]
Document naming of registers in 64-bit mode

Intel's docs diverge from AMD's docs (MASM follow AMD's docs);
formally document what we're doing and include a file of macros in
case someone wants to use alternate names.

16 years agoFix elf vs elf32 stabs generation bug
Charles Crayne [Sat, 1 Dec 2007 00:23:56 +0000 (16:23 -0800)]
Fix elf vs elf32 stabs generation bug

When invoked as -f elf -g, stabs info was not being generated.

16 years agoRefer to version 2.00 consistently as 2.00 not 2.0
H. Peter Anvin [Fri, 30 Nov 2007 01:30:11 +0000 (17:30 -0800)]
Refer to version 2.00 consistently as 2.00 not 2.0

16 years agodoc: 16- and 128-bit floating point were also new for 2.0
H. Peter Anvin [Fri, 30 Nov 2007 01:29:37 +0000 (17:29 -0800)]
doc: 16- and 128-bit floating point were also new for 2.0

16 years agoUpdate install instructions; remove references to nasmw.exe
H. Peter Anvin [Fri, 30 Nov 2007 01:28:05 +0000 (17:28 -0800)]
Update install instructions; remove references to nasmw.exe

16 years agodoc: s/NASM/nasm/ in invocation example
H. Peter Anvin [Fri, 30 Nov 2007 01:20:45 +0000 (17:20 -0800)]
doc: s/NASM/nasm/ in invocation example

On case-sensitive systems, "NASM" doesn't work.

16 years ago-o is output filename, not output format
H. Peter Anvin [Fri, 30 Nov 2007 01:19:49 +0000 (17:19 -0800)]
-o is output filename, not output format

16 years agoGive an example on how Unix and Win64 count argument differently
H. Peter Anvin [Fri, 30 Nov 2007 01:17:35 +0000 (17:17 -0800)]
Give an example on how Unix and Win64 count argument differently

16 years agoAllow numbers to be sorted separately from letters
H. Peter Anvin [Fri, 30 Nov 2007 01:10:04 +0000 (17:10 -0800)]
Allow numbers to be sorted separately from letters

Allow numbers to be sorted separately from letters.

16 years agonasmdoc.src: editorial changes
H. Peter Anvin [Fri, 30 Nov 2007 01:07:53 +0000 (17:07 -0800)]
nasmdoc.src: editorial changes

16 years agoCHANGES that were missed...
H. Peter Anvin [Fri, 30 Nov 2007 01:05:55 +0000 (17:05 -0800)]
CHANGES that were missed...

16 years agoUpdate COPYING file with the latest edition of LGPL 2.1
H. Peter Anvin [Thu, 29 Nov 2007 22:51:47 +0000 (14:51 -0800)]
Update COPYING file with the latest edition of LGPL 2.1

Not a new license, just editorial changes like the FSF address
changed.

16 years ago%ixdefine, not %xidefine
H. Peter Anvin [Thu, 29 Nov 2007 21:10:08 +0000 (13:10 -0800)]
%ixdefine, not %xidefine

The docs had %xidefine, the code has %ixdefine.  The code wins.

16 years agoNASM 2.00
H. Peter Anvin [Wed, 28 Nov 2007 21:14:43 +0000 (13:14 -0800)]
NASM 2.00

16 years agoAdd macho support to CHANGES
H. Peter Anvin [Wed, 28 Nov 2007 18:46:15 +0000 (10:46 -0800)]
Add macho support to CHANGES

16 years agoAdd OS/2 build instructions since our binaries don't work.
H. Peter Anvin [Wed, 28 Nov 2007 18:41:55 +0000 (10:41 -0800)]
Add OS/2 build instructions since our binaries don't work.

16 years agoBR 852464: Fix memory leak in %if/%elseif
H. Peter Anvin [Tue, 27 Nov 2007 06:02:21 +0000 (22:02 -0800)]
BR 852464: Fix memory leak in %if/%elseif

16 years agoAdditional CHANGES
H. Peter Anvin [Tue, 27 Nov 2007 05:43:55 +0000 (21:43 -0800)]
Additional CHANGES

16 years agoDocumention Changes for Release 2.00
Charles Crayne [Sun, 25 Nov 2007 22:25:13 +0000 (14:25 -0800)]
Documention Changes for Release 2.00

modified:   CHANGES
modified:   ChangeLog
modified:   doc/nasmdoc.src

16 years agoTypo fixes in documentation
H. Peter Anvin [Sun, 25 Nov 2007 00:31:48 +0000 (16:31 -0800)]
Typo fixes in documentation

Typo fixes in documentation, including BR 1836379

16 years agoNASM 2.00rc3
H. Peter Anvin [Wed, 21 Nov 2007 07:37:46 +0000 (23:37 -0800)]
NASM 2.00rc3

16 years agoUnbreak CMPSW/CMPSD/CMPSQ
H. Peter Anvin [Wed, 21 Nov 2007 05:45:16 +0000 (21:45 -0800)]
Unbreak CMPSW/CMPSD/CMPSQ

The CMPSW/CMPSD/CMPSQ instructions were broken by checkin
a30cc07224154c101c1275c148bf60d3acd43015 due to an incorrect removal
of \1 (should only have been removed after \144-147 and \154-157).  I
have verified that no other instructions were affected.

16 years agoMerge branch 'master' of git+ssh://repo.or.cz/srv/git/nasm
H. Peter Anvin [Tue, 20 Nov 2007 21:23:34 +0000 (13:23 -0800)]
Merge branch 'master' of git+ssh://repo.or.cz/srv/git/nasm

16 years agondisasm: handle the case of "no more sync points"
H. Peter Anvin [Tue, 20 Nov 2007 21:22:58 +0000 (13:22 -0800)]
ndisasm: handle the case of "no more sync points"

Handle the case of "no more sync points" explicitly, instead of saying
the next sync point is at UINT32_MAX.

16 years agoNASM 2.00rc2
H. Peter Anvin [Tue, 20 Nov 2007 07:09:31 +0000 (23:09 -0800)]
NASM 2.00rc2

16 years agotag-release: a simple script to tag the repository for release
H. Peter Anvin [Tue, 20 Nov 2007 07:09:24 +0000 (23:09 -0800)]
tag-release: a simple script to tag the repository for release

16 years agoSlightly faster implementation of the deadman counter
H. Peter Anvin [Mon, 19 Nov 2007 21:14:59 +0000 (13:14 -0800)]
Slightly faster implementation of the deadman counter

Count down to zero instead of up to a constant...

16 years agoBR 812417: Deadman counter for macro expansion
H. Peter Anvin [Mon, 19 Nov 2007 20:26:50 +0000 (12:26 -0800)]
BR 812417: Deadman counter for macro expansion

Per BR 812417, certain macro expansions can hang NASM.  Allow a
deadman counter (currently set to 2^20) to fail out if it gets
ridiculous.

16 years agoBR 877583: Fix RAA memory leak
H. Peter Anvin [Mon, 19 Nov 2007 20:02:38 +0000 (12:02 -0800)]
BR 877583: Fix RAA memory leak

raa_free() didn't actually do the proper job; it would only free leaf
nodes, not internal nodes.

16 years agoBR 863173: Fix offsets of TIMES/INCBIN in list file
H. Peter Anvin [Mon, 19 Nov 2007 19:53:18 +0000 (11:53 -0800)]
BR 863173: Fix offsets of TIMES/INCBIN in list file

Correct the emission of offsets for TIMES/INCBIN in the list file.

16 years agoBR 1834731: Remove redundant error messages for no input file
H. Peter Anvin [Mon, 19 Nov 2007 19:45:40 +0000 (11:45 -0800)]
BR 1834731: Remove redundant error messages for no input file

Avoid redundant error messages:

./nasm
nasm: error: no input file specified
nasm: fatal: file `' is both input and output file
type `nasm -h' for help

... which is more than a wee bit confusing to the user.

16 years agoinsns.pl: remove debugging output
H. Peter Anvin [Mon, 19 Nov 2007 19:44:05 +0000 (11:44 -0800)]
insns.pl: remove debugging output

Remove debugging output which was never meant to be checked in.

16 years agoClean up remaining build warnings
H. Peter Anvin [Mon, 19 Nov 2007 06:18:09 +0000 (22:18 -0800)]
Clean up remaining build warnings

Clean up remaining build warnings.  None of this should affect code
operations.  The only warnings which were actually relevant might have
been the ones in ldrdf.c, but it's not clear if anyone ever uses that.

16 years agoBR 1834292: Fix multiple disassembler bugs
H. Peter Anvin [Mon, 19 Nov 2007 05:55:26 +0000 (21:55 -0800)]
BR 1834292: Fix multiple disassembler bugs

- Correct the building on the disassembler decision tree.
- Handle SSE instructions with F2 prefix (\332) correctly.
- Mark instructions which are now used as prefixes with ND.
  (In a future version when we have better CPU version handling,
  we should probably build the decision tree at runtime based on
  the selected CPU feature sets.)
- Sanitize the handling of \144-147 and \154-157 in both the assembler
  and disassembler.  They take an opcode byte as argument; don't
  pretend they don't.

16 years agoBR 1834056: Remove warnings in rdoff/rdoff.c
H. Peter Anvin [Sun, 18 Nov 2007 20:01:05 +0000 (12:01 -0800)]
BR 1834056: Remove warnings in rdoff/rdoff.c

Remove warnings, especially the alias warnings in rdoff/rdoff.c.

16 years agoBR 1091926: Bounds checking for command line parsing
H. Peter Anvin [Sun, 18 Nov 2007 19:55:10 +0000 (11:55 -0800)]
BR 1091926: Bounds checking for command line parsing

Avoid failure if the command line has doctored arguments.

16 years agoRemove FIXME from documentation
H. Peter Anvin [Sun, 18 Nov 2007 05:21:18 +0000 (21:21 -0800)]
Remove FIXME from documentation

This better work now, we're in release candidate mode.

16 years agoCheck in Keith's Fixes
Charles Crayne [Sun, 18 Nov 2007 05:08:33 +0000 (21:08 -0800)]
Check in Keith's Fixes

1. Don't warn on 32-bit overflow
2. Change EM64T to Intel 64 in Defining CPU Dependencies
   section of documentation.

16 years agoMake the definition for float_const() match the prototype
H. Peter Anvin [Sat, 17 Nov 2007 22:35:19 +0000 (14:35 -0800)]
Make the definition for float_const() match the prototype

The definition for float_const() had int32_t, the prototype had only
int.  We only care about the sign, so int makes more sense.

16 years agoNASM 2.00rc1
H. Peter Anvin [Fri, 16 Nov 2007 08:03:02 +0000 (00:03 -0800)]
NASM 2.00rc1

16 years agoClean up the command-line parsing; make -w/-W match others
H. Peter Anvin [Fri, 16 Nov 2007 01:12:29 +0000 (17:12 -0800)]
Clean up the command-line parsing; make -w/-W match others

Clean up the command-line parsing and make -w/-W match the behaviour
of all the other options with regards to arguments.

16 years agoBR 993895: Support zero-operand floating-point insn
H. Peter Anvin [Thu, 15 Nov 2007 22:38:19 +0000 (14:38 -0800)]
BR 993895: Support zero-operand floating-point insn

Support the zero-operand form of floating-point instructions.  Note
that in most cases, the form generated is actually the "popping" form,
e.g. "FADD" becomes "FADDP st0,st1".  This is in accordance with the
Intel documentation.  "FADDP" is also supported.

16 years agoRemove some vestiges of "native" RESW/RESD support
H. Peter Anvin [Thu, 15 Nov 2007 18:25:52 +0000 (10:25 -0800)]
Remove some vestiges of "native" RESW/RESD support

We now internally convert all RESx opcodes to RESB, so we don't need
support for that in the assembler.

16 years agooutbin.c: fix one missed change from type -> size
H. Peter Anvin [Thu, 15 Nov 2007 18:24:55 +0000 (10:24 -0800)]
outbin.c: fix one missed change from type -> size

Fix one missed change from "type" to "size".  May want to look through
all the other backends as well for similar issues.

This would generate the wrong section lengths, with obviously bad results.

16 years agoSupport setting OSABI value in ELF header.
root [Wed, 14 Nov 2007 03:52:54 +0000 (19:52 -0800)]
Support setting OSABI value in ELF header.

16 years agoEnable a few warnings by default; clean up warning descriptions
H. Peter Anvin [Tue, 13 Nov 2007 19:34:34 +0000 (11:34 -0800)]
Enable a few warnings by default; clean up warning descriptions

16 years agoAdd gcc-style -W/-Wno- warning selections; -Wall; -Werror
H. Peter Anvin [Tue, 13 Nov 2007 19:31:15 +0000 (11:31 -0800)]
Add gcc-style -W/-Wno- warning selections; -Wall; -Werror

Add gcc-style -Wxxx -Wno-xxx warning selection as an alternative to
-w+xxx/-w-xxx.

Add "all" as an alias for all (actual) warnings.

Add "error" to treat warnings as errors.