aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-struct-field-expr.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-08-05 09:33:52 +0000
committerGitHub <noreply@github.com>2022-08-05 09:33:52 +0000
commite77bc10ba13af4e193bbda5f43006d11d9bccb45 (patch)
tree16f963fce89d43f130ac9a104ff23fd60f90db0d /gcc/rust/backend/rust-compile-struct-field-expr.h
parentbc65cac0e79c9799fa62635df295e73b14501660 (diff)
parent7022b9dd107e534896d8383f6bc4ce70b4726cc9 (diff)
downloadgcc-e77bc10ba13af4e193bbda5f43006d11d9bccb45.zip
gcc-e77bc10ba13af4e193bbda5f43006d11d9bccb45.tar.gz
gcc-e77bc10ba13af4e193bbda5f43006d11d9bccb45.tar.bz2
Merge #1433
1433: Fix bad transmute for aggregate types r=philberty a=philberty This changes the CONVERT_EXPR to use the same ```*(foo*)&bar``` style cast from the c front-end to handle the case of: ``` int a[1]; int b = (int)a; ``` Which is converted into: ``` int b = *(int*)&a; ``` which the constant folders can turn directly into int b = a[0]; Fixes #1432 Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-struct-field-expr.h')
0 files changed, 0 insertions, 0 deletions