George Koehler
2dbbacfad9
Prevent division by zero in aslod.
...
rhead() and rsect() had assumed sizeof(long) == 4, but OpenBSD/amd64
has sizeof(long) == 8. The problem revealed itself when sect->os_lign
became zero, and align() divided by zero.
2012-09-21 22:51:12 -04:00
George Koehler
a44e18bb1e
*Again* fix fit16i() for systems with 64-bit long.
...
I already did this in abebf1586c06, but I edited the wrong file. Then
in edddc6b7cd17, I deleted that file.
By fixing fit16i(), I can now compile ACK for OpenBSD/amd64.
2012-09-19 23:39:51 -04:00
George Koehler
c56e850eca
Delete old and unused files from modules/src/em_code
2012-09-17 16:04:55 -04:00
George Koehler
eff81b4687
Fix fit16i() for systems with 64-bit long.
...
(long)0xFFFF8000 had expanded to 0x00000000FFFF8000.
With (long)(-0x8000), the compiler now extends the negative sign.
2012-09-16 19:57:07 -04:00
George Koehler
0f8745dc8d
Fix more functions in util/ack for 64-bit hosts.
...
This continues the fix from changeset aabde0589450. We must use
va_list to forward the arguments, because some of the arguments might
be 64-bit pointers. A pointer does not fit in an int.
2012-09-07 16:28:10 -04:00
George Koehler
ab55ecefee
Fix cemcom.ansi for 64-bit hosts.
...
Hosts with sizeof(arith) == sizeof(long) == 8 need to set full_mask[1]
through full_mask[8]. Because MAXSIZE == 8, we only had full_mask[0]
through full_mask[7]. This fix declares arith full_mask[MAXSIZE + 1]
and prevents a fatal error: "array full_mask too small for this machine"
2012-09-07 15:53:13 -04:00
David Given
f07a93357c
Fix a 64-bitness issue (removed some untyped K&R C code that assumed ints
...
and pointers were the same size).
2012-02-27 22:36:36 +00:00
Ceriel Jacobs
b9c194b210
Added atol() that ignores overflow, so that unsigned long constants are dealt with properly
2011-06-15 11:13:48 +02:00
Ceriel Jacobs
ff34b6bce7
Fixed CFU
2011-06-15 10:56:58 +02:00
cjhjacobs
67cda9e22f
Fixed bug reported on tack-devel mailing list on 20-3-2011
2011-05-18 19:19:19 +02:00
David Given
cc4e74077c
Removed file that the CVS conversion procedure left in (when it shouldn't have).
2011-03-20 20:47:10 +00:00
cvs2hg
210a4c9ce5
convert CVS tags
2011-02-11 00:51:45 +00:00
dtrg
16e42da0ed
Replaced dis and new with modern implementations donated by erik@backerud.se.
2010-10-02 21:52:29 +00:00
dtrg
4bc87420d1
Call the correct kill() and getpid() syscalls rather than _kill() and _getpid().
2010-10-02 21:51:40 +00:00
dtrg
72bc0db96a
Now call creat() and open() instead of _creat() and _open().
2010-09-27 20:47:32 +00:00
dtrg
4b494f90e2
Added support for remove() and unlink().
2010-09-27 20:44:49 +00:00
dtrg
072e795aa3
Fixed very old bug where Streams.GetStreamPosition would return the wrong position --- thanks to Jan Verhoeven for finding this.
2010-09-01 19:55:15 +00:00
dtrg
d0ac75ea66
Fixed definitions of O_* flags.
2010-08-20 19:27:09 +00:00
dtrg
8efccf82c7
Remove references to using-machine-name-for-compiler, as we don't do that any more.
2010-08-09 22:47:33 +00:00
dtrg
5e831ec966
Changed to actually work. (On modern Linux systems the old version just
...
crashes. On old Linux systems it apparently only worked by accident.)
2010-08-06 17:06:31 +00:00
dtrg
3310ddcdac
Flush stdout before prompting the user for input.
2010-08-06 17:02:16 +00:00
dtrg
dc9c6c8ca2
Flush output stream before waiting for user input.
2010-08-05 22:23:34 +00:00
cvs2hg
ec96baa6dc
fixup commit for tag 'release-6-0-pre-4'
2010-08-04 18:04:08 +00:00
dtrg
9f641ff005
Forgot to update version number.
2010-08-04 18:04:07 +00:00
dtrg
742a6046e7
Updated for 6.0pre4.
2010-08-04 18:01:12 +00:00
dtrg
3ef5fe565b
Fixed typo.
2010-08-04 17:59:40 +00:00
dtrg
bbdd256739
Prevent build failure on modern Bisons (which are more picky than the old yacc this was written for).
2010-08-01 10:36:01 +00:00
dtrg
9236d6e4aa
Invoke genfiles explicitly with sh --- CVS doesn't store executable bits.
2010-08-01 10:35:33 +00:00
dtrg
8256a10133
Renamed 'switch' variable to avoid conflict with a keyword in modern awks.
2010-08-01 10:35:04 +00:00
dtrg
20f09f610e
Renamed getline() to getln() to avoid conflict with glibc's version.
2010-08-01 10:34:27 +00:00
dtrg
b218202619
Added a very-nearly-noop peephole optimiser for Z80.
2008-03-20 23:20:08 +00:00
dtrg
594fb05c87
Properly handles files ending in a partial line.
2008-03-20 22:50:50 +00:00
dtrg
d06e0b1670
Archival checkin (semi-working code).
2007-11-02 18:56:58 +00:00
cvs2hg
debf852e0d
fixup commit for tag 'release-6-0-pre-3'
2007-04-29 23:09:25 +00:00
dtrg
e9e9c8ac50
Configured distr system for the 6.0pre3 release.
2007-04-29 23:09:24 +00:00
dtrg
a45f7db24a
Cleaned up a bit and made work with the new platform architecture.
2007-04-29 23:03:24 +00:00
dtrg
4c74889bc1
Now using more conservative optimisation due to random seg fault issues.
2007-04-29 23:02:23 +00:00
dtrg
1820152008
Added optimised rules for int<<8 and uint>>8 (which can be done with simple register shuffling rather than calling .sli).
2007-04-29 23:00:31 +00:00
dtrg
c90ee3021b
Fixed the ego parameters to actually allow extended optimisation.
2007-04-29 21:25:09 +00:00
dtrg
5c12b869aa
Use better optimisation options.
2007-04-29 21:24:17 +00:00
dtrg
a1c93cbbe6
Now runs descr files through the ANSI C preprocessor, rather than the K&R one (which no longer exists).
2007-04-29 21:23:55 +00:00
dtrg
f4e3111f50
Fixed the trap code to write out the error message correctly.
2007-04-29 20:47:48 +00:00
dtrg
ac72c550ba
Disabled the code to throw signals on EM traps; this is the platform's job (and requires working signal support, which we may not have).
2007-04-29 20:46:48 +00:00
dtrg
7e624e2f1d
Added suppot for BSS clearing and command line parsing.
2007-04-29 00:28:06 +00:00
dtrg
65e8bffed3
Documented floating-point status.
2007-04-28 22:34:47 +00:00
dtrg
1189d41aec
Added the Mandelbrot generator.
2007-04-28 22:34:05 +00:00
dtrg
d6fc2d19f9
Added cpm platform.
2007-04-27 22:42:41 +00:00
dtrg
c710fde0d5
Added the stdint.h header file.
2007-04-27 22:42:02 +00:00
dtrg
9d8c776888
Cleaned up and enabled the support for conditionally emitting the floating-point stdio code.
2007-04-27 22:41:39 +00:00
dtrg
dcaec5dfa8
Removed a completely pointless 128-byte buffer.
2007-04-27 22:41:05 +00:00