]> granicus.if.org Git - yasm/log
yasm
22 years agoIndicate actual line number of circular reference error.
Peter Johnson [Wed, 20 Feb 2002 08:05:10 +0000 (08:05 -0000)]
Indicate actual line number of circular reference error.

svn path=/trunk/yasm/; revision=472

22 years agoBring up-to-date with traverse function changes. Start trying to check for
Peter Johnson [Wed, 20 Feb 2002 07:43:26 +0000 (07:43 -0000)]
Bring up-to-date with traverse function changes.  Start trying to check for
circular references.

svn path=/trunk/yasm/; revision=471

22 years agoCorrect optimize() comment.
Peter Johnson [Wed, 20 Feb 2002 07:40:13 +0000 (07:40 -0000)]
Correct optimize() comment.

svn path=/trunk/yasm/; revision=470

22 years agoTerminate & cleanup early if an error occurs during the optimization phase.
Peter Johnson [Wed, 20 Feb 2002 07:39:27 +0000 (07:39 -0000)]
Terminate & cleanup early if an error occurs during the optimization phase.

svn path=/trunk/yasm/; revision=469

22 years agoReverse how traverse functions do early termination (now, they terminate on
Peter Johnson [Wed, 20 Feb 2002 07:38:41 +0000 (07:38 -0000)]
Reverse how traverse functions do early termination (now, they terminate on
a non-zero func return and return the value func returned).  Document the
changes in the header files.

svn path=/trunk/yasm/; revision=468

22 years agoFix issue with how symrec's are handled when an expression is copied: old code
Peter Johnson [Wed, 20 Feb 2002 07:35:43 +0000 (07:35 -0000)]
Fix issue with how symrec's are handled when an expression is copied: old code
just assigned the pointer: but the symrec is deleted (if it's not in the symbol
table) when the expr is deleted.  Thus, we need to create a copy of the symrec
instead of just reusing the same value if it's going to be deleted later.  This
trickles down to objfmt to copy the objfmt-local data.

svn path=/trunk/yasm/; revision=467

23 years agoAdded --version option. Pass option descriptions, --help, and --version
Peter Johnson [Thu, 14 Feb 2002 09:04:20 +0000 (09:04 -0000)]
Added --version option.  Pass option descriptions, --help, and --version
messages through gettext.  Rework handling of --version and --help.

svn path=/trunk/yasm/; revision=466

23 years agoAdd semicolon at end of error handling code to fix syntax errors. Only seen
Peter Johnson [Wed, 13 Feb 2002 05:32:30 +0000 (05:32 -0000)]
Add semicolon at end of error handling code to fix syntax errors.  Only seen
on Cygwin so far, but a legitimate error.

svn path=/trunk/yasm/; revision=465

23 years agoBring up-to-date with tree and build changes.
Peter Johnson [Sat, 2 Feb 2002 05:08:39 +0000 (05:08 -0000)]
Bring up-to-date with tree and build changes.

svn path=/trunk/yasm/; revision=464

23 years agoEnhance error/warning framework by allowing specific warnings to be disabled,
Peter Johnson [Sun, 13 Jan 2002 08:53:24 +0000 (08:53 -0000)]
Enhance error/warning framework by allowing specific warnings to be disabled,
all warnings to be disabled, and warnings to be treated as errors, much in the
style of GNU tools such as gcc.

svn path=/trunk/yasm/; revision=463

23 years agoCheck for param=NULL before dereferencing it in sopt case.
Peter Johnson [Sun, 13 Jan 2002 01:10:19 +0000 (01:10 -0000)]
Check for param=NULL before dereferencing it in sopt case.

svn path=/trunk/yasm/; revision=462

23 years agoDon't compact into a short form if one's not available.
Peter Johnson [Fri, 11 Jan 2002 07:26:45 +0000 (07:26 -0000)]
Don't compact into a short form if one's not available.

svn path=/trunk/yasm/; revision=461

23 years agoMake jcc's default to JR_SHORT in NASM syntax, and test for this possibility
Peter Johnson [Fri, 11 Jan 2002 07:12:57 +0000 (07:12 -0000)]
Make jcc's default to JR_SHORT in NASM syntax, and test for this possibility
in calc_len().

svn path=/trunk/yasm/; revision=460

23 years agoFinish bc_calc_len(), with fixes to x86_bc_calc_len_insn()'s EA sizing calcs,
Peter Johnson [Fri, 11 Jan 2002 05:04:47 +0000 (05:04 -0000)]
Finish bc_calc_len(), with fixes to x86_bc_calc_len_insn()'s EA sizing calcs,
and implementation of x86_bc_calc_len_jmprel().

svn path=/trunk/yasm/; revision=459

23 years agoIn optimize_bytecode(), calculate bc->offset *before* calling bc_calc_len().
Peter Johnson [Fri, 11 Jan 2002 04:36:23 +0000 (04:36 -0000)]
In optimize_bytecode(), calculate bc->offset *before* calling bc_calc_len().
This is because calc_len may want to know the current bytecode's offset (eg for
determining relative displacement length).

