aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-warn-recursion.cc
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-03-11 11:22:07 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-03-11 13:54:21 +0000
commit040b2ec9a6b20aa2441951e47f344d303dd61d7e (patch)
tree031aecbdcf83d4a96ffe751238266a192de83b66 /gcc/gimple-warn-recursion.cc
parente076823eda8f11425a705a191d686e9e48be2fc4 (diff)
downloadgcc-040b2ec9a6b20aa2441951e47f344d303dd61d7e.zip
gcc-040b2ec9a6b20aa2441951e47f344d303dd61d7e.tar.gz
gcc-040b2ec9a6b20aa2441951e47f344d303dd61d7e.tar.bz2
Add code generation for the slice type
This type must respect the layout of the FatPtr type in libcore. Rust implements slices using Rustc types in libcore and uses a neat trick. The slice is generated into the FatPtr which contains the pointer and length of the slice. This is then placed into a union called Repr which has 3 variants a mutable and immutable pointer to the FatPtr and a final variant which is the raw FatPtr. This means we can use unsafe access to the union to gain a pointer to the FatPtr. Addresses #849
Diffstat (limited to 'gcc/gimple-warn-recursion.cc')
0 files changed, 0 insertions, 0 deletions