Commit Graph

42879 Commits

Author SHA1 Message Date
Matthew Flatt
08fc3b17c7 Chez Scheme: add "auto.bootquick" makefile target
The "auto.bootquick" target maps to "<machine type.bootquick" for
whatever machine type would be inferred by `configure`.
2020-12-01 19:48:42 -07:00
Matthew Flatt
3ab6fd66ca Chez Scheme: Mac OS PPC32 ABI
The Mac OS ABI is completely different from the Linux ABI for PPC32.
2020-12-01 19:29:47 -07:00
Sorawee Porncharoenwase
0711dd7974 Use unsafe-vector-ref in the loop 2020-11-30 10:56:08 -05:00
Sorawee Porncharoenwase
ed6f990e87 match: eliminate vector refs due to ``_ ddk''
Currently, the pattern matcher always call `vector->list`
on the input vector if a ddk is detected.
However, when there is exactly one ddk and users wish not to
bind an identifier to the ddk, the whole conversion is not needed.
Instead, we can selectively `vector-ref` the prefix and the suffix
of the vector and match them directly against patterns.

Also strengthen an existing test.
2020-11-30 10:56:08 -05:00
Matthew Flatt
ea620f2a4a Chez Scheme: add PPC Mac OS 2020-11-30 07:29:33 -07:00
Matthew Flatt
6e0c9c00b9 Chez Scheme: larger range for relative return address
A 16-bit range is not large enough for "nanopass/pass.ss".
2020-11-30 07:29:33 -07:00
yjqww6
20be8ffc03
RacketCS: preserve immutability when encoding structs as chez records 2020-11-30 07:29:25 -07:00
Paulo Matos
c3c5a33c53 Specify specific ubuntu version to avoid github warning 2020-11-30 08:34:06 +01:00
Matthew Flatt
f74a758051 rktio: bring back old CPU-count code for PPC Mac OS 2020-11-29 16:08:30 -07:00
Matthew Flatt
b12b3ed49e patch libffi3.3 for PPC Mac OS 2020-11-29 16:04:15 -07:00
Matthew Flatt
a940c7a43b Chez Scheme: repair pb code endian swap 2020-11-29 15:09:05 -07:00
Matthew Flatt
638f6f2b44 bc: fix unsafe-mode handling of bitwise-{and,ior,xor}
They were being converted to fixnum operations in unsafe mode, but
the intent was to use fixnum operations only when the argument are
known to be fixnums.
2020-11-29 10:52:28 -07:00
Matthew Flatt
dfad17b7bb docs: add missing info on syntax-local-bind-syntaxes
Related to #3517
2020-11-29 07:07:44 -07:00
Michael Ballantyne
785ad3daea fix syntax-local-eval when intdef argument given 2020-11-29 07:07:37 -07:00
Matthew Flatt
3085780849 Chez Scheme: repair to code vs. non-code chunk handling
The daily build plot showed much higher peak memory use due to some
missing pieces for the split.
2020-11-29 06:03:55 -07:00
Matthew Flatt
1bf4086dae makefile: strip any code signature in "collects-path.rkt"
The latest Mac OS tools automatically sign code when linking, and
"collect-path.rkt" break that signature by changing the executable.
Avoid that problem by removing the signature, first. (Leave it to
distribution tools to install a new signature.)
2020-11-28 16:57:59 -07:00
Matthew Flatt
67a8690021 mach-o: accomodate AArch64 2020-11-28 16:57:59 -07:00
Matthew Flatt
bd193e46f1 bc: W^X for AArch64 Mac OS 2020-11-28 16:57:59 -07:00
Matthew Flatt
64378caa1d Chez Scheme: distinguish code and non-code allocation segments
Code segments are executable and potentially non-writeable in a thread
--- except when specifically enabled, at which point code segments are
made non-executable for that thread. Non-code segments are always made
non-executable.
2020-11-28 16:57:59 -07:00
Matthew Flatt
1a03fe42f0 makefile: support notarization via distro-build 2020-11-28 10:24:53 -07:00
Matthew Flatt
3b262edfa0 changes to compile for Mac OS AArch64
These changes allow cross-compilation of Racket for AArch64.  Whether
the build actually runs is another question.
2020-11-27 19:46:07 -07:00
Matthew Flatt
1e8bf3cfaa skip "pb/.git" in a source distribution
Closes #3508
2020-11-27 11:00:12 -07:00
Matthew Flatt
7375316478 raco pkg: handle EOF reply to interactive question
Closes #3523
2020-11-27 10:50:16 -07:00
Matthew Flatt
1828ff5697 bc: add CPPFLAGS to libffi's test for X32 2020-11-25 20:22:59 -07:00
Sam Tobin-Hochstadt
8f3ea45de1 Remove more deprecation warnings in libffi.
Similar to f2d7f1d822
2020-11-25 15:19:28 -05:00
Matthew Flatt
7a1b10897f remove accidentally added files 2020-11-25 05:29:07 -07:00
Gustavo Massaccesi
76c45cc3e4 Add special case in cpnanopass for (eq? (ftype-pointer-address x) 0) 2020-11-24 13:55:00 -07:00
Florian Weimer
6bdf095944 NOTICE: Mention LZ4
Commit 8858b34bd92ac8d2b6511dc9ca17ebfa06a1bd93 ("Add LZ4 support and
use it by default for compressing files") added LZ4 support and the
lz4 submodule, but did not update the NOTICE file, unlike zlib support
is handled.
2020-11-24 13:54:34 -07:00
Matthew Flatt
f2d7f1d822 libffi: avoid compilation warning on Mac OS 2020-11-24 13:09:54 -07:00
Matthew Flatt
e07dbc39d8 Chez Scheme: more implementation notes 2020-11-24 09:52:18 -07:00
Bogdan Popa
2af0d8ed55 match: add test for _ elimination in vector patterns 2020-11-24 10:00:43 -05:00
Bogdan Popa
ec1f11e18e match: implement and*' in terms of andmap' 2020-11-24 10:00:43 -05:00
Bogdan Popa
7bb2cad8db match: improve elimination of unused bindings 2020-11-24 10:00:43 -05:00
Bogdan Popa
88db31f46d match: preserve stx loc of original app expr 2020-11-24 10:00:43 -05:00
Bogdan Popa
bdef494c8c match: preserve source location in constant-pat predicate applications 2020-11-24 10:00:43 -05:00
Bogdan Popa
0f5ba032bf match: ensure entire `body' is traversed when eliminating unused temps 2020-11-24 10:00:43 -05:00
Bogdan Popa
21cd97f2b2 match: stop searching for unused tmps when all have been found 2020-11-24 10:00:43 -05:00
Bogdan Popa
684a1f1039 match: eliminate field refs due to _ in constructor patterns
Related to #3487.
2020-11-24 10:00:43 -05:00
Matthew Flatt
403ef87ec2 bc: upgrade to libffi 3.3 2020-11-24 07:19:41 -07:00
Matthew Flatt
71ffa2bcb6 doc: clarify intent of CS C-to-Racket calling API 2020-11-23 11:54:04 -07:00
Matthew Flatt
31d0c07d37 rktboot: fix confusion between compile-time and run-time fixnums 2020-11-23 09:55:39 -07:00
Matthew Flatt
318d3e0a9f Chez Scheme: implementation notes on adding functions
Also, explain primitives and entries, which helps make sense of
definitions like

 (define set-car!
   (lambda (p v)
     (#2%set-car! p v)))
2020-11-23 08:32:22 -07:00
Matthew Flatt
71d86bd3a3 cs: unbreak MSVC build 2020-11-23 06:54:01 -07:00
Matthew Flatt
c52113397c Chez Scheme: add weak generic hash tables
Implement weak and ephemeron generic hashtables, and repair weak and
ephemeron `eqv?` hashtables to be weak on numbers.

Racket's implementation of weak `equal?`-based tables now uses weak
generic tables. Datum interning, which needs a weak `equal?`-based
table and was the bottleneck for unfasling literal data, is much
faster. DrRacket's footprint is 1% smaller.
2020-11-23 06:43:49 -07:00
Matthew Flatt
60e9245390 cs: tweak implementation of keyword intern table 2020-11-22 16:12:17 -07:00
Matthew Flatt
3b1f457375 tweak case fixnum-only dispatch
Use `fixnum?` instead of `fixnum-for-any-platform?` when
only fixnums-on-any-platform are relevant.
2020-11-22 15:53:44 -07:00
Matthew Flatt
8751e5b75f Chez Scheme: fix $describe-fasl-from-port with cycles 2020-11-22 15:21:44 -07:00
Matthew Flatt
3ccb523f1a Chez Scheme: unbreak eq? hash on 32-bit platforms 2020-11-22 13:06:08 -07:00
Matthew Flatt
4b39dc73be cs: restore -natipkg in system-library-subpath result 2020-11-22 11:37:00 -07:00
Matthew Flatt
380550a858 cs: unbreak zo-marshal 2020-11-22 10:18:20 -07:00