svn path=/trunk/yasm/; revision=458

23 years agoImplement rest of bc_calc_len for general bytecodes.
Peter Johnson [Fri, 11 Jan 2002 02:59:33 +0000 (02:59 -0000)]
Implement rest of bc_calc_len for general bytecodes.

svn path=/trunk/yasm/; revision=457

23 years agoDon't store "determined" immediate len and neg. Both will be determined from
Peter Johnson [Thu, 10 Jan 2002 05:39:25 +0000 (05:39 -0000)]
Don't store "determined" immediate len and neg.  Both will be determined from
the expr when that's actually possible.

svn path=/trunk/yasm/; revision=456

23 years agoAdd comment about bc_calc_len() possibly returning -1.
Peter Johnson [Thu, 10 Jan 2002 05:29:22 +0000 (05:29 -0000)]
Add comment about bc_calc_len() possibly returning -1.

svn path=/trunk/yasm/; revision=455

23 years agoFix memory leak.
Peter Johnson [Thu, 10 Jan 2002 05:16:19 +0000 (05:16 -0000)]
Fix memory leak.
Add assert call to silence LCLint.

svn path=/trunk/yasm/; revision=454

23 years agoRework resolve_label() and add a second pass.
Peter Johnson [Thu, 10 Jan 2002 05:02:40 +0000 (05:02 -0000)]
Rework resolve_label() and add a second pass.

svn path=/trunk/yasm/; revision=453

23 years agoAdd new bc_resolve() family, and rewrite calc_len to /just/ calculate the
Peter Johnson [Thu, 10 Jan 2002 05:01:36 +0000 (05:01 -0000)]
Add new bc_resolve() family, and rewrite calc_len to /just/ calculate the
length, not modify anything else (particularly expressions w/temp. resolved
labels).

svn path=/trunk/yasm/; revision=452

23 years agoAdd bcs_next (STAILQ_NEXT).
Peter Johnson [Wed, 9 Jan 2002 09:38:19 +0000 (09:38 -0000)]
Add bcs_next (STAILQ_NEXT).

svn path=/trunk/yasm/; revision=451

23 years agoAdd bcs_first() (STAILQ_FIRST).
Peter Johnson [Wed, 9 Jan 2002 09:32:41 +0000 (09:32 -0000)]
Add bcs_first() (STAILQ_FIRST).

svn path=/trunk/yasm/; revision=450

23 years agoTiny formatting fix.
Peter Johnson [Wed, 9 Jan 2002 09:11:17 +0000 (09:11 -0000)]
Tiny formatting fix.

svn path=/trunk/yasm/; revision=449

23 years agoChange return type of calc_len() family back to int from unsigned long.
Peter Johnson [Wed, 9 Jan 2002 09:10:36 +0000 (09:10 -0000)]
Change return type of calc_len() family back to int from unsigned long.

