Changes in / [be945ac:f1b1e4c]
- Files:
-
- 2 deleted
- 5 edited
-
Jenkinsfile (deleted)
-
doc/working/resolver_design.md (deleted)
-
src/GenPoly/GenPoly.cc (modified) (7 diffs)
-
src/SymTab/Validate.cc (modified) (2 diffs)
-
src/examples/runTests.sh (modified) (4 diffs)
-
src/libcfa/Makefile.am (modified) (2 diffs)
-
src/libcfa/Makefile.in (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/GenPoly.cc
rbe945ac rf1b1e4c 64 64 return false; 65 65 } 66 66 67 67 /// Replaces a TypeInstType by its referrent in the environment, if applicable 68 68 Type* replaceTypeInst( Type* type, const TypeSubstitution* env ) { … … 78 78 Type *isPolyType( Type *type, const TypeSubstitution *env ) { 79 79 type = replaceTypeInst( type, env ); 80 80 81 81 if ( TypeInstType *typeInst = dynamic_cast< TypeInstType * >( type ) ) { 82 82 return type; … … 91 91 Type *isPolyType( Type *type, const TyVarMap &tyVars, const TypeSubstitution *env ) { 92 92 type = replaceTypeInst( type, env ); 93 93 94 94 if ( TypeInstType *typeInst = dynamic_cast< TypeInstType * >( type ) ) { 95 95 if ( tyVars.find( typeInst->get_name() ) != tyVars.end() ) { … … 106 106 Type *isPolyPtr( Type *type, const TypeSubstitution *env ) { 107 107 type = replaceTypeInst( type, env ); 108 108 109 109 if ( PointerType *ptr = dynamic_cast< PointerType *>( type ) ) { 110 110 return isPolyType( ptr->get_base(), env ); … … 115 115 Type *isPolyPtr( Type *type, const TyVarMap &tyVars, const TypeSubstitution *env ) { 116 116 type = replaceTypeInst( type, env ); 117 117 118 118 if ( PointerType *ptr = dynamic_cast< PointerType *>( type ) ) { 119 119 return isPolyType( ptr->get_base(), tyVars, env ); … … 129 129 while ( true ) { 130 130 type = replaceTypeInst( type, env ); 131 131 132 132 if ( PointerType *ptr = dynamic_cast< PointerType *>( type ) ) { 133 133 type = ptr->get_base(); … … 146 146 while ( true ) { 147 147 type = replaceTypeInst( type, env ); 148 148 149 149 if ( PointerType *ptr = dynamic_cast< PointerType *>( type ) ) { 150 150 type = ptr->get_base(); -
src/SymTab/Validate.cc
rbe945ac rf1b1e4c 291 291 292 292 namespace { 293 template< typename DWT List >294 void fixFunctionList( DWT List & dwts, FunctionType * func) {293 template< typename DWTIterator, typename DWTList > 294 void fixFunctionList( DWTIterator begin, DWTIterator end, FunctionType *func, DWTList & dwts ) { 295 295 // the only case in which "void" is valid is where it is the only one in the list; then it should be removed 296 296 // entirely other fix ups are handled by the FixFunction class 297 typedef typename DWTList::iterator DWTIterator;298 DWTIterator begin( dwts.begin() ), end( dwts.end() );299 297 if ( begin == end ) return; 300 298 FixFunction fixer; … … 323 321 void Pass1::visit( FunctionType *func ) { 324 322 // Fix up parameters and return types 325 fixFunctionList( func->get_parameters() , func);326 fixFunctionList( func->get_returnVals() , func);323 fixFunctionList( func->get_parameters().begin(), func->get_parameters().end(), func, func->get_parameters() ); 324 fixFunctionList( func->get_returnVals().begin(), func->get_returnVals().end(), func, func->get_returnVals() ); 327 325 Visitor::visit( func ); 328 326 } -
src/examples/runTests.sh
rbe945ac rf1b1e4c 36 36 make clean > /dev/null 2>&1 37 37 38 ret_val=039 40 38 for test in $tests; do 41 39 echo -n " $test" | tee -a $logfile … … 43 41 # build, skipping to next test on error 44 42 if ! make -j 8 $test > tests/$test.make.txt 2>&1; then 45 ret_val=146 43 echo -e "\tFAILED with build error:" | tee -a $logfile 47 44 cat tests/$test.make.txt | tee -a $logfile … … 53 50 ./$test < tests/$test.in.txt > tests/$test.run.txt 2>&1 54 51 if ! diff tests/$test.out.txt tests/$test.run.txt > tests/$test.diff.txt; then 55 ret_val=156 52 echo -e "\tFAILED with output mismatch:" | tee -a $logfile 57 53 cat tests/$test.diff.txt | tee -a $logfile … … 62 58 echo -e "\tPASSED" | tee -a $logfile 63 59 done 64 65 exit $((ret_val)) -
src/libcfa/Makefile.am
rbe945ac rf1b1e4c 11 11 ## Created On : Sun May 31 08:54:01 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Tue May 31 13:24:15201614 ## Update Count : 1 4113 ## Last Modified On : Tue Apr 19 22:30:17 2016 14 ## Update Count : 124 15 15 ############################################################################### 16 16 … … 53 53 CC = ${abs_top_srcdir}/src/driver/cfa 54 54 55 headers = limits stdlib math iostream fstream iterator rational 56 .SECONDARY : ${headers} # stop implicit '.o' rules from removing extensionless headers 55 # extension-less header files are overridden by default make rules => explicitly override rule 56 % : %.c 57 true 57 58 58 libcfa_a_SOURCES = libcfa-prelude.c ${headers:=.c} 59 .c.o : ${abs_top_srcdir}/src/driver/cfa-cpp 60 ${CC} ${CFLAGS} -c -o $@ $< 59 61 60 include_HEADERS = ${headers} 62 libs = limits stdlib math iostream fstream iterator rational 63 libcfa_a_SOURCES = libcfa-prelude.c ${libs:=.c} 64 65 cheaders = # expat 66 cfaheaders = # limits 67 include_HEADERS = ${cheaders:=.h} ${libs} ${cfaheaders} 61 68 62 69 CLEANFILES = libcfa-prelude.c -
src/libcfa/Makefile.in
rbe945ac rf1b1e4c 214 214 MAINTAINERCLEANFILES = ${addprefix ${libdir}/,${cfalib_DATA}} \ 215 215 ${addprefix ${libdir}/,${lib_LIBRARIES}} ${includedir}/* 216 headers = limits stdlib math iostream fstream iterator rational 217 libcfa_a_SOURCES = libcfa-prelude.c ${headers:=.c} 218 include_HEADERS = ${headers} 216 libs = limits stdlib math iostream fstream iterator rational 217 libcfa_a_SOURCES = libcfa-prelude.c ${libs:=.c} 218 cheaders = # expat 219 cfaheaders = # limits 220 include_HEADERS = ${cheaders:=.h} ${libs} ${cfaheaders} 219 221 CLEANFILES = libcfa-prelude.c 220 222 all: all-am … … 301 303 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/rational.Po@am__quote@ 302 304 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/stdlib.Po@am__quote@ 303 304 .c.o:305 @am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<306 @am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po307 @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@308 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@309 @am__fastdepCC_FALSE@ $(COMPILE) -c $<310 305 311 306 .c.obj: … … 587 582 libcfa-prelude.o : libcfa-prelude.c 588 583 @BACKEND_CC@ -c -o $@ $< 589 .SECONDARY : ${headers} # stop implicit '.o' rules from removing extensionless headers 584 585 # extension-less header files are overridden by default make rules => explicitly override rule 586 % : %.c 587 true 588 589 .c.o : ${abs_top_srcdir}/src/driver/cfa-cpp 590 ${CC} ${CFLAGS} -c -o $@ $< 590 591 591 592 # Tell versions [3.59,3.63) of GNU make to not export all variables.
Note:
See TracChangeset
for help on using the changeset viewer.