Files
ruby/internal
Takashi KokubunandNobuyoshi Nakada dcfba57257 Suppress -Warray-bounds false positive in RCLASS_WRITE_SUPER (#16990)
After 4bb1977b78 switched RCLASS_PRIME_CLASSEXT_WRITABLE_P to FL_TEST_RAW,
GCC lost the RB_FL_ABLE-derived hint that klass is not a special const,
and started warning that RCLASS_EXT_PRIME(klass) (used by the inlined
RCLASS_WRITE_SUPER in class_associate_super) could yield a near-zero
pointer. Make the existing VM_ASSERT(klass != 0) precondition visible
to the optimizer via RBIMPL_ASSUME so the warning goes away without
re-introducing the FL_TEST overhead.

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2026-05-26 14:50:45 -07:00
..
2025-12-01 15:19:26 -08:00
2025-11-19 16:05:12 +09:00
2026-03-06 14:02:00 +09:00
2021-09-10 20:00:06 +09:00
2021-09-10 20:00:06 +09:00
2025-12-16 09:51:07 +01:00
2021-09-10 20:00:06 +09:00
2021-09-10 20:00:06 +09:00
2021-09-10 20:00:06 +09:00
2021-09-10 20:00:06 +09:00
2025-12-11 23:25:57 +01:00
2026-05-13 17:37:48 +09:00
2026-05-18 08:58:32 +03:00
2026-05-18 08:58:32 +03:00
2025-10-13 15:21:36 -04:00
2021-09-10 20:00:06 +09:00
2021-09-10 20:00:06 +09:00
2024-01-11 10:09:53 -05:00
2025-01-20 10:31:36 -05:00
2023-05-21 23:00:27 +09:00
2024-10-24 16:08:46 +01:00
2023-12-07 15:52:35 -05:00
2026-05-26 13:04:22 -04:00
2021-09-10 20:00:06 +09:00
2026-03-16 15:04:38 +01:00
2021-09-10 20:00:06 +09:00
2023-12-07 15:52:35 -05:00
2021-09-10 20:00:06 +09:00
2021-09-10 20:00:06 +09:00