svn path=/trunk/yasm/; revision=448

23 years ago- Use new symrec_get_label().
Peter Johnson [Wed, 9 Jan 2002 09:04:41 +0000 (09:04 -0000)]
- Use new symrec_get_label().
- Change optimize() function to return void.
- Pass LCLint.

svn path=/trunk/yasm/; revision=447

23 years agoAdd basic optimizer to checks.
Peter Johnson [Wed, 9 Jan 2002 09:03:29 +0000 (09:03 -0000)]
Add basic optimizer to checks.

svn path=/trunk/yasm/; revision=446

23 years agoRemove symrec_get_int_value(), add symrec_get_label().
Peter Johnson [Wed, 9 Jan 2002 09:02:33 +0000 (09:02 -0000)]
Remove symrec_get_int_value(), add symrec_get_label().

svn path=/trunk/yasm/; revision=445

23 years agoGeneral code cleanup.
Peter Johnson [Wed, 9 Jan 2002 08:36:02 +0000 (08:36 -0000)]
General code cleanup.

svn path=/trunk/yasm/; revision=444

23 years agoLCLint cleanups.
Peter Johnson [Wed, 9 Jan 2002 08:27:38 +0000 (08:27 -0000)]
LCLint cleanups.

svn path=/trunk/yasm/; revision=443

23 years agoFix one line odd error: missing initialization of step.
Michael Urman [Wed, 9 Jan 2002 08:15:57 +0000 (08:15 -0000)]
Fix one line odd error: missing initialization of step.

svn path=/trunk/yasm/; revision=442

23 years agoBe nice for debugging purposes and set effaddr sib=0 even when it's not valid.
Peter Johnson [Wed, 9 Jan 2002 07:25:16 +0000 (07:25 -0000)]
Be nice for debugging purposes and set effaddr sib=0 even when it's not valid.

svn path=/trunk/yasm/; revision=441

23 years agoMake resolve_label() take a symrec * instead of a section * and bytecode *.
Peter Johnson [Wed, 9 Jan 2002 07:23:00 +0000 (07:23 -0000)]
Make resolve_label() take a symrec * instead of a section * and bytecode *.
Extend expr_expand_equ() into expr_expand_labelequ() and call resolve_label()
here.

svn path=/trunk/yasm/; revision=440

23 years agoRemove unused variable declaration.
Peter Johnson [Wed, 9 Jan 2002 07:13:42 +0000 (07:13 -0000)]
Remove unused variable declaration.

svn path=/trunk/yasm/; revision=439

23 years agoChange from linked list to vector representation for line mapping.
Michael Urman [Wed, 9 Jan 2002 07:06:18 +0000 (07:06 -0000)]
Change from linked list to vector representation for line mapping.

svn path=/trunk/yasm/; revision=438

23 years agoComment fix.
Peter Johnson [Wed, 9 Jan 2002 07:03:47 +0000 (07:03 -0000)]
Comment fix.

svn path=/trunk/yasm/; revision=437

23 years agobc_calc_len() family should return unsigned long, not int.
Peter Johnson [Wed, 9 Jan 2002 05:05:21 +0000 (05:05 -0000)]
bc_calc_len() family should return unsigned long, not int.

svn path=/trunk/yasm/; revision=436

23 years agoCut bitvect allocations even more by making a bitvect_from_Dec_static() and
Peter Johnson [Wed, 9 Jan 2002 04:35:51 +0000 (04:35 -0000)]
Cut bitvect allocations even more by making a bitvect_from_Dec_static() and
associated _Boot and _Shutdown.

svn path=/trunk/yasm/; revision=435

