1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 12:20:26 +02:00
Commit graph

20154 commits

Author SHA1 Message Date
Andy Wingo
b371e913ff Tests for some div operations 2019-03-25 21:11:44 +01:00
Andy Wingo
56d8f8d6f0 Add more tests 2019-03-25 21:02:24 +01:00
Andy Wingo
823387114a Add new tests 2019-03-25 20:38:23 +01:00
Andy Wingo
94a58a80d2 Add note about current status 2019-03-25 15:39:45 +01:00
Andy Wingo
02ce8952ef Flesh out README 2019-03-25 15:36:12 +01:00
Andy Wingo
f0cecc45d4 Convert tests to jit_load_args 2019-03-25 15:24:40 +01:00
Andy Wingo
df0a5d738f Better loading of args to registers; add tests 2019-03-25 15:08:05 +01:00
Andy Wingo
021f31f1dc Add "addi" test 2019-03-25 12:31:51 +01:00
Andy Wingo
bad7e34c83 Implementation of new design
Documentation to come, as tests get added and things settle down.
2019-03-25 12:21:23 +01:00
Michael Gran
3a64c504ca Disable test for current value of setitimer on Cygwin
* test-suite/tests/signals.test ("current itimers are 0"): throws unresolved
    for cygwin
2019-02-23 23:23:19 -08:00
Michael Gran
2a3ccfb667 Make locale monetary conversion tests be less strict on terminal whitespace
* test-suite/tests/i18n.test (monetary-amount->locale-string): modified
2019-02-23 23:16:31 -08:00
Michael Gran
92105d13ad Handle newlib C library's langinfo constant names
The newlib C library (used in Cygwin) has alternative names for
nl_langinfo GNU extensions

* configure.ac (_NL_NUMERIC_GROUPING): new test
* libguile/i18n.c (INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP)
   (MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, GROUPING, INT_FRAC_DIGITS)
   (FRAC_DIGITS, P_CS_PRECEDES, P_SEP_BY_SPACE, N_CS_PRECEDES, N_SEP_BY_SPACE)
   (P_SIGN_POSN, N_SIGN_POSN, INT_P_CS_PRECEDES, INT_P_SEP_BY_SPACE)
   (INT_N_CS_PRECEDES, INT_N_SEP_BY_SPACE, INT_P_SIGN_POSN, INT_N_SIGN_POSN)
   [HAVE_DECL__NL_NUMERIC_GROUPING]: map to newlib C constants, when present
2019-02-23 16:33:50 -08:00
Michael Gran
9ba449643d Add a fallback value for the locale-monetary-decimal-point
* module/ice-9/i18n.scm (locale-monetary-decimal-point): use "." as fallback
2019-02-23 16:19:05 -08:00
Andy Wingo
2dccec9f55 Fix race when expanding syntax-parameterize and define-syntax-parameter
* module/ice-9/psyntax.scm (put-global-definition-hook)
  (get-global-definition-hook): Inline into uses.
  (make-binding): Change format of lexically defined or rebound syntax
  parameters to just be the transformer, not a list of the transformer.
  (resolve-identifier, expand-install-global, expand-body)
  (syntax-parameterize): Adapt to use the variable object (box) holding
  the top-level syntax parameter as the "key" for lookups into the
  lexical environment, instead of a fresh object associated with the
  syntax transformer.
* module/ice-9/psyntax-pp.scm: Regenerate.

Fixes #27476, a horrible race when one thread is expanding a
syntax-parameterize form including uses, and another thread is expanding
the corresponding define-syntax-parameter.  See
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27476#102.
2019-02-22 15:25:21 +01:00
Andy Wingo
61a8c9300d Fix race when expanding syntax-parameterize and define-syntax-parameter
* libguile/macros.c (scm_i_make_primitive_macro): Give primitive macros
  a primitive-macro macro-type.
* module/ice-9/psyntax.scm (put-global-definition-hook)
  (get-global-definition-hook): Inline into uses.
  (make-binding): Change format of lexically defined or rebound syntax
  parameters to just be the transformer, not a list of the transformer.
  (resolve-identifier, expand-install-global, expand-body)
  (syntax-parameterize): Adapt to use the variable object (box) holding
  the top-level syntax parameter as the "key" for lookups into the
  lexical environment, instead of a fresh object associated with the
  syntax transformer.
* module/ice-9/psyntax-pp.scm: Regenerate.

Fixes #27476, a horrible race when one thread is expanding a
syntax-parameterize form including uses, and another thread is expanding
the corresponding define-syntax-parameter.  See
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=27476#102.
2019-02-22 15:11:29 +01:00
Andy Wingo
c537f938d1 Fix linker.test
* test-suite/tests/linker.test (link-elf-with-one-main-section): Adapt
  to change in c9e052be49.
2019-02-22 15:01:01 +01:00
Andy Wingo
27ffbfb023 Fix crypt-on-glibc test error
* test-suite/tests/posix.test ("crypt"): Allow for the given salt being
  valid.  Thanks to Jonathan Brielmaier for the report and debugging!
2019-02-21 11:13:28 +01:00
Mike Gran
78468baa11 Fix binary output on files created by mkstemp!
Some operating systems require a O_BINARY flag.

