Peter Johnson
db77651458
Add DO_FREE #defined constant to allow disabling of deallocation for speed.
...
svn path=/trunk/yasm/; revision=821
22 years ago
Peter Johnson
d510e21546
Add option for parser to associate input text (after preprocessing) with each
...
line in the linemgr.
svn path=/trunk/yasm/; revision=820
22 years ago
Peter Johnson
e9f81d0715
Check count returned by nasm_parser_input() against 0 instead of just a short
...
count to detect EOF.
svn path=/trunk/yasm/; revision=819
22 years ago
Peter Johnson
af90bb224b
fix_directive_symrec() needs to return a value for all cases.
...
svn path=/trunk/yasm/; revision=818
22 years ago
Peter Johnson
1d57da41a2
Fixup directive symrecs to point at global instead of local symbols if the
...
direxpr is not just an ID.
svn path=/trunk/yasm/; revision=817
22 years ago
Peter Johnson
6cca62a6ac
Update addresses.
...
svn path=/trunk/yasm/; revision=816
22 years ago
Peter Johnson
4ff55cd473
Fix dbgfmt loading (should call load_dbgfmt not load_objfmt).
...
svn path=/trunk/yasm/; revision=815
22 years ago
Peter Johnson
ca47740b40
Allow "Athlon64" as an alias for Sledgehammer.
...
svn path=/trunk/yasm/; revision=814
22 years ago
Peter Johnson
c14fc49bc0
Add test for a large absolute section. By: H. Peter Anvin <hpa@zytor.com>.
...
svn path=/trunk/yasm/; revision=813
22 years ago
Peter Johnson
af56335ec8
Add x86-64 effective address support, as well as a couple of tests for it.
...
svn path=/trunk/yasm/; revision=812
22 years ago
Peter Johnson
1e715b81f8
Put test suite file results into a separate "results" directory.
...
svn path=/trunk/yasm/; revision=811
22 years ago
Peter Johnson
2eb7929f86
Treat ',' as a directive valparam separator.
...
svn path=/trunk/yasm/; revision=810
22 years ago
Peter Johnson
fdb4997a00
Add basic x86-64 support (memory references are not properly handled yet).
...
It's enabled via the [bits 64] directive.
Add some tests for x86-64 as well as 32/16 bit modes.
Enable some previously committed tests in Makefile.inc.
svn path=/trunk/yasm/; revision=809
22 years ago
Peter Johnson
62e4ea64da
The AMD Athlon is also known as the K7.
...
svn path=/trunk/yasm/; revision=808
22 years ago
Peter Johnson
18fdce971d
Add official name for AMD's "sledgehammer" CPU: "Opteron".
...
svn path=/trunk/yasm/; revision=807
22 years ago
Peter Johnson
afd44a54ee
Fix comments.
...
svn path=/trunk/yasm/; revision=806
22 years ago
Peter Johnson
0975ab9dc1
Fix typo/bug in handling of OPA_AdSizeR (using wrong insn_info *).
...
svn path=/trunk/yasm/; revision=805
22 years ago
Peter Johnson
ee94cd4700
Go back to using a more-centralized function for front-end error reporting.
...
Also fix a crash in one of the error conditions (inappropriate cleanup call).
svn path=/trunk/yasm/; revision=804
22 years ago
Peter Johnson
5c6bf203eb
Duplicate filename to ensure no double-frees occur.
...
svn path=/trunk/yasm/; revision=803
22 years ago
Peter Johnson
1dc6132b00
Check for null pointers before freeing to avoid dmalloc errors.
...
svn path=/trunk/yasm/; revision=802
22 years ago
Peter Johnson
c46032973e
Fix distcheck build issues.
...
svn path=/trunk/yasm/; revision=801
22 years ago
Peter Johnson
49623d5589
Add the "real" NASM preprocessor, and default to it. As NASM is LGPL, no
...
licensing issues with this. All the compiler warnings have been fixed, and
most namespace issues resolved. However, the integration isn't perfect, and
there are probably memory leaks. Note that right now the real NASM preproc
and "compatible" NASM parser share a module. The parser should probably be
renamed to avoid extra loading and code source confusion.
svn path=/trunk/yasm/; revision=800
22 years ago
Peter Johnson
f9bc51bfd0
Make sure we use the yapp preprocessor when running yapp tests.
...
svn path=/trunk/yasm/; revision=799
22 years ago
Peter Johnson
86751029a3
Add va_list versions of error and warning errwarn functions.
...
Required adding stdarg to util.h.
svn path=/trunk/yasm/; revision=798
22 years ago
Peter Johnson
dd915a3eef
Initial revision
...
svn path=/trunk/yasm/; revision=794
22 years ago
Peter Johnson
da2a49113a
x86_bc_resolve_jmprel(): Plug memory leak.
...
svn path=/trunk/yasm/; revision=793
22 years ago
Peter Johnson
9f6cb6783f
Modularize errwarn. gettext()-ize in errwarn, not in every module, eliminating
...
libintl dependency in modules.
Also standardize initialize() and cleanup() functions.
Move replace_extension() from file.c to main.c.
Clean up some extern variable declarations in various places (particularly
nasm-compatible parser).
svn path=/trunk/yasm/; revision=792
22 years ago
Peter Johnson
6fd648a146
Add coff-objfmt.c.
...
svn path=/trunk/yasm/; revision=791
22 years ago
Peter Johnson
f729b9e5d5
initialize() comment fix.
...
svn path=/trunk/yasm/; revision=790
22 years ago
Peter Johnson
b891463826
Parameters to input changed from unsigned long to linemgr *.
...
svn path=/trunk/yasm/; revision=789
22 years ago
Peter Johnson
dd8fa20efa
Add missing gettext call for one of the warning messages.
...
svn path=/trunk/yasm/; revision=788
22 years ago
Peter Johnson
2f19ce4ecd
Delete last of global variables by making a line manager and passing around
...
the line index. Fixes some minor line number/error message nits due to
incorrect usage of line_index in old global variable method.
svn path=/trunk/yasm/; revision=787
22 years ago
Peter Johnson
caf89035f8
Remove indent_level global by passing it as a parameter.
...
svn path=/trunk/yasm/; revision=786
22 years ago
Peter Johnson
a3d4ccd55c
Actually load and check for debug format, instead of trying to load it as an
...
object format (typos).
svn path=/trunk/yasm/; revision=785
22 years ago
Peter Johnson
d6f22c3fce
Dynamically load all modules (preloading some of the default ones).
...
Start reducing global variables for cleaner module separation.
Add rudimentary debug format module interface and "null" debug format.
svn path=/trunk/yasm/; revision=784
22 years ago
Peter Johnson
e14601499b
Allow single strings to be used as parameters for directives.
...
svn path=/trunk/yasm/; revision=783
22 years ago
Peter Johnson
36d9736ddd
Don't set yasm_DEPENDENCIES. It breaks automatic dependency tracking.
...
svn path=/trunk/yasm/; revision=782
22 years ago
Peter Johnson
b59f5507da
Relicense under 3-clause BSD license.
...
svn path=/trunk/yasm/; revision=781
22 years ago
Peter Johnson
a8ac585112
Actually include new tests in distribution.
...
svn path=/trunk/yasm/; revision=780
22 years ago
Peter Johnson
7604d804d1
Actually include new tests in the distribution.
...
svn path=/trunk/yasm/; revision=779
22 years ago
Peter Johnson
4c3bb4a7cc
Get rid of expr_xform_neg_tree(), integrating its functionality into
...
expr_level_tree(). This fixes negative equ's and probably other issues.
This also makes expr_simplify() a macro pointing to expr_level_tree().
svn path=/trunk/yasm/; revision=778
22 years ago
Peter Johnson
e54446905d
Use automake's standard macro for dmalloc instead of rolling our own.
...
svn path=/trunk/yasm/; revision=777
22 years ago
Peter Johnson
326b77c80c
Assume all sys/queue.h implementations are broken, and always use our local
...
one (more implementations are broken than not broken).
svn path=/trunk/yasm/; revision=776
22 years ago
Peter Johnson
50d92d758e
Fix COFF_SET_VMA output (needed to add section start address to addend).
...
To ensure all section start addresses are known, added a first pre-pass of
sections to calculate each one's address.
svn path=/trunk/yasm/; revision=775
22 years ago
Peter Johnson
aa495c33e8
Use the current date as the version (for nightly builds). Releases will be
...
branched and the release version set here.
svn path=/trunk/yasm/; revision=774
22 years ago
Peter Johnson
8f9c7383ea
Add COFF object format (for DJGPP). No debugging support yet (need to design
...
dbgfmt interface).
svn path=/trunk/yasm/; revision=773
22 years ago
Peter Johnson
2c94e53a91
symrec_data_print() doesn't need to handle a NULL data pointer.
...
svn path=/trunk/yasm/; revision=772
22 years ago
Peter Johnson
9b744cb938
Run test input files through standard input instead of as input files to avoid
...
pathname changing issues when builddir != srcdir (previous workaround worked
for text files, but for more complex objfmts such as coff that embed the source
filename in the binary output file, we need to find a different way).
svn path=/trunk/yasm/; revision=771
22 years ago
Peter Johnson
3adada2a00
Don't treat xfree as a real function (taking its address), as this doesn't work
...
if dmalloc is enabled.
svn path=/trunk/yasm/; revision=770
22 years ago
Peter Johnson
53f6123eaf
Check for NULL pointer in LT_DLMEM_REASSIGN() before freeing it.
...
svn path=/trunk/yasm/; revision=769
22 years ago