23 years agoAllocate single static temporary bitvect for conversions (as most conversions
Peter Johnson [Wed, 9 Jan 2002 03:26:05 +0000 (03:26 -0000)]
Allocate single static temporary bitvect for conversions (as most conversions
will be <=32 bits in size).

svn path=/trunk/yasm/; revision=434

23 years agodmalloc is enabled with DMALLOC, not DDMALLOC.
Peter Johnson [Wed, 9 Jan 2002 03:22:18 +0000 (03:22 -0000)]
dmalloc is enabled with DMALLOC, not DDMALLOC.

svn path=/trunk/yasm/; revision=433

23 years agodmalloc is enabled with DMALLOC, not DDMALLOC.
Peter Johnson [Wed, 9 Jan 2002 03:22:18 +0000 (03:22 -0000)]
dmalloc is enabled with DMALLOC, not DDMALLOC.

svn path=/trunk/yasm/; revision=432

23 years agoFree in_filename.
Peter Johnson [Wed, 9 Jan 2002 02:57:02 +0000 (02:57 -0000)]
Free in_filename.

svn path=/trunk/yasm/; revision=431

23 years agoDon't shadow global (standard C) "index" (noticed by LCLint).
Peter Johnson [Wed, 9 Jan 2002 00:04:56 +0000 (00:04 -0000)]
Don't shadow global (standard C) "index" (noticed by LCLint).

svn path=/trunk/yasm/; revision=429

23 years agoCorrect for renamed/moved files.
Peter Johnson [Wed, 9 Jan 2002 00:04:09 +0000 (00:04 -0000)]
Correct for renamed/moved files.

svn path=/trunk/yasm/; revision=428

23 years agoLCLint-inspired cleanups.
Peter Johnson [Wed, 9 Jan 2002 00:03:37 +0000 (00:03 -0000)]
LCLint-inspired cleanups.

svn path=/trunk/yasm/; revision=427

23 years agoLine number is a long (found by lclint).
Peter Johnson [Wed, 9 Jan 2002 00:02:52 +0000 (00:02 -0000)]
Line number is a long (found by lclint).

svn path=/trunk/yasm/; revision=426

23 years agoChange from current file/line dual storage to a monotonically-increasing line
Peter Johnson [Mon, 7 Jan 2002 07:42:27 +0000 (07:42 -0000)]
Change from current file/line dual storage to a monotonically-increasing line
"index".  This fixes some problems with assumptions made by various parts of
the code that are invalidated when the line number doesn't always increase (eg.
when the NASM %line directive is used).
Speed fixes are needed to the implementation of the line_* functions in
globals.c before this is finished.

svn path=/trunk/yasm/; revision=424

23 years agoRemove programmer documentation out of source tree and into the yasm-doc CVS
Peter Johnson [Fri, 28 Dec 2001 06:16:56 +0000 (06:16 -0000)]
Remove programmer documentation out of source tree and into the yasm-doc CVS
module.  Since user documentation is going to be the only doc/ stuff, get rid
of user subdirectory.  Eliminate top-level doc/Makefile.am as user doc
generation will be integrated into top-level Makefile.am (or maybe
doc/Makefile.inc).

svn path=/trunk/yasm/; revision=419

23 years agoRemove programmer documentation out of source tree and into the yasm-doc CVS
Peter Johnson [Fri, 28 Dec 2001 06:16:54 +0000 (06:16 -0000)]
Remove programmer documentation out of source tree and into the yasm-doc CVS
module.  Since user documentation is going to be the only doc/ stuff, get rid
of user subdirectory.  Eliminate top-level doc/Makefile.am as user doc
generation will be integrated into top-level Makefile.am (or maybe
doc/Makefile.inc).

svn path=/trunk/yasm/; revision=418

23 years agoFix warnings that appear with -O turned on.
Peter Johnson [Fri, 28 Dec 2001 05:50:40 +0000 (05:50 -0000)]
Fix warnings that appear with -O turned on.

svn path=/trunk/yasm/; revision=416

23 years agoAdd tests/Makefile.inc to EXTRA_DIST.
Peter Johnson [Fri, 28 Dec 2001 05:50:20 +0000 (05:50 -0000)]
Add tests/Makefile.inc to EXTRA_DIST.

svn path=/trunk/yasm/; revision=415

