aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2020-11-28Add the referenced function to the CallExpr when resolvedPhilip Herron2-0/+5
2020-11-28Add type resolution to CallExprPhilip Herron5-6/+120
More work will be added here but there is enough to start working on the initial AST -> Gimple transformations now.
2020-11-28Add rust-name-resolutionNala Ginrut2-0/+816
2020-11-28Add rust-type-resolutionNala Ginrut2-0/+1089
2020-11-28Refactor Resolution classNala Ginrut1-194/+196
2020-11-28Change rust-session-manager for resolution refactoringNala Ginrut2-13/+16
2020-11-28For tuple structs the constructor is just a regular function callPhilip Herron2-7/+9
This is a hack to get the AST to become a CallExpr more changes might occur later to cleanup this side of the AST.
2020-11-28Add in a toplevel pass to grab global declarations for analysis passPhilip Herron7-8/+817
2020-11-28Reuse typeComparison checks in assignments and expressionsPhilip Herron2-61/+26
2020-11-28Initial type comparison code for error: E0308Philip Herron2-5/+73
2020-11-28Need public access to Expr locus and rhsPhilip Herron1-2/+1
2020-11-28Template the scope classPhilip Herron3-8/+8
2020-11-28Need access to function and params for CallExprPhilip Herron1-1/+1
2020-11-28Infer types for AssignmentExprPhilip Herron2-1/+28
2020-11-28Infer types to scope for FunctionParamsPhilip Herron1-18/+21
2020-11-28Need to be able to visit LHS and RHS of AssignmentExprPhilip Herron1-0/+4
2020-11-28Need public to access locus and param name in FunctionParamPhilip Herron1-2/+1
2020-11-28Do inferencing on Expressions needs type match checkingPhilip Herron1-8/+35
2020-11-28need public access to locus on OperatorExprPhilip Herron1-1/+1
2020-11-28Need public access to IdentifierExpr ident and locusPhilip Herron1-1/+1
2020-11-28make ArithmeticOrLogicalExpr visitablePhilip Herron2-0/+6
2020-11-28Add missing bool builtinPhilip Herron1-1/+1
2020-11-28Add a basic lookup for builtin typesPhilip Herron1-6/+31
2020-11-28Add error E0282 when the LetStmt cannot be inferedPhilip Herron1-0/+7
2020-11-28WIP more type inferencing code for LetStmtPhilip Herron2-28/+126
Addresses: #12
2020-11-28need public access on the Literal from LiteralExprPhilip Herron1-1/+2
2020-11-28Setup error handling for infering types in declarationsPhilip Herron2-14/+56
2020-11-28need access to the expression for analysisPhilip Herron1-2/+2
2020-11-28This will now compile a void function declaration to gimplePhilip Herron1-29/+25
-fdump-tree-gimple should provide output of the skeleton function Addresses #19
2020-11-28Fix params printing in DelimTokenTreeNala Ginrut1-23/+17
2020-11-28Fix string literal printing in AST dumpNala Ginrut2-1/+14
2020-11-28Enhance let statement in AST dumpNala Ginrut1-5/+7
2020-11-28This sets up the conversion from AST to GCCPhilip Herron8-475/+1129
It will crash when compiling but its the code setup i want to get in sooner than later. Addresses #15
2020-11-28This setups an initial frame work for our resolution step for the pipelinePhilip Herron13-968/+1923
More work is required but it takes advantage of the vistior pattern from the AST so we can do this without RTTI and dynamic_casts. More passes on the AST AKA our HIR should follow this pattern. Addresses: #12
2020-11-28Adding Rust target hook documentationSimplyTheOther36-3514/+3906
Added powerpc target hook and improved aarch64 feature handling Added DEC Alpha target hook Added ARC target hook Created ARM target hook (at least preliminary support)
2020-11-27Fix indentationNala Ginrut35-12580/+14451
2020-11-27Initial target hook constructionSimplyTheOther143-33/+1555
Creation of basic target_os, target_env, target_vendor, and target_family for all GCC targets. Also target_cpu and target_features for i386 - will do target_features for other targets when I can find exactly what is considered a target_feature by rustc
2020-11-27Enhance AST dumpNala Ginrut4-20910/+25723
2020-11-27Add rust_OBJS to fix compiling errorNala Ginrut1-0/+2
2020-11-27Fixed the compiler name in another place in Make-lang.inSimplyTheOther1-1/+1
2020-11-27Changed compiler name in Make-lang.in to be consistent with other filesSimplyTheOther1-2/+2
2020-11-27Cleanup and fixes to retain desired behaviourSimplyTheOther24-231/+321
2020-11-27Fix broken buildPhilip Herron2-4/+3
2020-11-27Remove unused compilation code to GCC GENERIC.Philip Herron23-3192/+1217
Wire up Linemap abstraction object and location_t to Location
2020-11-27Rebase GCCRS against SimplyTheOthers c++11 AST.Philip Herron1605-161717/+2484
We can use this as a common base to build upon. It contains a fully object orientated c++11 AST.
2020-11-27Fixed data structure for storing target dataSimplyTheOther62-6738/+24766
2020-11-27Added more type no bounds parsingSimplyTheOther2-8/+265
2020-11-27Original rust code from 2014/2015Philip Herron1588-0/+183743
2020-11-27tree-optimization/98024 - fix rnflow regressionRichard Biener1-2/+4
The change to make PRE insertion iterate less had a typo in checking successors RPO state. Fixing this exposes that regular PRE insertion when facing a value that is the same on all edges inserts an assignment in place of a PHI node but fails to set up things so that this insertion is not repeated (it correctly does not return 'new_stuff'). But with the new iteration scheme this causes us to repeatedly insert such assignment and change AVAIL_OUT over to the newly inserted expression. The fix is to treat this as PHI and insert into PHI_GEN, avoiding repetitive insertion. 2020-11-27 Richard Biener <rguenther@suse.de> PR tree-optimization/98024 * tree-ssa-pre.c (insert): Fix successor RPO order check. (do_pre_regular_insertion): When inserting an assignment in place of an all-same-value PHI still record that into PHI_GEN.
2020-11-27gfortran.dg/gomp/requires-4.f90: Fix !$omp clauseTobias Burnus1-1/+1
gcc/testsuite/ * gfortran.dg/gomp/requires-4.f90: Fix typo in '!$omp' clause.