Peter Johnson
00497afd8f
Neaten the line-continuation a bit.
...
svn path=/trunk/yasm/; revision=669
23 years ago
Peter Johnson
6c7bb59857
Flatten the tools/re2c build.
...
- Moved (by repocopy) main.c to re2c.c
- Moved (by repocopy) parser.y to re2c-parser.y
- Changed to Makefile.inc's rather than Makefile.am's
- Modified all the source file local includes to point to tools/re2c/*.h
svn path=/trunk/yasm/; revision=668
23 years ago
Peter Johnson
d719ad2d47
Accidently included a second change in the previous commit.
...
svn path=/trunk/yasm/; revision=666
23 years ago
Peter Johnson
82b3a80591
Disable loading preloaded symbols until there's actually loadable modules being
...
compiled.
svn path=/trunk/yasm/; revision=665
23 years ago
Peter Johnson
8bfdd08db3
Initialize and shut down libltdl.
...
svn path=/trunk/yasm/; revision=664
23 years ago
Peter Johnson
45333b0225
Allow objfmt initialize and cleanup function pointers to be NULL when not needed.
...
svn path=/trunk/yasm/; revision=663
23 years ago
Peter Johnson
1f71e995ca
Fix a few cases of freeing NULL pointers.
...
svn path=/trunk/yasm/; revision=662
23 years ago
Peter Johnson
da070d5964
Move strndup() declaration outside !DMALLOC #ifdef, as it's not defined by
...
the dmalloc library.
svn path=/trunk/yasm/; revision=661
23 years ago
Peter Johnson
6727a189ab
fucom* are FPU instructions.
...
svn path=/trunk/yasm/; revision=660
23 years ago
Peter Johnson
77be8f8662
vps_print() should take a const valparamhead *.
...
svn path=/trunk/yasm/; revision=659
23 years ago
Peter Johnson
2098bc229c
Remove .re.c suffix rule. In GNU make, this doesn't work as intended (instead
...
of making all .re -> .c builds require re2c (as a suffix rule), it instead sees
it as a rule to build ".re.c"). Oddly enough, in BSD make this works perfectly.
svn path=/trunk/yasm/; revision=658
23 years ago
Peter Johnson
3af9a80722
This file is going away soon, but it's still good to fix errors: CLTS was
...
passing too many values to the twobyte group.
svn path=/trunk/yasm/; revision=657
23 years ago
Peter Johnson
0c49ed0c7b
Bring in AC_PROVIDE_IFELSE changes necessary for AC_LIBTOOL_DLOPEN and like
...
under autoconf 2.53+.
svn path=/trunk/yasm/; revision=656
23 years ago
Peter Johnson
58a539fe06
- Disable libtool win32 DLL support.
...
- Use AC_PROG_LIBTOOL instead of AM_PROG_LIBTOOL.
- Move AC_LIB_LTDL down to libraries section.
svn path=/trunk/yasm/; revision=655
23 years ago
Peter Johnson
ebd3ddc13f
Ignore libtool-generated objects and directories.
...
svn path=/trunk/yasm/; revision=653
23 years ago
Peter Johnson
ac8d8e085a
Declare errwarn_new(), error_common(), and warning_common() as static.
...
svn path=/trunk/yasm/; revision=652
23 years ago
Peter Johnson
71fdfbdb7a
Add configure.lineno to CLEANFILES. It doesn't delete itself or have something
...
else delete it, making distcheck impossible (the build directory isn't empty
after a distclean).
svn path=/trunk/yasm/; revision=651
23 years ago
Peter Johnson
017c378bce
Define lib_LTLIBRARIES to avoid automake warning.
...
svn path=/trunk/yasm/; revision=650
23 years ago
Peter Johnson
f78505a6a5
Add xstrndup() to easily create a 0-terminated duplicate of a
...
non-zero-terminated source string.
svn path=/trunk/yasm/; revision=649
23 years ago
Peter Johnson
13c443b70c
Re-enable building of re2c (not lemon yet), including a generic Makefile rule.
...
A rewrite of the nasm-compat lexer in re2c is close to completion.
svn path=/trunk/yasm/; revision=648
23 years ago
Peter Johnson
9eedce2b89
Cleanup script for re2c output that removes unreferenced labels (significantly
...
reducing C compiler warnings).
svn path=/trunk/yasm/; revision=647
23 years ago
Peter Johnson
5ba3fb01bf
Fix 2 major bugs: -b switch caused crash, and all actions got corrupted.
...
svn path=/trunk/yasm/; revision=646
23 years ago
Peter Johnson
f4fec24014
We don't use the tools right now, so don't bother building them/including them
...
in the distribution.
svn path=/trunk/yasm/; revision=645
23 years ago
Peter Johnson
087d82762e
Initial revision
...
svn path=/trunk/yasm/; revision=641
23 years ago
Peter Johnson
91b09aa668
Integrate gettext, libtool, and libltdl into CVS and more tightly into
...
configuration process.
svn path=/trunk/yasm/; revision=640
23 years ago
Peter Johnson
9453c2b02c
Include all the m4 files in EXTRA_DIST.
...
svn path=/trunk/yasm/; revision=639
23 years ago
Peter Johnson
873a785904
Initial revision
...
svn path=/trunk/yasm/; revision=635
23 years ago
Peter Johnson
57dfb00241
Initial revision
...
svn path=/trunk/yasm/; revision=632
23 years ago
Peter Johnson
f8f1c204f7
Bytecode and objfmt changes:
...
- Add two new bytecode types:
BC_ALIGN (not yet implemented) for performing nice alignment magic.
BC_OBJFMT_DATA for storing objfmt-generated data in more advanced objfmts.
- objfmt structure changes:
Add handling functions for BC_OBJFMT_DATA data.
Allow a number of functions to be NULL.
svn path=/trunk/yasm/; revision=631
23 years ago
Peter Johnson
9a6a155c06
Revert previous commit (ELF isn't committed yet).
...
svn path=/trunk/yasm/; revision=630
23 years ago
Peter Johnson
6c2fb0f43c
Use C89 types for field sizes and avoid reserved #define names.
...
svn path=/trunk/yasm/; revision=629
23 years ago
Peter Johnson
ad049ecb26
Don't worry about 64-bit and generic ELF at this point.
...
svn path=/trunk/yasm/; revision=628
23 years ago
Peter Johnson
9f35a81eb5
Initial revision
...
svn path=/trunk/yasm/; revision=624
23 years ago
Peter Johnson
ac2743de63
Prevent spurious "Circular reference detected" errors by refining the return
...
value for bc_resolve() to enum-defined flags.
svn path=/trunk/yasm/; revision=623
23 years ago
Peter Johnson
4fed536d3c
Revamp error/warning handling.
...
svn path=/trunk/yasm/; revision=622
23 years ago
Peter Johnson
4407d49d66
During the first pass of basic optimization, continue reporting errors, don't
...
stop at the first error.
To help prevent spurios errors, make bytecodes with errors 0 length in
bc_resolve().
svn path=/trunk/yasm/; revision=621
23 years ago
Peter Johnson
58cc15c1d6
Change handling of res* (no longer require that the entire containing buffer
...
be allocated and filled with 0's to write it out).
Other fixes:
Specifically look for floating point values in res* and multiple exprs.
One-byte PC-relative displacement *is* legal (short jumps).
svn path=/trunk/yasm/; revision=620
23 years ago
Peter Johnson
20b53b5891
Check for integer warnings.
...
svn path=/trunk/yasm/; revision=619
23 years ago
Peter Johnson
0703225136
A number of fixes to float and integer handling on the output side:
...
- expr can now negate floatnums
- bin objfmt output_expr now correctly outputs all sizes of integers and
does a check for floating point containing exprs before complaining about
external references. Also checks for properly sized floatnum output with
an ErrorAt instead of an InternalError.
svn path=/trunk/yasm/; revision=618
23 years ago
Peter Johnson
4fc6605a56
Properly count errors and warnings triggered by ErrorAt() and WarningAt().
...
svn path=/trunk/yasm/; revision=617
23 years ago
Peter Johnson
c7dee53ad5
Check return value correctly (for both error and non-error).
...
svn path=/trunk/yasm/; revision=616
23 years ago
Peter Johnson
f9674f719d
Revert previous commit. The srcdir isn't needed, and in fact breaks things.
...
svn path=/trunk/yasm/; revision=615
23 years ago
Peter Johnson
3bbc385082
Add bison-generated sources to BUILT_SOURCES and CLEANFILES.
...
svn path=/trunk/yasm/; revision=614
23 years ago
Peter Johnson
62d466533f
Clean up after test execution.
...
svn path=/trunk/yasm/; revision=613
23 years ago
Peter Johnson
9f69d71b63
Run gettextize with the --no-changelog option. Note this requires gettext
...
0.11.1.
svn path=/trunk/yasm/; revision=612
23 years ago
Peter Johnson
5c5ab9318e
Too overzealous on including test files that aren't committed yet (because they
...
don't pass yet!).
svn path=/trunk/yasm/; revision=611
23 years ago
Peter Johnson
f42e1c87ab
Fix warning message for zeroing uninit space so it prints on the correct line.
...
Add bin objfmt test suite and test for this case.
svn path=/trunk/yasm/; revision=610
23 years ago
Peter Johnson
1517a9ef39
Fix distcheck build. For some reason, automake wants a $(top_srcdir) for the
...
yapp-token.l file.
svn path=/trunk/yasm/; revision=609
23 years ago
Peter Johnson
0d91497dd1
Have symrec manage all symbols, not just the ones in the symbol table.
...
svn path=/trunk/yasm/; revision=608
23 years ago
Peter Johnson
db0c353f68
Switch back to returning @dependent@ instead of @observer@.
...
svn path=/trunk/yasm/; revision=607
23 years ago