[PATCH Rust front-end v1 2/4] Add Rust lang TargetHooks for i386 and x86_64

2022-07-27 Thread herron.philip--- via Gcc-patches
From: Philip Herron This patch introduces a new set of interfaces to define the target info as expected by the rust front-end. It takes advantage of the information within gcc/config/target directories which gets called by the front-end to populate rust front-end datastructures by calling into:

[PATCH Rust front-end v1 3/4] Add Rust target hooks to ARM

2022-07-27 Thread herron.philip--- via Gcc-patches
From: Philip Herron This adds the nessecary target hooks for the arm target. gcc/ChangeLog: * config.gcc: add rust_target_objs for arm gcc/config/arm/ChangeLog: * arm-protos.h: define arm_rust_target_cpu_info * arm-rust.cc: new file to generate info * arm.h:

[PATCH Rust front-end v1 1/4] Add skeleton Rust front-end folder

2022-07-27 Thread herron.philip--- via Gcc-patches
From: Philip Herron This is a skeleton front-end which is used so we can ensure each patch is buildable: gcc/rust/ChangeLog: * Make-lang.in * config-lang.in * lang-specs.h * lang.opt * rust-lang.cc * rustspec.cc --- gcc/rust/Make-lang.in | 308

Rust frontend patches v1

2022-07-27 Thread herron.philip--- via Gcc-patches
This is the initial version 1 patch set for the Rust front-end. There are more changes that need to be extracted out for all the target hooks we have implemented. The goal is to see if we are implementing the target hooks information for x86 and arm. We have more patches for the other targets I