aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/resolve
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2022-07-07 10:12:11 +0000
committerGitHub <noreply@github.com>2022-07-07 10:12:11 +0000
commit98b3f9bca253d1ecfae6fb94d255d8e991e4b92c (patch)
tree62ba451173cecc5f5b6ef87b6595ca305cceff4e /gcc/rust/resolve
parentc8a9218a5bab48fffe1f5fa02244954d55f8945c (diff)
parent143219798492864c8eff7fecbdb9257fa10bf4ec (diff)
parent9507bdec30fb7f88a02765f83f29cce52a5cf8ad (diff)
parentd99b68560c0de90f1e3b23bdf08f9c01e190534a (diff)
downloadgcc-98b3f9bca253d1ecfae6fb94d255d8e991e4b92c.zip
gcc-98b3f9bca253d1ecfae6fb94d255d8e991e4b92c.tar.gz
gcc-98b3f9bca253d1ecfae6fb94d255d8e991e4b92c.tar.bz2
Merge #1364 #1365 #1368
1364: Allow linemap to be optional nullptr r=philberty a=philberty The line map within the lexer is used to notify GCC of location data. This lexer is used on raw string buffers where the linemap can be null and thus can hit nullptr's. This patch wraps the linemap usage behind a function. We might make the linemap mandatory as a reference but lets figure out how the location info should look for imports first. 1365: Support extern-blocks in ast-dumps r=philberty a=philberty This allows us to support really basic expressions and extern blocks. These are used for the hello world version of importing metadata in crates. 1368: Fix bad ABI from string method r=philberty a=philberty We use this method to turn the string ABI into the enum. The rust abi was wrongly turned into the C ABI always which was causing issues on the mangling logic for extern crate items. Co-authored-by: Philip Herron <philip.herron@embecosm.com>