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
Peter Johnson
0124032e2c
Splint-noticed bugfixes: memory leaks, unreachable code.
...
svn path=/trunk/yasm/; revision=606
23 years ago
Peter Johnson
590fc49113
Splint cleanups, including const change.
...
svn path=/trunk/yasm/; revision=605
23 years ago
Peter Johnson
6033703a64
Splint cleanups and related bugfixes:
...
- fix memory leak in bin_objfmt_resolve_label2()
- delete common data in bin_objfmt_common_data_new() rather than continuing
to handle it in declare_data_*()
svn path=/trunk/yasm/; revision=604
23 years ago
Peter Johnson
f11e97b9ec
Change most Splint return annotations from dependent to observer.
...
Also, section_get_start() can't return NULL.
svn path=/trunk/yasm/; revision=603
23 years ago
Peter Johnson
848dab8ff0
Cast SAVE_* and WRITE_* assignments to unsigned char.
...
svn path=/trunk/yasm/; revision=602
23 years ago
Peter Johnson
f8bfa83597
Make expr_print() take a const expr.
...
svn path=/trunk/yasm/; revision=601
23 years ago
Peter Johnson
a76d8561f7
Fix a couple bugs found by Splint (and do some other Splint cleanups).
...
svn path=/trunk/yasm/; revision=600
23 years ago
Peter Johnson
a6f0bff972
Splint cleanups: expr_copy_* don't take a NULL, so they can't return NULL.
...
svn path=/trunk/yasm/; revision=599
23 years ago
Peter Johnson
bb71f908bc
Splint cleanups.
...
svn path=/trunk/yasm/; revision=598
23 years ago
Peter Johnson
7325626c6a
Split split parameters into separate lines to make it much easier to edit.
...
svn path=/trunk/yasm/; revision=597
23 years ago
Peter Johnson
78f566c510
Add options: +allglobals -noeffect -shiftnegative.
...
svn path=/trunk/yasm/; revision=596
23 years ago
Peter Johnson
a6d468b938
Splint cleanups.
...
svn path=/trunk/yasm/; revision=595
23 years ago
Peter Johnson
fa5199cf4d
Splint cleanups.
...
svn path=/trunk/yasm/; revision=594
23 years ago
Peter Johnson
1b6ca83117
Splint cleanups on memory allocation routines.
...
svn path=/trunk/yasm/; revision=593
23 years ago
Peter Johnson
b9541920f1
Create global macro NELEMS to replace countof macro defined just in main.c.
...
svn path=/trunk/yasm/; revision=592
23 years ago
Peter Johnson
58abdf1cd1
Update with latest files. Add suggestion on how to get an updated list.
...
svn path=/trunk/yasm/; revision=591
23 years ago
Peter Johnson
7c31b742d5
Add remove-potcdate.sed.
...
svn path=/trunk/yasm/; revision=590
23 years ago
Peter Johnson
8cd76bac56
Update to gettext 0.11.1.
...
svn path=/trunk/yasm/; revision=589
23 years ago
Peter Johnson
d11a297283
Portability fixes: include config.h to get rid of inline if necessary, remove
...
last // comments, and include a local strdup.
svn path=/trunk/yasm/; revision=588
23 years ago
Peter Johnson
ad22cf5a0a
Add local changes (primarily C++ -> C conversion).
...
svn path=/trunk/yasm/; revision=587
23 years ago
Peter Johnson
e4ee9e1030
Reflect where our local o= and t= options came from.
...
svn path=/trunk/yasm/; revision=586
23 years ago
Peter Johnson
c23b8437d7
Add re2c to the build tree. Build tools with recursive make instead of from
...
top-level Makefile (for various reasons, including object name conflicts).
svn path=/trunk/yasm/; revision=585
23 years ago
Peter Johnson
33a981424e
Don't conflict local parser.h with bison-generated parser.h by renaming
...
parser.h to parse.h.
svn path=/trunk/yasm/; revision=584
23 years ago
Peter Johnson
6db97b6a23
Add pre-generated bootstrap files for re2c-generated scanner.
...
svn path=/trunk/yasm/; revision=583
23 years ago
Peter Johnson
27b0d041ea
Finish C conversion.
...
svn path=/trunk/yasm/; revision=582
23 years ago
Peter Johnson
88d5a1e6c4
Continuing C conversion (not everything is compilable yet).
...
svn path=/trunk/yasm/; revision=581
23 years ago
Peter Johnson
05224a9fd9
Make dual functions: _new (which allocates) and _init (which just copies) to
...
make C conversion elsewhere easier.
svn path=/trunk/yasm/; revision=580
23 years ago