79211 Commits

Author SHA1 Message Date
Kevin Newton
90103f5d18 [ruby/yarp] Add the ability to serialize shared strings
https://github.com/ruby/yarp/commit/8d18c7ae29
2023-08-25 12:38:35 +00:00
Nobuyoshi Nakada
fe8f6dfed1 Remove yarp hack for BOM 2023-08-25 20:07:10 +09:00
Nobuyoshi Nakada
1f76e42b85 [Bug #19848] Flush BOM
The token just after BOM needs to position at column 0, so that the
indentation matches closing line.
2023-08-25 20:07:10 +09:00
David Rodríguez
023b8ddd22
[rubygems/rubygems] Don't use full indexes unnecessarily on legacy Gemfiles
On legacy Gemfiles with multiple remote sources, where all of them
support the compact index API, we were still falling back to full
indexes.

Fixing this also allows to simplifying the code.

https://github.com/rubygems/rubygems/commit/b1357c8e72
2023-08-25 18:34:47 +09:00
Jun Aruga
b5d0374635
[ruby/openssl] Fix LIBRESSL_VERSION_NUMBER document mistake.
* Fix the wrong man reference.
* According to the LIBRESSL_VERSION_NUMBER(3), the value always ends with 00f.

```
$ man -M /home/jaruga/.local/libressl-6650dce/share/man/ 3 LIBRESSL_VERSION_NUMBER
...
DESCRIPTION
     OPENSSL_VERSION_NUMBER and LIBRESSL_VERSION_NUMBER are numeric release version
     identifiers.  The first two digits contain the major release number, the third and
     fourth digits the minor release number, and the fifth and sixth digits the fix re‐
     lease number.  For OpenSSL, the seventh and eight digits contain the patch release
     number and the final digit is 0 for development, 1 to e for betas 1 to 14, or f
     for release.  For LibreSSL, OPENSSL_VERSION_NUMBER is always 0x020000000, and
     LIBRESSL_VERSION_NUMBER always ends with 00f.
```

https://github.com/ruby/openssl/commit/296c859d18
2023-08-25 18:34:47 +09:00
Nobuyoshi Nakada
503f98ebd3 Remove SCRIPT_LINES__ related member functions 2023-08-25 18:23:05 +09:00
Nobuyoshi Nakada
6aa16f9ec1 Move SCRIPT_LINES__ away from parse.y 2023-08-25 18:23:05 +09:00
卜部昌平
d9cba2fc74 include missing header 2023-08-25 17:27:53 +09:00
卜部昌平
a736420ce5 define back snprintf 2023-08-25 17:27:53 +09:00
卜部昌平
26cb3b5617 config.h has to be the very beginning
This header defines several essential macros.
2023-08-25 17:27:53 +09:00
卜部昌平
140daab5ac #include <stdarg.h> for va_list 2023-08-25 17:27:53 +09:00
卜部昌平
fa327472ca snprintf could be defined
include/ruby/subst.h has `#define snprintf` which breaks here.
2023-08-25 17:27:53 +09:00
卜部昌平
1614e5ebb2 C structs cannot have two definitions
Not allowed even the definitions are identical.
2023-08-25 17:27:53 +09:00
卜部昌平
81620ed9b5 needless duplicated typedef deleted 2023-08-25 17:27:53 +09:00
卜部昌平
ddc5c204b2 VALUE is already defined
This header is needed only when outside of the project
2023-08-25 17:27:53 +09:00
卜部昌平
197e91f357 build matrix for universal parser 2023-08-25 17:27:53 +09:00
卜部昌平
12ec1fb2b1 use configure-detected sanity of _Alignof
This is actually already checked in (Ruby's) configure.
2023-08-25 17:27:53 +09:00
卜部昌平
fa54406f50 empty initializer is a C++ ism
C99 does not allow this syntax.
2023-08-25 17:27:53 +09:00
卜部昌平
eec85a6309 tool/update-deps --fix 2023-08-25 17:27:53 +09:00
卜部昌平
097b766b41 do not redefine a typedef
duplicated typedef declaration was not allowed in C99.
2023-08-25 17:27:53 +09:00
卜部昌平
c914382db2 do not redefine a typedef
duplicated typedef declaration was not allowed in C99.
2023-08-25 17:27:53 +09:00
卜部昌平
fa2712981f workaround clang-17 -Wc2x-extensions
cf: 874217f99b
2023-08-25 17:27:53 +09:00
卜部昌平
b88bdf1ebb direct use of CFLAGS
Autoconf 2.71's `AC_PROG_CC` nukes `CC` variable, which we don't
want.  For instance a user could specify `--with-gcc="gcc -std=c99"`
to _force_ C99 mode; but `AC_PROG_CC` just nulifies that `-std=c99`
part.

`AC_PROG_CC` is called everywhere from inside of autoconf itself via
`AC_REQUIRE([AC_PROG_CC])`.  It is not a wise idea to try avoiding
this macro at all.  We need to reroute `-std=` flags to somewhere
else.
2023-08-25 17:27:53 +09:00
卜部昌平
eb57b6ba82 [CI]: LLVM 18 begun 2023-08-25 17:27:53 +09:00
Nobuyoshi Nakada
5b407450f5
Skip push by dependabot [ci skip]
Would be pull-requested soon.
2023-08-25 17:10:45 +09:00
Hiroshi SHIBATA
f7359e112a
Suggest to add bundled gems into gemspec if 3rd party gem try to load gem from Gem::BUNDLED_GEMS::SINCE
[Feature #19846]
2023-08-25 15:57:53 +09:00
Hiroshi SHIBATA
70272ca65c
Warn for bigdecimal.so case too 2023-08-25 13:11:06 +09:00
Hiroshi SHIBATA
3a70afad32
prime is bundled gems since Ruby 3.1.0. We should warn it under the bundler environment 2023-08-25 12:56:47 +09:00
Hiroshi SHIBATA
28b2cb10d5
We should also warn when loading 'bigdecimal/*' libraries 2023-08-25 12:52:10 +09:00
Hiroshi SHIBATA
bdd535eac6
Decorate Hash syntax for Gem::BUNDLED_GEMS::EXACT 2023-08-25 12:52:10 +09:00
Jeremy Evans
b635388a90 Check that __builtin_mul_overflow can handle long long
Fixes [Bug #17646]

Patch from xtkoba (Tee KOBAYASHI)
2023-08-24 20:47:23 -07:00
dependabot[bot]
945e79c996 Bump actions/checkout from 3.5.3 to 3.6.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.3 to 3.6.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](c85c95e3d7...f43a0e5ff2)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-25 12:08:51 +09:00
Peter Zhu
eb5eeb6f19 [DOC] Fix link in NEWS.md
I forgot to commit the second part in
775df74feb597555f0944ace2d59d10a24d4421e.
2023-08-24 21:48:04 -04:00
Takashi Kokubun
6f1dfa7411
Resurrect srcs dependency for YARP templates (#8285) 2023-08-24 18:46:06 -07:00
Peter Zhu
775df74feb [DOC] Fix link in NEWS.md 2023-08-24 21:45:34 -04:00
Samuel Williams
40d774bec6
Avoid memory dependency between instructions. (#8284) 2023-08-25 13:28:33 +12:00
Takashi Kokubun
97a97d6d6c mv test/bom_test.rb test/yarp/
This sync 0e3dc5a056abf51363070ad94de4a8097bc80197 wasn't successful.
2023-08-24 15:05:04 -07:00
Burdette Lamar
f9aea75747
[DOC] RDoc for Process (#8282) 2023-08-24 17:41:43 -04:00
Alan Wu
ebb9034710 Remove cfp parameter from hook_before_rewind()
It's only used once, and it has to equal `ec->cfp`, so just use that.
2023-08-24 17:37:07 -04:00
Alan Wu
05e827427f Make cfp constant and use it more in vm_exec_handle_exception()
For writing THROW_DATA_VAL, being able to see that it's writing to the
same frame after modifying PC and SP is nice.
2023-08-24 17:37:07 -04:00
Alan Wu
5937a0da80 YJIT: Refactor to use Option<BlockHandler> in SpecVal
We pass block around as `Option<BlockHandler>` having SpecVal
match that simplifes code matching for the `None` case.
2023-08-24 17:35:10 -04:00
Alan Wu
f61e620c4d YJIT: Move block handler SpecVal variants into BlockHandler
A refactor so that the variants correspond to
branches in vm_caller_setup_arg_block().
2023-08-24 17:35:10 -04:00
Kevin Newton
0e3dc5a056 [ruby/yarp] Fix lex compat with BOM
* BOM should not impact looking for the encoding string
* We should re-encode tokens when the encoding changes
* BOM should change the column of comments only

https://github.com/ruby/yarp/commit/119fc2d7b2
2023-08-24 21:30:01 +00:00
Kevin Newton
90048241ca [ruby/yarp] A couple small stylistic updates for yp_scope_node
* Ensure the node gets initialized in case of failure with no assertions
* Include lambda and top-level nodes for scopes
* Small indentation fixes

https://github.com/ruby/yarp/commit/be29e07391
2023-08-24 19:27:22 +00:00
Jemma Issroff
90ff30e51e [ruby/yarp] Requested changes
https://github.com/ruby/yarp/commit/eb01ea17c1
2023-08-24 19:06:02 +00:00
Jemma Issroff
82d84d741e [ruby/yarp] Added BlockNode case to ScopeNode, fixed ScopeNode to have body
https://github.com/ruby/yarp/commit/8bd3f59621
2023-08-24 19:06:01 +00:00
Jemma Issroff
ef82054bb5 [ruby/yarp] Added ModuleNode
https://github.com/ruby/yarp/commit/29754d818b
2023-08-24 19:06:01 +00:00
Jemma Issroff
82e1434ef6 [ruby/yarp] Pulled scope node out of config.yml, added necessary void returns
https://github.com/ruby/yarp/commit/926e6bdd88
2023-08-24 19:06:00 +00:00
Jemma Issroff
d81634d3ef [ruby/yarp] Add a ScopeNode and a way to create scope nodes from existing nodes
This commit creates a scope node, and exposes a method to get
ScopeNodes from other existing nodes. It still has TODOs around
creating ScopeNodes for other types of nodes, which will be
done in future commits.

https://github.com/ruby/yarp/commit/3b9ac5764d
2023-08-24 19:06:00 +00:00
Burdette Lamar
75c9c2c431
[DOC] Process doc (#8279) 2023-08-24 13:46:14 -04:00