diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-10-22 15:08:29 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu.nakada@gmail.com> | 2024-10-23 23:02:15 +0900 |
| commit | 7d1011d3fa7226c47adf2914fb9035304f233cb2 (patch) | |
| tree | 9776d602733bc51d6b3b439abdbee84d9b7c0ee0 /include/ruby/ruby.h | |
| parent | 47f6ba349f531ac9cfe0c42bfaa81b087143770d (diff) | |
Fix false warning by gcc 14 for aarch64
gcc 14 for aarch64 with `-O3` may emit a false positive warning for a
pointer access of `RB_BUILTIN_TYPE` called from `RB_TYPE_P`. `Qfalse`
shouldn't get there because of `RB_SPECIAL_CONST_P`, but the optimizer
seems to ignore this condition in some cases (`ASSUME` just before the
access doesn't seem to have any effect either). Only by reversing the
order in `RB_SPECIAL_CONST_P` to compare with 0 first does the warning
seem to go away.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11928
Diffstat (limited to 'include/ruby/ruby.h')
0 files changed, 0 insertions, 0 deletions
