diff options
| author | Yap Zhi Heng <yapzhhg@gmail.com> | 2025-10-26 11:13:25 +0800 |
|---|---|---|
| committer | Arthur Cohen <arthur.cohen@embecosm.com> | 2025-11-17 15:58:17 +0100 |
| commit | ce39846e3117c6fd65f929220148f6e5a7287f77 (patch) | |
| tree | 054eb00ec4fbbe3afa17918e26617c1e2d0e48dc /libjava/classpath/gnu/java/beans/decoder/ArrayHandler.java | |
| parent | b1b1acc984843be2fad2140e2a43562730d50423 (diff) | |
gccrs: Fix `RangePattern` negative literal bounds being treated as positive
GIMPLE output for compile/issue-4242.rs:
...
x = 1;
RUSTTMP.2 = x;
_1 = RUSTTMP.2 >= -55;
_2 = RUSTTMP.2 < 0;
_3 = _1 & _2;
if (_3 != 0) goto <D.112>; else goto <D.113>;
<D.112>:
{
RUSTTMP.1 = 2;
goto <D.105>;
}
<D.113>:
_4 = RUSTTMP.2 >= -99;
_5 = RUSTTMP.2 < -55;
_6 = _4 & _5;
if (_6 != 0) goto <D.114>; else goto <D.115>;
<D.114>:
{
RUSTTMP.1 = 3;
goto <D.105>;
}
...
gcc/rust/ChangeLog:
* backend/rust-compile-pattern.cc (compile_range_pattern_bound): Set litexpr
to negative if has_minus is present in the RangePatternBoundLiteral param.
Signed-off-by: Yap Zhi Heng <yapzhhg@gmail.com>
Diffstat (limited to 'libjava/classpath/gnu/java/beans/decoder/ArrayHandler.java')
0 files changed, 0 insertions, 0 deletions
