Commit Graph

4190 Commits

Author SHA1 Message Date
Matthew Flatt
8122249602 avoid compiler warnings 2013-03-18 11:30:10 -07:00
Matthew Flatt
3bf9dd93dc fix header-file issues 2013-03-18 11:30:10 -07:00
Michael Filonenko
35a093469c windows: extflonum support
Enable extflonums in a MSVC build by relying on a MinGW-built DLL,
"longdouble.dll". The DLL is loaded on startup. If the DLL isn't
available, then `extflonum-available?' reports #f.

Instead of setting the floating-point mode globally to extended
precision, the mode is changed only just before (and restored right
after) extflonum arithmetic operations.
2013-03-18 07:42:32 -07:00
Tobias Hammer
2bae950273 Work around bug in QNX readlink
QNX readlink null-terminates its result and adds the termination
to the len-result. Fix by decrementing len if needed.
2013-03-10 07:18:04 -06:00
Matthew Flatt
5e20f51415 fix mark handling for impersonatored procedures to match docs
Using an impersonator property to represent an application mark was
a bad choice. The property gets propagated, so it is also on any later
chaperone layer, and then things go bad: the docs say that special
treatment is triggered by supplying an argument to `impersonate-property',
but it was actually triggered by the chaperone having the property.

Change the implementation to match the documentation. Using an
impersonator property to supply the mark should be regarded as a hack,
but now the implementaiton is at least consistent with the documentaiton.
2013-03-03 10:16:51 -07:00
Matthew Flatt
cdf0f6b9ab add 'so-mode to `system-type'
To work better with OpenBSD (which has been a problem since we
changed `ffi-lib' to open libraries in "local" mode by default).
2013-03-01 15:20:17 -07:00
Juan Francisco Cantero Hurtado
292c81a826 Fix `configure' for OpenBSD
"-rdynamic" doesn't work with GCC 4.7 on OpenBSD: "cc: error:
unrecognized command line option '-rdynamic'". The switch isn't
necessary because it is only a wrapper to "-Wl,--export-dynamic".
Look GCC bug 37454.
2013-03-01 15:20:17 -07:00
Matthew Flatt
ca4320467c fix missing initialization of cached inspector reference
The 3m transformation fills it in, but it's obviously
better to be explicit and avoid the bug for CGC.
2013-02-28 12:19:25 -07:00
Matthew Flatt
542c38ebc5 equality: struct transparency and inspector shortcuts and caching
Same as for hashing.
2013-02-28 12:19:25 -07:00
Matthew Flatt
2236363696 fix bug in hashing shortcut for transparency 2013-02-28 10:06:36 -07:00
Matthew Flatt
39aafe3a1e change `eq?' hashing to avoid dropping the low bit for fixnums 2013-02-28 06:51:26 -07:00
Matthew Flatt
7a8c2ff063 improve complexity of `hash-iterate-{key,value}'
For immutable hashes, `hash-iterate-{key,value}' used to take O(N) time on
the first call for a particular table and O(1) thereafter. Now it takes
O(1) time for all calls, the constant is only slightly larger for
the non-first calls, and there's no extra allocation.
2013-02-28 06:51:26 -07:00
Matthew Flatt
773496642b `equal?' hashing: shortcut and some caching for structure transparency 2013-02-28 06:51:26 -07:00
Eli Barzilay
ca304aafaf New Racket version 5.3.3.7. 2013-02-28 03:50:23 -05:00
Matthew Flatt
abf44f8b49 add `module-compiled-cross-phase-persistent?' 2013-02-27 08:53:43 -07:00
Matthew Flatt
88a36a077c terminology change again: "cross-phases persistent" modules 2013-02-27 08:53:43 -07:00
Eli Barzilay
5ca93be56c New Racket version 5.3.3.6. 2013-02-27 03:30:19 -05:00
Matthew Flatt
a04bfa5ba2 fix phase-collapsing-module inference
This bug was causing a crash in some DrRacket tests.
2013-02-26 19:19:57 -07:00
Matthew Flatt
2646ff6895 try "phase-collapsing" instead of "phaseless" 2013-02-26 19:01:36 -07:00
Matthew Flatt
2e652fc2b3 fix some "phaseless" module holes 2013-02-26 19:01:35 -07:00
Matthew Flatt
899a3279c2 add experimental support for "phaseless" modules
The intent is to support phase-crossing data such as the `exn:fail:syntax'
structure type that is instantiaed by macros and recognized by contexts
that use `eval' or `expand'. Phaseless modules are highly constrained,
however, to avoid new cross-phase channels, and a module is inferred to
be phaseless when it fits syntactic constraints.

I've adjusted `racket/kernel' and improved its documentation a little
so that it can be used to implement a phaseless module (which can
import only from other phaseless modules).

This change also adds a `flags' field to the `mod' structure type
from `compiler/zo-structs'.
2013-02-26 14:55:28 -07:00
Matthew Flatt
bb9068641b racket/draw win32: Pango patch
Closes PR 13513
2013-02-23 08:42:36 -07:00
Eli Barzilay
de2aa509ac New Racket version 5.3.3.5. 2013-02-21 03:30:15 -05:00
Matthew Flatt
33c6635550 version 5.3.3.5
Bumped to force a rebuild of ".zo"s that were generated with the flonum
bug.
2013-02-20 06:46:32 -07:00
Matthew Flatt
c56b73a00a JIT: fix slow-path boxing for non-self-tail calls with unboxed arguments
The bug was introduced when changing the order of unboxed argument
staging along with extflonum unboxing support. The main symptom of
the bug was that icons were sometimes blacked out in DrRacket.
2013-02-20 06:42:01 -07:00
Matthew Flatt
535072086b fix non-extflonum build 2013-02-19 18:15:48 -07:00
Matthew Flatt
97c34905c1 racket/extflonum: fix JIT-inlined `extflvector-ref' in 32-bit mode 2013-02-19 16:47:39 -07:00
Matthew Flatt
0afcda2a5a fix error checking for flreal-part' and flimag-part' 2013-02-19 16:47:39 -07:00
Matthew Flatt
8ef5e88f41 another JIT repair 2013-02-19 14:03:00 -07:00
Matthew Flatt
e0650c43df JIT: fix for 32-bit mode
Fix a bug in ca951294d4.
2013-02-19 10:41:08 -07:00
Matthew Flatt
ca951294d4 JIT: inline char->integer' and integer->char' 2013-02-19 08:43:50 -07:00
Eli Barzilay
bbd06930ae New Racket version 5.3.3.4. 2013-02-19 03:30:16 -05:00
Matthew Flatt
79c4af4e45 racket/base: add `impersonator-ephemeron' 2013-02-18 17:01:11 -07:00
Matthew Flatt
fdd8dc9376 JIT: fix bug in checking certain values before unboxing
The check was incomplete in the case that both arguments to a binary
[ext]flonum function need to be checked and the second one was not an
[ext]flonum and also not a fixnum.
2013-02-18 11:07:45 -07:00
Matthew Flatt
4271d987cd ffi/unsafe: fix a bug in conversion to UTF-16
Characters outside of the BMP were translated incorrectly.
2013-02-18 10:28:58 -07:00
Matthew Flatt
f8a0d6d432 configure: add more guidance/reporting on non-recommended options 2013-02-18 10:28:58 -07:00
Eli Barzilay
9e9adeae0c Consistent capitalization for "GRacket". 2013-02-16 13:41:38 -05:00
Matthew Flatt
9b04aef0f8 fix a problem with `syntax-local-lift-require' at top level
The problem was exposed by improved error checking
in the expander to detect references to exports of a module that
is not yet visited, and as triggered by the documentation for
`2htdp/planetcute'.
2013-02-16 09:29:16 -07:00
Eli Barzilay
1ddacff399 New Racket version 5.3.3.3. 2013-02-16 03:40:18 -05:00
Matthew Flatt
6281ac0aac less noisy win32 builds 2013-02-15 12:15:53 -07:00
Michael Filonenko
840fc9c657 full unboxing for extflonums, plus `ffi/unsafe' support
Includes a repair for floating-point `min' and `max' that affects all
x86 builds that use SSE arithmetic, leaving the (otherwise unused)
floating-point stack in a bad state, which might have affected
x87-using C/foreign libraries running alongside Racket.
2013-02-15 12:15:34 -07:00
Matthew Flatt
a348e5421d fix a `configure' test
Thanks again to Tobias.
2013-02-15 11:55:26 -07:00
Eli Barzilay
576a573216 New Racket version 5.3.3.2. 2013-02-15 03:30:18 -05:00
Matthew Flatt
74a3e14f9c improve `configure' tests for cross-compilation
Use compile and link tests instead of run tests, where
possible.

Based on a patch from Tobias
2013-02-14 19:47:40 -07:00
Matthew Flatt
ccabbaa36e fix `current-subprocess-custodian-mode' for a #f argument 2013-02-14 17:30:10 -07:00
Matthew Flatt
421cb24138 add `port-counts-lines?' 2013-02-14 15:45:26 -07:00
Tobias Hammer
7e2b443fa9 Support for multiple value return from wrap-evt and handle-evt
wrap/handle-evt that receives multiple values must have a handler function with adequate arity.

struct.c:
  change contract for wrap/handle-evt from (any/c -> any) to procedure?
thread.c:
  adjust sync processing
sync.rktl:
  add test for handle-evt, wrap-evt and prop:evt
2013-02-14 15:45:26 -07:00
Matthew Flatt
294bed209e macro expander fix
Repair 73e07f576b added an item to a list without incrementing a
counter for the list length, which cause a different element of
the list to be dropped, which could mess up binding resolution in
arbitrarily bad ways.

(Ths bug falls into the "how did this not get exposed earlier?"  bin,
although part of the answer is that it requires a combination of
module re-expansion and simplification of syntax objects in the
residual program.)

Closes PR 13428
2013-02-14 07:11:16 -07:00
Ryan Culpepper
f08133733a fix error message 2013-02-13 13:43:40 -05:00
Matthew Flatt
d408ba43a8 fix submodule `expand' handling
Trying again for 4a0adb6a74.
2013-02-13 10:26:31 -07:00
Matthew Flatt
9ff47ec1d0 Windows: propagate system error text even with format commands
For example, error 193 now says "%1 is not a valid Win32 application.",
which is ugly but better than "Unknown error".
2013-02-13 08:54:53 -07:00
Matthew Flatt
c6eb82524b fix `syntax-local-module-exports' for submodules in expand mode 2013-02-13 08:28:23 -07:00
Matthew Flatt
8c2c84f74f fix context for `#%module-begin' form in a submodule 2013-02-13 08:28:22 -07:00
Matthew Flatt
4a0adb6a74 fix syntax-local-submodules' in expand' mode 2013-02-13 08:28:22 -07:00
Matthew Flatt
7f5b295308 fix problem with the initial continuation prompt
(Got it wrong in 2f7d4b5e.)

Closes PR 13494
2013-02-12 14:17:57 -07:00
Eli Barzilay
49ab87eadc "PLT Scheme Inc" -> "PLT Design Inc" 2013-02-12 08:06:30 -05:00
Matthew Flatt
dd50ac8652 catch module-not-available mimatches earlier 2013-02-08 22:57:37 -06:00
Matthew Flatt
689b62a7a3 configure: adjust mmap()/mprotect() test
Avoid aggravating SELinux.
2013-02-08 22:57:37 -06:00
Eli Barzilay
0e8b5f87b3 New Racket version 5.3.3.1. 2013-02-08 03:30:17 -05:00
Eli Barzilay
f548555095 Post-release version for the v5.3.3 release 2013-02-06 22:43:19 -05:00
Matthew Flatt
38fb10eaec new-style contract errors for `exn' field guards 2013-02-05 11:44:38 +01:00
Matthew Flatt
442f6eaaae fix `regexp-match' variants given a long string and an output port
... again; commit d194fa6245 turned out to be incomplete.
2013-02-05 11:44:38 +01:00
Matthew Flatt
50a82872f0 x86_64-mac: Pango CoreText repair
Closes PR 13473
2013-02-02 19:41:59 -08:00
Matthew Flatt
5dda7c4b14 work around C library bug in powl() 2013-02-01 15:00:23 -08:00
Matthew Flatt
c1bd671b08 fix prototype when the C compiler has no "no inline" annotation 2013-02-01 10:35:38 -08:00
Matthew Flatt
ffb4b34494 another repair for extflonum support 2013-01-29 16:55:20 -07:00
Matthew Flatt
28493dcc88 repairs to extflonum changes 2013-01-29 05:53:30 -07:00
Matthew Flatt
74986a42e3 fix to use compiled startup code 2013-01-29 05:53:30 -07:00
Eli Barzilay
113077dc70 New Racket version 5.3.2.3. 2013-01-29 03:30:18 -05:00
Michael Filonenko
17b8092641 extflonums
An extflonum is like a flonum, but with 80-bit precision and
not a number in the sense of `number?': only operations such as
`extfl+' work on extflonums, and only on platforms where extflonums
can be implemented by hardware without interefering with flonums
(i.e., on platforms where SSE instructions are used for
double-precision floats).

[Patch provided by Michael Filonenko and revised by Matthew.]

The compiler tracks information about bindings that are known to
hold extflonums, but the JIT does not yet exploit this information
to unbox them (except as intermediate results).
2013-01-28 18:17:06 -07:00
Matthew Flatt
3777a6d3f0 fix problem with --enable-shared and CGC install 2013-01-25 12:10:36 -07:00
Matthew Flatt
9210437b3f fix internal-definition expansion
The code added to handle expressions mixed with definitions was
not introduced in the right way; fix it to be like macro-introduced
code.

Closes PR 13452
2013-01-25 05:08:46 -07:00
Matthew Flatt
00362a273f fix `string-normalize-nf[k]c' when composed is much smaller then decomposed
For composed normalization, space is initially allocated based on the
decomposed length. The clean up step to avoid wasted space was wrong.
2013-01-24 06:43:10 -05:00
Eli Barzilay
08106e072c New Racket version 5.3.2.2. 2013-01-19 03:30:14 -05:00
Matthew Flatt
48e0509381 add `file-truncate' 2013-01-18 11:03:46 -06:00
Asumu Takikawa
2ac6615da9 Use correct parent for date* in makeexn
Please merge to 5.3.2
2013-01-11 21:22:20 -05:00
Vincent St-Amour
6480addbd1 Distinguish between different kinds of inlining failures. 2013-01-11 18:40:23 -05:00
Vincent St-Amour
8e9f21b181 Make inliner log parsing more robust.
Relies less on regular expressions and more on a custom reader.
2013-01-11 18:40:22 -05:00
Vincent St-Amour
768d88c53d Log functions too big to be inlined.
Patch from Matthew.
2013-01-11 18:40:18 -05:00
Matthew Flatt
f93c620814 futures: bug fix
The problem was in the handing of "lightweight continuations" used to
represent suspended computations, and in particular the handling
of continuation marks (such as the ones added by DrRacket's debugging
mode).

Unfortunately, I wasn't able to construct a simpler test case that
triggers the problem. I think the number of installed continuation marks
has to be just right, and there have to be some replacing marks, and
a lightweight continuaiton has to be captured at the right time
as a result of applying a previously captured continuation.

Closes PR 13427

Merge to v5.3.2
2013-01-11 12:40:51 -07:00
Juan Francisco Cantero Hurtado
99c60d725c It fixes a crash on OpenBSD
It fixes a crash in the installation on OpenBSD. Racket reaches the
limits of the shell when it is compiled with a non-root user account.

Tested on OpenBSD-current amd64.

Merge to v5.3.2
2013-01-09 19:12:22 -07:00
Eli Barzilay
79b9acd444 2012 -> 2013 2013-01-09 01:17:26 -05:00
Eli Barzilay
3f65f91f03 New Racket version 5.3.2.1. 2013-01-08 03:30:08 -05:00
Ryan Culpepper
69f8f2f153 Post-release version for the v5.3.2 release 2013-01-08 00:16:59 -05:00
Matthew Flatt
05837fac1b planet2: installation-wide config of default `raco pkg' scope
With either
  configure --enable-pkgscope=installation
or
  raco pkg config -i --set default-scope installation
the default scope of `raco pkg' actions can be changed from
user-specific to installation-wide.

We considered trying to guess when someone building Racket would prefer
installation-wide package scope by default. In particular, someone
building from source for in-place use seems likely to want
installation-wide scope by default. Then again, we don't want to
discourage in-place builds for Unix installations that are intended
for multiple users. So, no guessing for now.

Also, add a `--scope' argument to `raco pkg' commands, which is more in
line with other options, but keep `-i', etc., as shorthands.
2013-01-06 11:17:22 -07:00
Matthew Flatt
5a1f0f3863 minor README correction 2013-01-05 08:42:20 -07:00
Michael Filonenko
6702fd38d2 supporting http proxy (without authorization) during make install 2013-01-05 06:48:05 -07:00
Matthew Flatt
67f0af387b fix problems with single-flonum (versus flonum) results
The problems were with

 * `sqrt' and `expt' on single-flonum complex numbers
 * `asin' and `acos' on single-flonum arguments and complex results
 * `atan' on mixtures of single-flonum and exact arguments
 * `gcd' on mixtures of single-flonum and flonum arguments
2013-01-04 08:00:24 -07:00
Matthew Flatt
3c5135fc7a `expt' repair, again
Previous repair wasn't general enough; negative powers can also
go wrong.
2013-01-01 18:05:37 -07:00
Matthew Flatt
07d5a9e385 fix `expt' on small negative number and large positive odd
The pow() function apparently gets it wrong on some platforms.

Closes PR 13391
2013-01-01 12:33:59 -07:00
Matthew Flatt
0097d59635 avoid compiler warning 2013-01-01 12:11:36 -07:00
Eli Barzilay
0a0fe1a011 New Racket version 5.3.1.12. 2013-01-01 03:30:13 -05:00
Matthew Flatt
cdfc4912ad racket/base: add exn:fail:filesystem:errno and exn:fail:network:errno
Provide raw error codes when available, which is mostly from filesystem
and networking primitives.
2012-12-31 12:04:03 -07:00
Matthew Flatt
dc9643aef6 fix typo in error message 2012-12-31 12:04:03 -07:00
Matthew Flatt
ba973a317f add `configure' test for mmap() and mprotect()
Use the test to enable execute permission on memory that is allocated
for code, including FFI callbacks.
2012-12-31 12:04:03 -07:00
Matthew Flatt
7cb7beae27 fix non-JIT build
Fix a reference to a function that is only available when the JIT is
enabled.
2012-12-30 20:30:33 -06:00
Matthew Flatt
05ce8bce80 win32: fix MinGW vs. MSVC build problem 2012-12-30 05:41:24 -07:00
Matthew Flatt
93affa4d5d fix a build dependency in --enable-shared mode
Closes PR 13392
2012-12-28 12:22:32 -07:00
Matthew Flatt
03259ef539 MinGW-w64 support
For now, SGC must be used, but `configure' does not select it
automatically.

Also, support Cygwin (in addition to MSYS) as a build environment
when using MinGW compilers. Since I build in a Cygwin environment
(which seemed to be the easiest way to get MinGW-w64 gcc), I use

  ../configure --host=x86_64-w64-mingw32 --enable-sgc
2012-12-28 11:06:46 -06:00
Eli Barzilay
b9a7f0ef62 New Racket version 5.3.1.11. 2012-12-28 03:35:13 -05:00