aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-resolve-path.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-01-05 18:31:03 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-01-06 10:48:10 +0000
commit507dbac06d845af87e488dcb1f66390b4ca12de3 (patch)
tree98ee1dbd06ff29564271a18929ed092f9e158875 /gcc/rust/backend/rust-compile-resolve-path.cc
parent69f6be3ee483c9895b4b5187a44b3e1c8be2ba63 (diff)
downloadgcc-507dbac06d845af87e488dcb1f66390b4ca12de3.zip
gcc-507dbac06d845af87e488dcb1f66390b4ca12de3.tar.gz
gcc-507dbac06d845af87e488dcb1f66390b4ca12de3.tar.bz2
Add overflow checking on LiteralExpression
This checks that the literal value is within the bounds of their respective types. I have ommited code fixing the other issue in the bug report that overflow/max_val integers should be saturated to infinity when cast to REAL_TYPE's this seems like something we really should have documentation to reference in the code as to why this is the correct Rust behaviour. Addresses #635
Diffstat (limited to 'gcc/rust/backend/rust-compile-resolve-path.cc')
0 files changed, 0 insertions, 0 deletions