* libguile/filesys.c (scm_i_mkstemp): Don't mask out O_BINARY flag
* test-suite/tests/posix.test ("binary mode honored"): new test
2019-02-09 16:59:38 -08:00
Mike Gran
1437b76777 Avoid leaking a file descriptor in test-unwind
* test-suite/standalone/test-unwind.c (check_ports): explicitly close temp file
2019-02-09 16:39:19 -08:00
Mike Gran
139c702fc8 Fix strftime compile with null threads
* libguile/stime.c (scm_strftime): use correct pthread lock function
2019-02-09 16:20:13 -08:00
Mike Gran
1ba5d6f47a Remove redefinition of when & unless in snarf-check-and-output-texi
* module/scripts/snarf-check-and-output-texi.scm (when, unless): removed
2019-02-09 09:54:55 -08:00
Mike Gran
552f007e91 Don't mutate read-only string in ports test
* test-suite/tests/ports.test ("valid wide mode string"): modified
2019-02-09 09:44:28 -08:00
Andy Wingo
667e511dc3 Fix crypt-on-glibc test error
* test-suite/tests/posix.test ("crypt"): Allow for the given salt being
  valid.  Thanks to Jonathan Brielmaier for the report and debugging!
2019-02-01 18:00:51 +01:00
Ludovic Courtès
45e4ace660 Do not warn the user when 'madvise' returns ENOSYS.
* libguile/vm.c (return_unused_stack_to_os): Avoid 'perror' calls when
'madvise' returns ENOSYS.
2018-12-16 11:34:14 +01:00
Daniel Llorens
901bfef592 Fix tests for SRFI-19 date->string ~N 2018-12-12 08:02:23 +01:00
Daniel Llorens
f74cfce4f1 Support ~N in SRFI-19 string->date
* module/srfi/srfi-19.scm (fractional-integer-reader,
  make-fractional-integer-reader): From reference implementation.
  (reader-directives): Handle #\N, from reference implementation.
* test-suite/tests/srfi-19: Add tests for string->date ~N.
* doc/ref/srfi-modules.texi (string->date): Add line for ~N.
2018-12-11 22:44:34 +01:00
Mark H Weaver
8e86dd93a0 Update (ice-9 match) to include selected bug fixes from upstream.
Fixes <https://bugs.gnu.org/22925> and other bugs.

* module/ice-9/match.upstream.scm: Apply selected fixes from the
upstream match.scm in Chibi-Scheme.
* test-suite/tests/match.test.upstream: Add more tests from upstream.
2018-11-11 23:14:18 -05:00
Mark H Weaver
f24bdb78a3 Fix spelling of ellipsis in (ice-9 match).
* module/ice-9/match.upstream.scm: Change several occurrences
of 'ellipse' and 'ellipses' to 'ellipsis', to more closely match
match.scm from Chibi-Scheme.
2018-11-11 23:13:49 -05:00
Andy Wingo
0d81c5c337 Beginnings of port of x86 to new design 2018-11-04 12:18:51 +01:00
Andy Wingo
c51c93708a Make _rvs array static-const 2018-11-04 12:18:38 +01:00
Andy Wingo
9bc0158238 Inline private.h into jit.c 2018-11-04 10:49:08 +01:00
Andy Wingo
447fccfed6 Remove needless PUBLIC/HIDDEN definitions 2018-10-31 22:05:09 +01:00
Andy Wingo
017740cb52 Really finish stdint conversion 2018-10-31 21:54:19 +01:00
Andy Wingo
9e70bdab38 Update gitignore 2018-10-31 21:49:41 +01:00
Andy Wingo
a0714ec410 Finish conversion to stdint types 2018-10-31 21:49:10 +01:00
Andy Wingo
47970773bc "extern"-related cleanup, and further implementation 2018-10-31 21:45:16 +01:00
Andy Wingo
0d78447d85 Trim unneded bits from jit.c 2018-10-31 19:33:26 +01:00
Mikael Djurfeldt
d81253b292 Documentation fixes
* doc/ref/api-control:
* doc/ref/compiler.texi: Language fixes
* doc/ref/compiler ($kfun): Renamed argument clauses -> clause.
2018-10-31 19:14:01 +01:00
Andy Wingo
e81b64d2fc Update call/receive machinery
Update calls and receives to take their arguments all at once, for more
efficient shuffling.
2018-10-31 11:34:23 +01:00
Andy Wingo
17a38ffd9c Add endian.h 2018-10-30 13:54:48 +01:00
Andy Wingo
f3f71941ac Replace jit_int32_t, etc with stdint types 2018-10-30 13:48:57 +01:00
Andy Wingo
d567faf657 Create beginning of stripped-down lightning interface
This file is the beginning of a lightened lightning.
2018-10-30 13:36:09 +01:00
Andy Wingo
90ebba864a Remove unneeded bits of lightning 2018-10-30 12:32:26 +01:00
Andy Wingo
9c1b01fba5 Simplify file names 2018-10-30 12:29:18 +01:00
Andy Wingo
846e7bc443 Remove -sz.c files
The new form of this library will not need them.
2018-10-30 12:21:45 +01:00
Andy Wingo
48993156f6 Rename lightning.c to jit.c 2018-10-30 12:20:05 +01:00
Andy Wingo
796ec6c16d Rename include to jit.h, move all files to jit/
This change is in anticipation of making this lightning fork into an
include-only library.
2018-10-30 12:16:35 +01:00
Andy Wingo
a5263b6618 Remove autotools 2018-10-30 11:48:23 +01:00
Andy Wingo
8215433144 Remove bits of .gitignore no longer needed 2018-10-30 11:47:57 +01:00
Andy Wingo
beac56d7ec Remove TODO 2018-10-30 11:47:49 +01:00