23 years agoignore automake's error on multiple lex.am invocations
Michael Urman [Thu, 27 Dec 2001 04:59:57 +0000 (04:59 -0000)]
ignore automake's error on multiple lex.am invocations

svn path=/trunk/yasm/; revision=412

23 years agoChange EXTRA_DIST to reflect movement of strsep.c and mergesort.c.
Peter Johnson [Thu, 27 Dec 2001 04:06:05 +0000 (04:06 -0000)]
Change EXTRA_DIST to reflect movement of strsep.c and mergesort.c.

svn path=/trunk/yasm/; revision=411

23 years agoMake sure bison gets -d flag (creates a separate header file).
Peter Johnson [Thu, 27 Dec 2001 04:00:58 +0000 (04:00 -0000)]
Make sure bison gets -d flag (creates a separate header file).

svn path=/trunk/yasm/; revision=410

23 years agoFix issues with yy->nasm_parser_ renaming. AM_YFLAGS/AM_LFLAGS are not an
Peter Johnson [Thu, 27 Dec 2001 03:52:10 +0000 (03:52 -0000)]
Fix issues with yy->nasm_parser_ renaming.  AM_YFLAGS/AM_LFLAGS are not an
option because those are /global/ for the entire project.

svn path=/trunk/yasm/; revision=409

23 years agoGet rid of --disable-check option. It no longer has any effect.
Peter Johnson [Wed, 26 Dec 2001 22:04:25 +0000 (22:04 -0000)]
Get rid of --disable-check option.  It no longer has any effect.

svn path=/trunk/yasm/; revision=408

23 years agoGet rid of --disable-check option. It no longer has any effect.
Peter Johnson [Wed, 26 Dec 2001 22:04:25 +0000 (22:04 -0000)]
Get rid of --disable-check option.  It no longer has any effect.

svn path=/trunk/yasm/; revision=407

23 years agoMoved function replacements to top-level.
Peter Johnson [Wed, 26 Dec 2001 21:25:51 +0000 (21:25 -0000)]
Moved function replacements to top-level.

svn path=/trunk/yasm/; revision=406

23 years agoAdd @LIBOBJS@ to library linkages (for missing functions).
Peter Johnson [Wed, 26 Dec 2001 21:24:36 +0000 (21:24 -0000)]
Add @LIBOBJS@ to library linkages (for missing functions).

svn path=/trunk/yasm/; revision=405

23 years agoLink with @LIBOBJS@ (for replacement functions).
Peter Johnson [Wed, 26 Dec 2001 21:18:31 +0000 (21:18 -0000)]
Link with @LIBOBJS@ (for replacement functions).

svn path=/trunk/yasm/; revision=404

23 years agoRemove config/* files, and automatically create the config directory in
Peter Johnson [Wed, 26 Dec 2001 20:52:44 +0000 (20:52 -0000)]
Remove config/* files, and automatically create the config directory in
autogen.sh if it's not present.  This will have the needed config/ files
generated by automake -a when they're needed.

svn path=/trunk/yasm/; revision=403

23 years agoFailed builds could prevent updating of "latest" symlink. Also now record
Peter Johnson [Wed, 26 Dec 2001 19:14:05 +0000 (19:14 -0000)]
Failed builds could prevent updating of "latest" symlink.  Also now record
stderr output as well as stdout.

svn path=/trunk/yasm/; revision=402

23 years agoInclude intl from build directory, not source directory.
Peter Johnson [Wed, 26 Dec 2001 19:03:56 +0000 (19:03 -0000)]
Include intl from build directory, not source directory.

svn path=/trunk/yasm/; revision=401

23 years agoAdd intl directory to INCLUDES.
Peter Johnson [Wed, 26 Dec 2001 18:48:40 +0000 (18:48 -0000)]
Add intl directory to INCLUDES.

svn path=/trunk/yasm/; revision=400

23 years agoThis was significantly out of date. Bring up-to-date with current source.
Peter Johnson [Wed, 26 Dec 2001 18:42:10 +0000 (18:42 -0000)]
This was significantly out of date.  Bring up-to-date with current source.

svn path=/trunk/yasm/; revision=399

23 years agoBring up-to-date with new generated files (due to new build structure).
Peter Johnson [Wed, 26 Dec 2001 08:08:12 +0000 (08:08 -0000)]
Bring up-to-date with new generated files (due to new build structure).

svn path=/trunk/yasm/; revision=398

23 years agoRemove stamp-h.in to fix distcheck issue when autogen-ing more than once.
Peter Johnson [Wed, 26 Dec 2001 08:03:51 +0000 (08:03 -0000)]
Remove stamp-h.in to fix distcheck issue when autogen-ing more than once.

svn path=/trunk/yasm/; revision=397

23 years agoDon't include config/* files explicitly (they're included implicitly if
Peter Johnson [Wed, 26 Dec 2001 07:52:47 +0000 (07:52 -0000)]
Don't include config/* files explicitly (they're included implicitly if
needed).  Remove config.guess and config.sub, as automake -a doesn't seem to
update them.

svn path=/trunk/yasm/; revision=396

23 years agoMassive build system change: single Makefile instead of recursive.
Peter Johnson [Wed, 26 Dec 2001 07:14:06 +0000 (07:14 -0000)]
Massive build system change: single Makefile instead of recursive.
Note: still is automake-generated, but uses .inc files in the various
subdirectories instead of .am files.
TODO: Move arch-specific components of bytecode_test and memexpr_test to
arch/x86.

svn path=/trunk/yasm/; revision=395

23 years agoMassive build system change: single Makefile instead of recursive.
Peter Johnson [Wed, 26 Dec 2001 07:14:05 +0000 (07:14 -0000)]
Massive build system change: single Makefile instead of recursive.
Note: still is automake-generated, but uses .inc files in the various
subdirectories instead of .am files.
TODO: Move arch-specific components of bytecode_test and memexpr_test to
arch/x86.

svn path=/trunk/yasm/; revision=394

23 years agoFix build problem on Linux with toascii() define.
Peter Johnson [Mon, 24 Dec 2001 18:01:12 +0000 (18:01 -0000)]
Fix build problem on Linux with toascii() define.

svn path=/trunk/yasm/; revision=393

23 years agoRemove quoting from AC_CONFIG_AUX_DIR and AM_CONFIG_HEADER.
Peter Johnson [Mon, 24 Dec 2001 17:55:21 +0000 (17:55 -0000)]
Remove quoting from AC_CONFIG_AUX_DIR and AM_CONFIG_HEADER.

svn path=/trunk/yasm/; revision=392

23 years agoRemove quoting from AC_CONFIG_AUX_DIR and AM_CONFIG_HEADER.
Peter Johnson [Mon, 24 Dec 2001 17:55:21 +0000 (17:55 -0000)]
Remove quoting from AC_CONFIG_AUX_DIR and AM_CONFIG_HEADER.

svn path=/trunk/yasm/; revision=391

23 years agoAdd autoconf 2.50-based configure.ac. Keep configure.in around for 2.13
Peter Johnson [Mon, 24 Dec 2001 17:51:43 +0000 (17:51 -0000)]
Add autoconf 2.50-based configure.ac.  Keep configure.in around for 2.13
compatibility, but bring up to date with new organization of configure.ac.
Remove CHECK_FLAGS.  Someday, remove autoconf 2.13-based files.

svn path=/trunk/yasm/; revision=390

23 years agoAdd autoconf 2.50-based configure.ac. Keep configure.in around for 2.13
Peter Johnson [Mon, 24 Dec 2001 17:51:43 +0000 (17:51 -0000)]
Add autoconf 2.50-based configure.ac.  Keep configure.in around for 2.13
compatibility, but bring up to date with new organization of configure.ac.
Remove CHECK_FLAGS.  Someday, remove autoconf 2.13-based files.

svn path=/trunk/yasm/; revision=389

23 years agoStart work on optimizer module. Moved all "post-parser-finalization" code
Peter Johnson [Fri, 7 Dec 2001 03:32:05 +0000 (03:32 -0000)]
Start work on optimizer module.  Moved all "post-parser-finalization" code
into the optimizer stage, where it belongs.  Naming has changed, but most
implementations have not been brought up to date to do what they say they
do.

svn path=/trunk/yasm/; revision=388

23 years agoLCLint-related comment fixes.
Peter Johnson [Mon, 3 Dec 2001 07:37:33 +0000 (07:37 -0000)]
LCLint-related comment fixes.

svn path=/trunk/yasm/; revision=387

23 years agoAdd support for incbin pseudo-instruction.
Peter Johnson [Mon, 3 Dec 2001 07:33:48 +0000 (07:33 -0000)]
Add support for incbin pseudo-instruction.

svn path=/trunk/yasm/; revision=386

23 years agoMove assert.h include to util.h
Peter Johnson [Mon, 3 Dec 2001 03:05:51 +0000 (03:05 -0000)]
Move assert.h include to util.h
In util.h, define NDEBUG if not running lint.

svn path=/trunk/yasm/; revision=385

23 years agoAdd opt_flags (space for use by the optimizer).
Peter Johnson [Mon, 3 Dec 2001 02:52:44 +0000 (02:52 -0000)]
Add opt_flags (space for use by the optimizer).

svn path=/trunk/yasm/; revision=384

23 years agoPlug memory leak in floatnum_new().
Peter Johnson [Mon, 3 Dec 2001 00:55:00 +0000 (00:55 -0000)]
Plug memory leak in floatnum_new().

svn path=/trunk/yasm/; revision=383

23 years agostrcmp() returns 0 if the strings are equal.
Peter Johnson [Sun, 2 Dec 2001 23:23:12 +0000 (23:23 -0000)]
strcmp() returns 0 if the strings are equal.

svn path=/trunk/yasm/; revision=382

23 years agoMake extension-replacement a utility function in file.c (as it will need to
Peter Johnson [Sun, 2 Dec 2001 23:15:30 +0000 (23:15 -0000)]
Make extension-replacement a utility function in file.c (as it will need to
be performed for the list file, etc, as well as the object file).

svn path=/trunk/yasm/; revision=381

23 years agoFix a few LCLint errors.
Peter Johnson [Sun, 2 Dec 2001 22:39:06 +0000 (22:39 -0000)]
Fix a few LCLint errors.

svn path=/trunk/yasm/; revision=380

23 years agoReplace extension on output format rather than just always appending.
Peter Johnson [Sun, 2 Dec 2001 22:33:20 +0000 (22:33 -0000)]
Replace extension on output format rather than just always appending.

svn path=/trunk/yasm/; revision=379

23 years agoGenerate smaller code where possible (eg, when op_len=1, it's not necessary to
Peter Johnson [Sun, 2 Dec 2001 21:52:36 +0000 (21:52 -0000)]
Generate smaller code where possible (eg, when op_len=1, it's not necessary to
set op[1] and op[2]).

svn path=/trunk/yasm/; revision=378

23 years agoAllow overrides (a32/a16/rep/etc) to appear on their own line. The way this
Peter Johnson [Sun, 2 Dec 2001 21:18:04 +0000 (21:18 -0000)]
Allow overrides (a32/a16/rep/etc) to appear on their own line.  The way this
is done in the grammer causes 1 shift/reduce and 1 reduce/reduce conflict, but
yacc's default resolution gives correct results, and as the generated grammer
is smaller this way than specifically handling each prefix, we do it this way.

svn path=/trunk/yasm/; revision=377

23 years agoAdd support for NASM's %line.
Peter Johnson [Sun, 2 Dec 2001 20:12:04 +0000 (20:12 -0000)]
Add support for NASM's %line.

svn path=/trunk/yasm/; revision=376

23 years agoUse stdout as the default output file if stdin is the input.
Peter Johnson [Sun, 2 Dec 2001 20:11:33 +0000 (20:11 -0000)]
Use stdout as the default output file if stdin is the input.

svn path=/trunk/yasm/; revision=375

23 years agoRemove definition of line_number; it was overriding the global variable.
Peter Johnson [Sun, 2 Dec 2001 07:47:05 +0000 (07:47 -0000)]
Remove definition of line_number; it was overriding the global variable.

svn path=/trunk/yasm/; revision=374

23 years agoFix typo in HAVE_STRCMPI strncasecmp() #define.
Peter Johnson [Sun, 2 Dec 2001 06:42:39 +0000 (06:42 -0000)]
Fix typo in HAVE_STRCMPI strncasecmp() #define.

svn path=/trunk/yasm/; revision=373

23 years agoDo intl more correctly. nointl/libintl.h is unnecessary; it can be detected
Peter Johnson [Sun, 2 Dec 2001 06:40:17 +0000 (06:40 -0000)]
Do intl more correctly.  nointl/libintl.h is unnecessary; it can be detected
in util.h by the ENABLE_NLS define.  Fix Mkfiles to reflect.  Actually enable
if available in main().

svn path=/trunk/yasm/; revision=372

23 years agoOptimize if dev is not enabled. Don't use DEVFLAGS for non-gcc compiler.
Peter Johnson [Sun, 2 Dec 2001 04:37:55 +0000 (04:37 -0000)]
Optimize if dev is not enabled.  Don't use DEVFLAGS for non-gcc compiler.

svn path=/trunk/yasm/; revision=371

23 years ago(Mostly) Clean up floatnum internal allocations.
Peter Johnson [Sat, 1 Dec 2001 19:19:56 +0000 (19:19 -0000)]
(Mostly) Clean up floatnum internal allocations.

svn path=/trunk/yasm/; revision=370

23 years agoFix so "0h" works.
Peter Johnson [Sat, 1 Dec 2001 09:20:49 +0000 (09:20 -0000)]
Fix so "0h" works.

svn path=/trunk/yasm/; revision=369

23 years agoChange REG_SOMEREG -> reg_somereg and add rules that allow BYTE/WORD/DWORD
Peter Johnson [Sat, 1 Dec 2001 09:16:27 +0000 (09:16 -0000)]
Change REG_SOMEREG -> reg_somereg and add rules that allow BYTE/WORD/DWORD
prefixes on such registers.  Also fix bugs related to existing rules which
allowed those prefixes.

svn path=/trunk/yasm/; revision=368

23 years agoDon't free EA when simplifying shift_op case. Not only is this code completely
Peter Johnson [Sat, 1 Dec 2001 06:15:58 +0000 (06:15 -0000)]
Don't free EA when simplifying shift_op case.  Not only is this code completely
wrong (the ModRM byte definitely must be kept), but it had a memory leak too
(it just freed the ea without calling expr_delete())!

svn path=/trunk/yasm/; revision=367

23 years agoFix bug with ONE generation (overwrote both [0] and [1] indexes with opcode
Peter Johnson [Sat, 1 Dec 2001 06:10:19 +0000 (06:10 -0000)]
Fix bug with ONE generation (overwrote both [0] and [1] indexes with opcode
for ONE version).

svn path=/trunk/yasm/; revision=366

23 years agoChange dbg optimizer to basic.
Peter Johnson [Sat, 1 Dec 2001 05:47:12 +0000 (05:47 -0000)]
Change dbg optimizer to basic.

svn path=/trunk/yasm/; revision=365

23 years agoDelete dbg optimizer (won't be useful) and add "basic" (equiv. to NASM 2-pass)
Peter Johnson [Sat, 1 Dec 2001 03:07:23 +0000 (03:07 -0000)]
Delete dbg optimizer (won't be useful) and add "basic" (equiv. to NASM 2-pass)
optimizer.

svn path=/trunk/yasm/; revision=364