Changeset 49a980b
- Timestamp:
- Aug 31, 2020, 5:23:49 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- d3aa64f1
- Parents:
- 191a190 (diff), 942453a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 15 added
- 1 deleted
- 43 edited
- 7 moved
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r191a190 r49a980b 18 18 **/Makefile 19 19 **/Makefile.in 20 **/Makefile.dist.in 20 21 /version 21 22 -
Makefile.am
r191a190 r49a980b 21 21 22 22 SUBDIRS = driver src . @LIBCFA_TARGET_DIRS@ 23 DIST_SUBDIRS = driver src . libcfa benchmark longrun_tests tests tools tools/prettyprinter 23 24 24 25 @LIBCFA_TARGET_MAKEFILES@ : Makefile $(srcdir)/libcfa/configure … … 26 27 @ls $(config_file) || (echo "Missing config.data, re-run configure script again" && false) 27 28 @$(eval config_data = $(shell cat $(config_file))) 28 @echo "Configuring libcfa with '$(config_data)''"29 @echo "Configuring libcfa ($(abs_top_srcdir)/libcfa/configure) with '$(config_data)' from $(shell pwd) / $(dir $@)" 29 30 @cd $(dir $@) && $(abs_top_srcdir)/libcfa/configure $(config_data) 30 31 … … 32 33 33 34 man1_MANS = doc/man/cfa.1 35 36 EXTRA_DIST = LICENSE doc/man/cfa.1 libcfa/configure libcfa/Makefile.dist.am libcfa/Makefile.dist.in 34 37 35 38 debug=yes -
benchmark/Makefile.am
r191a190 r49a980b 66 66 # Dummy hack tricks 67 67 EXTRA_PROGRAMS = dummy # build but do not install 68 dummy_SOURCES = dummyC.c dummyCXX.cpp68 nodist_dummy_SOURCES = dummyC.c dummyCXX.cpp 69 69 70 70 dummyC.c: … … 80 80 ## ========================================================================================================= 81 81 82 all : basic$(EXEEXT) ctxswitch$(EXEEXT) mutex$(EXEEXT) schedint$(EXEEXT) schedext$(EXEEXT) creation$(EXEEXT) 82 # all is used by make dist so ignore it 83 all: 84 85 all-bench : basic$(EXEEXT) ctxswitch$(EXEEXT) mutex$(EXEEXT) schedint$(EXEEXT) schedext$(EXEEXT) creation$(EXEEXT) 83 86 84 87 basic_loop_DURATION = 15000000000 … … 476 479 ## ========================================================================================================= 477 480 478 compile$(EXEEXT) : \481 bcompile$(EXEEXT) : \ 479 482 compile-array.make \ 480 483 compile-attributes.make \ -
configure.ac
r191a190 r49a980b 137 137 \'--enable-gprofiler=*) ;; 138 138 \'--disable-gprofiler) ;; 139 140 # skip this, it only causes problems 141 \'--srcdir=*) ;; 139 142 140 143 # append all other arguments to the sub configure arguments … … 202 205 203 206 LIBCFA_TARGET_DIRS="${LIBCFA_TARGET_DIRS} ${lib_dir}" 207 LIBCFA_1TARGET_DIR="${lib_dir}" 204 208 LIBCFA_TARGET_MAKEFILES="${LIBCFA_TARGET_MAKEFILES} ${lib_dir}/Makefile" 205 209 … … 213 217 214 218 AC_SUBST(LIBCFA_TARGET_DIRS) 219 AC_SUBST(LIBCFA_1TARGET_DIR) 215 220 AC_SUBST(LIBCFA_TARGET_MAKEFILES) 216 221 … … 278 283 driver/Makefile 279 284 src/Makefile 280 benchmark/Makefile285 libcfa/Makefile:libcfa/Makefile.dist.in 281 286 tests/Makefile 282 287 longrun_tests/Makefile 288 benchmark/Makefile 283 289 tools/Makefile 284 290 tools/prettyprinter/Makefile -
libcfa/prelude/Makefile.am
r191a190 r49a980b 22 22 cfalibdir = ${CFA_LIBDIR} 23 23 cfalib_DATA = gcc-builtins.cf builtins.cf extras.cf prelude.cfa bootloader.c defines.hfa 24 25 EXTRA_DIST = bootloader.cf builtins.c builtins.def extras.c extras.regx extras.regx2 prelude-gen.cc prototypes.awk prototypes.c prototypes.sed sync-builtins.cf 24 26 25 27 CC = @LOCAL_CFACC@ -
libcfa/src/Makefile.am
r191a190 r49a980b 31 31 # AM_CFAFLAGS for only cfa source 32 32 # use -no-include-stdhdr to prevent rebuild cycles 33 # The built sources must not depend on the installed headers34 AM_CFAFLAGS = -quiet -cfalib -I$(srcdir)/stdhdr $(if $(findstring ${gdbwaittarget}, ${@}), -XCFA --gdb) @CONFIG_CFAFLAGS@33 # The built sources must not depend on the installed inst_headers_src 34 AM_CFAFLAGS = -quiet -cfalib -I$(srcdir)/stdhdr -I$(srcdir)/concurrency $(if $(findstring ${gdbwaittarget}, ${@}), -XCFA --gdb) @CONFIG_CFAFLAGS@ 35 35 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC -fexceptions -pthread @ARCH_FLAGS@ @CONFIG_CFLAGS@ 36 36 AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ … … 39 39 #---------------------------------------------------------------------------------------------------------------- 40 40 if BUILDLIB 41 headers_nosrc = bitmanip.hfa exception.hfa math.hfa gmp.hfa time_t.hfa clock.hfa \ 42 bits/align.hfa bits/containers.hfa bits/defs.hfa bits/debug.hfa bits/locks.hfa \ 43 containers/list.hfa containers/stackLockFree.hfa concurrency/iofwd.hfa 41 inst_headers_nosrc = \ 42 bitmanip.hfa \ 43 clock.hfa \ 44 exception.hfa \ 45 gmp.hfa \ 46 math.hfa \ 47 time_t.hfa \ 48 bits/align.hfa \ 49 bits/containers.hfa \ 50 bits/debug.hfa \ 51 bits/defs.hfa \ 52 bits/locks.hfa \ 53 concurrency/iofwd.hfa \ 54 containers/list.hfa \ 55 containers/stackLockFree.hfa 44 56 45 headers = common.hfa fstream.hfa heap.hfa iostream.hfa iterator.hfa limits.hfa rational.hfa \ 46 time.hfa stdlib.hfa parseargs.hfa \ 47 containers/maybe.hfa containers/pair.hfa containers/result.hfa containers/vector.hfa 57 inst_headers_src = \ 58 common.hfa \ 59 fstream.hfa \ 60 heap.hfa \ 61 iostream.hfa \ 62 iterator.hfa \ 63 limits.hfa \ 64 parseargs.hfa \ 65 rational.hfa \ 66 stdlib.hfa \ 67 time.hfa \ 68 containers/maybe.hfa \ 69 containers/pair.hfa \ 70 containers/result.hfa \ 71 containers/vector.hfa 48 72 49 libsrc = startup.cfa interpose.cfa bits/debug.cfa assert.cfa exception.c virtual.c ${headers:.hfa=.cfa} 73 libsrc = ${inst_headers_src} ${inst_headers_src:.hfa=.cfa} \ 74 assert.cfa \ 75 bits/algorithm.hfa \ 76 bits/debug.cfa \ 77 exception.c \ 78 exception.h \ 79 interpose.cfa \ 80 lsda.h \ 81 startup.cfa \ 82 startup.hfa \ 83 virtual.c \ 84 virtual.h 50 85 51 86 # not all platforms support concurrency, add option do disable it 52 thread_headers_nosrc = bits/random.hfa concurrency/invoke.h concurrency/kernel/fwd.hfa 87 inst_thread_headers_nosrc = \ 88 bits/random.hfa \ 89 concurrency/invoke.h \ 90 concurrency/kernel/fwd.hfa 53 91 54 thread_headers = concurrency/coroutine.hfa concurrency/thread.hfa concurrency/kernel.hfa \ 55 concurrency/monitor.hfa concurrency/mutex.hfa concurrency/exception.hfa 92 inst_thread_headers_src = \ 93 concurrency/coroutine.hfa \ 94 concurrency/exception.hfa \ 95 concurrency/kernel.hfa \ 96 concurrency/monitor.hfa \ 97 concurrency/mutex.hfa \ 98 concurrency/thread.hfa 56 99 57 thread_libsrc = concurrency/CtxSwitch-@ARCHITECTURE@.S concurrency/alarm.cfa \ 58 concurrency/invoke.c concurrency/io.cfa concurrency/iocall.cfa \ 59 concurrency/io/setup.cfa \ 60 concurrency/kernel/startup.cfa concurrency/preemption.cfa \ 61 concurrency/ready_queue.cfa concurrency/stats.cfa \ 62 ${thread_headers:.hfa=.cfa} 100 thread_libsrc = ${inst_thread_headers_src} ${inst_thread_headers_src:.hfa=.cfa} \ 101 bits/signal.hfa \ 102 concurrency/alarm.cfa \ 103 concurrency/alarm.hfa \ 104 concurrency/CtxSwitch-@ARCHITECTURE@.S \ 105 concurrency/invoke.c \ 106 concurrency/io.cfa \ 107 concurrency/io/setup.cfa \ 108 concurrency/io/types.hfa \ 109 concurrency/iocall.cfa \ 110 concurrency/iofwd.hfa \ 111 concurrency/kernel_private.hfa \ 112 concurrency/kernel/startup.cfa \ 113 concurrency/preemption.cfa \ 114 concurrency/preemption.hfa \ 115 concurrency/ready_queue.cfa \ 116 concurrency/ready_subqueue.hfa \ 117 concurrency/snzi.hfa \ 118 concurrency/stats.cfa \ 119 concurrency/stats.hfa \ 120 concurrency/stats.hfa 121 63 122 else 64 headers=65 thread_headers=66 headers_nosrc =67 thread_headers_nosrc =123 inst_headers_src = 124 inst_thread_headers_src = 125 inst_headers_nosrc = 126 inst_thread_headers_nosrc = 68 127 libsrc = 69 128 endif … … 115 174 116 175 #---------------------------------------------------------------------------------------------------------------- 117 libcfa_la_SOURCES = prelude.cfa ${libsrc} 176 libcfa_la_SOURCES = ${libsrc} 177 nodist_libcfa_la_SOURCES = prelude.cfa 118 178 libcfa_la_LDFLAGS = -version-info @CFA_VERSION@ 119 179 … … 124 184 125 185 cfa_includedir = $(CFA_INCDIR) 126 nobase_cfa_include_HEADERS = ${stdhdr} ${headers} ${headers_nosrc} ${thread_headers} ${thread_headers_nosrc} 186 nobase_cfa_include_HEADERS = ${stdhdr} ${inst_headers_src} ${inst_headers_nosrc} ${inst_thread_headers_src} ${inst_thread_headers_nosrc} 187 EXTRA_DIST = stdhdr 127 188 128 189 #---------------------------------------------------------------------------------------------------------------- -
libcfa/src/bits/defs.hfa
r191a190 r49a980b 10 10 // Created On : Thu Nov 9 13:24:10 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 13 22:00:23202013 // Update Count : 1912 // Last Modified On : Wed Aug 26 16:22:32 2020 13 // Update Count : 20 14 14 // 15 15 … … 49 49 50 50 static inline long long int rdtscl(void) { 51 #if defined( __aarch64__ ) 51 #if defined( __i386 ) || defined( __x86_64 ) 52 unsigned int lo, hi; 53 __asm__ __volatile__ ("rdtsc" : "=a"(lo), "=d"(hi)); 54 return ( (unsigned long long)lo)|( ((unsigned long long)hi)<<32 ); 55 #elif defined( __aarch64__ ) || defined( __arm__ ) 52 56 // https://github.com/google/benchmark/blob/v1.1.0/src/cycleclock.h#L116 53 57 long long int virtual_timer_value; … … 55 59 return virtual_timer_value; 56 60 #else 57 unsigned int lo, hi; 58 __asm__ __volatile__ ("rdtsc" : "=a"(lo), "=d"(hi)); 59 return ( (unsigned long long)lo)|( ((unsigned long long)hi)<<32 ); 61 #error unsupported hardware architecture 60 62 #endif // __ARM_ARCH 61 63 } -
libcfa/src/concurrency/CtxSwitch-arm64.S
r191a190 r49a980b 2 2 // Cforall Version 1.0.0 Copyright (C) 2016 University of Waterloo 3 3 // 4 // CtxSwitch-arm .S --4 // CtxSwitch-arm64.S -- 5 5 // 6 6 // Author : Peter A. Buhr 7 7 // Created On : Sun Aug 16 07:50:13 2020 8 8 // Last Modified By : Peter A. Buhr 9 // Last Modified On : Thu Aug 20 18:43:51202010 // Update Count : 2 49 // Last Modified On : Wed Aug 26 16:24:59 2020 10 // Update Count : 25 11 11 // 12 12 … … 26 26 #define SAVE 20 * 8 27 27 28 .file "CtxSwitch-arm .S"28 .file "CtxSwitch-arm64.S" 29 29 .text 30 30 .align 2 31 31 .global __cfactx_switch 32 .type __cfactx_switch, @function32 .type __cfactx_switch, %function 33 33 __cfactx_switch: 34 34 … … 91 91 .align 2 92 92 .global __cfactx_invoke_stub 93 .type __cfactx_invoke_stub, @function93 .type __cfactx_invoke_stub, %function 94 94 __cfactx_invoke_stub: 95 95 mov x0, x19 // load main as parameter 0 -
libcfa/src/concurrency/kernel.cfa
r191a190 r49a980b 10 10 // Created On : Tue Jan 17 12:27:26 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Aug 14 15:23:00 202013 // Update Count : 6912 // Last Modified On : Mon Aug 31 07:08:20 2020 13 // Update Count : 71 14 14 // 15 15 … … 74 74 ) 75 75 76 #elif defined( __ARM_ARCH ) 76 #elif defined( __arm__ ) 77 #define __x87_store 78 #define __x87_load 79 80 #elif defined( __aarch64__ ) 77 81 #define __x87_store \ 78 82 uint32_t __fpcntl[2]; \ … … 93 97 94 98 #else 95 #error un knownhardware architecture99 #error unsupported hardware architecture 96 100 #endif 97 101 -
libcfa/src/concurrency/preemption.cfa
r191a190 r49a980b 10 10 // Created On : Mon Jun 5 14:20:42 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Aug 21 13:45:32202013 // Update Count : 5 212 // Last Modified On : Wed Aug 26 16:46:03 2020 13 // Update Count : 53 14 14 // 15 15 … … 56 56 #elif defined( __x86_64 ) 57 57 #define CFA_REG_IP gregs[REG_RIP] 58 #elif defined( __ARM_ARCH ) 58 #elif defined( __arm__ ) 59 #define CFA_REG_IP arm_pc 60 #elif defined( __aarch64__ ) 59 61 #define CFA_REG_IP pc 60 62 #else 61 #error un knownhardware architecture63 #error unsupported hardware architecture 62 64 #endif 63 65 -
libcfa/src/exception.c
r191a190 r49a980b 10 10 // Created On : Mon Jun 26 15:13:00 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Aug 21 11:27:56202013 // Update Count : 2912 // Last Modified On : Sat Aug 29 15:52:22 2020 13 // Update Count : 34 14 14 // 15 15 … … 18 18 19 19 #include "exception.h" 20 21 // Implementation of the secret header is hardware dependent.22 #if defined( __x86_64 ) || defined( __i386 )23 #elif defined( __ARM_ARCH )24 #warning FIX ME: check if anything needed for ARM25 #else26 #warning Exception Handling: No known architecture detected.27 #endif28 20 29 21 #include <stdlib.h> … … 34 26 #include "stdhdr/assert.h" 35 27 36 // FIX ME: temporary hack to keep ARM build working 28 #if defined( __ARM_ARCH ) 29 #warning FIX ME: temporary hack to keep ARM build working 37 30 #ifndef _URC_FATAL_PHASE1_ERROR 38 31 #define _URC_FATAL_PHASE1_ERROR 3 … … 41 34 #define _URC_FATAL_PHASE2_ERROR 2 42 35 #endif // ! _URC_FATAL_PHASE2_ERROR 36 #endif // __ARM_ARCH 43 37 44 38 #include "lsda.h" … … 626 620 627 621 #pragma GCC pop_options 622 623 #elif defined( __ARM_ARCH ) 624 _Unwind_Reason_Code __gcfa_personality_v0( 625 int version, 626 _Unwind_Action actions, 627 unsigned long long exception_class, 628 struct _Unwind_Exception * unwind_exception, 629 struct _Unwind_Context * unwind_context) { 630 return _URC_CONTINUE_UNWIND; 631 } 632 633 __attribute__((noinline)) 634 void __cfaehm_try_terminate(void (*try_block)(), 635 void (*catch_block)(int index, exception_t * except), 636 __attribute__((unused)) int (*match_block)(exception_t * except)) { 637 } 638 #else 639 #error unsupported hardware architecture 628 640 #endif // __x86_64 || __i386 -
src/AST/Convert.cpp
r191a190 r49a980b 705 705 new KeywordCastExpr( 706 706 get<Expression>().accept1(node->arg), 707 castTarget 707 castTarget, 708 {node->concrete_target.field, node->concrete_target.getter} 708 709 ) 709 710 ); … … 2087 2088 old->location, 2088 2089 GET_ACCEPT_1(arg, Expr), 2089 castTarget 2090 castTarget, 2091 {old->concrete_target.field, old->concrete_target.getter} 2090 2092 ) 2091 2093 ); -
src/AST/Expr.hpp
r191a190 r49a980b 312 312 public: 313 313 ptr<Expr> arg; 314 struct Concrete { 315 std::string field; 316 std::string getter; 317 318 Concrete() = default; 319 Concrete(const Concrete &) = default; 320 }; 314 321 ast::AggregateDecl::Aggregate target; 322 Concrete concrete_target; 323 315 324 316 325 KeywordCastExpr( const CodeLocation & loc, const Expr * a, ast::AggregateDecl::Aggregate t ) 317 326 : Expr( loc ), arg( a ), target( t ) {} 327 328 KeywordCastExpr( const CodeLocation & loc, const Expr * a, ast::AggregateDecl::Aggregate t, const Concrete & ct ) 329 : Expr( loc ), arg( a ), target( t ), concrete_target( ct ) {} 318 330 319 331 /// Get a name for the target type -
src/AST/module.mk
r191a190 r49a980b 17 17 SRC_AST = \ 18 18 AST/AssertAcyclic.cpp \ 19 AST/AssertAcyclic.hpp \ 19 20 AST/Attribute.cpp \ 21 AST/Attribute.hpp \ 22 AST/Bitfield.hpp \ 23 AST/Chain.hpp \ 20 24 AST/Convert.cpp \ 25 AST/Convert.hpp \ 26 AST/Copy.hpp \ 27 AST/CVQualifiers.hpp \ 21 28 AST/Decl.cpp \ 29 AST/Decl.hpp \ 22 30 AST/DeclReplacer.cpp \ 31 AST/DeclReplacer.hpp \ 32 AST/Eval.hpp \ 23 33 AST/Expr.cpp \ 34 AST/Expr.hpp \ 24 35 AST/ForallSubstitutionTable.cpp \ 36 AST/ForallSubstitutionTable.hpp \ 37 AST/ForallSubstitutor.hpp \ 38 AST/FunctionSpec.hpp \ 39 AST/Fwd.hpp \ 25 40 AST/GenericSubstitution.cpp \ 41 AST/GenericSubstitution.hpp \ 26 42 AST/Init.cpp \ 43 AST/Init.hpp \ 44 AST/Label.hpp \ 27 45 AST/LinkageSpec.cpp \ 46 AST/LinkageSpec.hpp \ 28 47 AST/Node.cpp \ 48 AST/Node.hpp \ 49 AST/ParseNode.hpp \ 29 50 AST/Pass.cpp \ 51 AST/Pass.hpp \ 52 AST/Pass.impl.hpp \ 53 AST/Pass.proto.hpp \ 30 54 AST/Print.cpp \ 55 AST/Print.hpp \ 31 56 AST/Stmt.cpp \ 57 AST/Stmt.hpp \ 58 AST/StorageClasses.hpp \ 32 59 AST/SymbolTable.cpp \ 60 AST/SymbolTable.hpp \ 33 61 AST/Type.cpp \ 62 AST/Type.hpp \ 34 63 AST/TypeEnvironment.cpp \ 35 AST/TypeSubstitution.cpp 64 AST/TypeEnvironment.hpp \ 65 AST/TypeSubstitution.cpp \ 66 AST/TypeSubstitution.hpp \ 67 AST/Visitor.hpp 36 68 37 69 SRC += $(SRC_AST) -
src/CodeGen/module.mk
r191a190 r49a980b 20 20 SRC_CODEGEN = \ 21 21 CodeGen/CodeGenerator.cc \ 22 CodeGen/CodeGenerator.h \ 22 23 CodeGen/FixMain.cc \ 24 CodeGen/FixMain.h \ 23 25 CodeGen/GenType.cc \ 24 CodeGen/OperatorTable.cc 26 CodeGen/GenType.h \ 27 CodeGen/OperatorTable.cc \ 28 CodeGen/OperatorTable.h \ 29 CodeGen/Options.h 25 30 26 SRC += $(SRC_CODEGEN) CodeGen/Generate.cc CodeGen/ FixNames.cc31 SRC += $(SRC_CODEGEN) CodeGen/Generate.cc CodeGen/Generate.h CodeGen/FixNames.cc CodeGen/FixNames.h 27 32 SRCDEMANGLE += $(SRC_CODEGEN) -
src/CodeTools/module.mk
r191a190 r49a980b 15 15 ############################################################################### 16 16 17 SRC += CodeTools/DeclStats.cc \ 17 SRC += \ 18 CodeTools/DeclStats.cc \ 19 CodeTools/DeclStats.h \ 18 20 CodeTools/ResolvProtoDump.cc \ 19 CodeTools/TrackLoc.cc 21 CodeTools/ResolvProtoDump.h \ 22 CodeTools/TrackLoc.cc \ 23 CodeTools/TrackLoc.h -
src/Common/module.mk
r191a190 r49a980b 17 17 SRC_COMMON = \ 18 18 Common/Assert.cc \ 19 Common/CodeLocation.h \ 20 Common/CompilerError.h \ 21 Common/Debug.h \ 22 Common/ErrorObjects.h \ 19 23 Common/Eval.cc \ 24 Common/FilterCombos.h \ 25 Common/Indenter.h \ 20 26 Common/PassVisitor.cc \ 27 Common/PassVisitor.h \ 28 Common/PassVisitor.impl.h \ 29 Common/PassVisitor.proto.h \ 30 Common/PersistentMap.h \ 31 Common/ScopedMap.h \ 21 32 Common/SemanticError.cc \ 33 Common/SemanticError.h \ 34 Common/Stats.h \ 35 Common/Stats/Base.h \ 22 36 Common/Stats/Counter.cc \ 37 Common/Stats/Counter.h \ 23 38 Common/Stats/Heap.cc \ 39 Common/Stats/Heap.h \ 24 40 Common/Stats/Stats.cc \ 25 41 Common/Stats/Time.cc \ 26 Common/UniqueName.cc 42 Common/Stats/Time.h \ 43 Common/UnimplementedError.h \ 44 Common/UniqueName.cc \ 45 Common/UniqueName.h \ 46 Common/utility.h \ 47 Common/VectorMap.h 27 48 28 49 SRC += $(SRC_COMMON) Common/DebugMalloc.cc -
src/Concurrency/module.mk
r191a190 r49a980b 15 15 ############################################################################### 16 16 17 SRC += Concurrency/Keywords.cc Concurrency/ Waitfor.cc17 SRC += Concurrency/Keywords.cc Concurrency/Keywords.h Concurrency/Waitfor.cc Concurrency/Waitfor.h 18 18 SRCDEMANGLE += Concurrency/Keywords.cc 19 19 -
src/ControlStruct/module.mk
r191a190 r49a980b 17 17 SRC_CONTROLSTRUCT = \ 18 18 ControlStruct/ForExprMutator.cc \ 19 ControlStruct/ForExprMutator.h \ 19 20 ControlStruct/LabelFixer.cc \ 21 ControlStruct/LabelFixer.h \ 20 22 ControlStruct/LabelGenerator.cc \ 23 ControlStruct/LabelGenerator.h \ 21 24 ControlStruct/MLEMutator.cc \ 22 ControlStruct/Mutate.cc 25 ControlStruct/MLEMutator.h \ 26 ControlStruct/Mutate.cc \ 27 ControlStruct/Mutate.h 23 28 24 SRC += $(SRC_CONTROLSTRUCT) ControlStruct/ExceptTranslate.cc 29 SRC += $(SRC_CONTROLSTRUCT) ControlStruct/ExceptTranslate.cc ControlStruct/ExceptTranslate.h 25 30 SRCDEMANGLE += $(SRC_CONTROLSTRUCT) 26 31 -
src/GenPoly/module.mk
r191a190 r49a980b 16 16 17 17 SRC += GenPoly/Box.cc \ 18 GenPoly/Box.h \ 19 GenPoly/ErasableScopedMap.h \ 20 GenPoly/FindFunction.cc \ 21 GenPoly/FindFunction.h \ 18 22 GenPoly/GenPoly.cc \ 23 GenPoly/GenPoly.h \ 24 GenPoly/InstantiateGeneric.cc \ 25 GenPoly/InstantiateGeneric.h \ 26 GenPoly/Lvalue.cc \ 27 GenPoly/Lvalue.h \ 28 GenPoly/ScopedSet.h \ 19 29 GenPoly/ScrubTyVars.cc \ 20 GenPoly/ Lvalue.cc\30 GenPoly/ScrubTyVars.h \ 21 31 GenPoly/Specialize.cc \ 22 GenPoly/FindFunction.cc \ 23 GenPoly/InstantiateGeneric.cc 32 GenPoly/Specialize.h 24 33 25 SRCDEMANGLE += GenPoly/GenPoly.cc GenPoly/ Lvalue.cc34 SRCDEMANGLE += GenPoly/GenPoly.cc GenPoly/GenPoly.h GenPoly/Lvalue.cc GenPoly/Lvalue.h 26 35 -
src/InitTweak/module.mk
r191a190 r49a980b 15 15 ############################################################################### 16 16 17 SRC += InitTweak/GenInit.cc \ 17 SRC += \ 18 InitTweak/FixGlobalInit.cc \ 19 InitTweak/FixGlobalInit.h \ 18 20 InitTweak/FixInit.cc \ 19 InitTweak/FixGlobalInit.cc \ 20 InitTweak/InitTweak.cc 21 InitTweak/FixInit.h \ 22 InitTweak/GenInit.cc \ 23 InitTweak/GenInit.h \ 24 InitTweak/InitTweak.cc \ 25 InitTweak/InitTweak.h 21 26 22 SRCDEMANGLE += InitTweak/GenInit.cc \ 23 InitTweak/InitTweak.cc 27 SRCDEMANGLE += \ 28 InitTweak/GenInit.cc \ 29 InitTweak/GenInit.h \ 30 InitTweak/InitTweak.cc \ 31 InitTweak/InitTweak.h 24 32 -
src/Makefile.am
r191a190 r49a980b 20 20 21 21 SRC = main.cc \ 22 CompilationState.cc \ 23 CompilationState.h \ 22 24 MakeLibCfa.cc \ 23 CompilationState.cc 25 MakeLibCfa.h 24 26 25 27 SRCDEMANGLE = CompilationState.cc … … 66 68 ___driver_cfa_cpp_SOURCES = $(SRC) 67 69 ___driver_cfa_cpp_LDADD = -ldl $(LIBPROFILER) $(LIBTCMALLOC) 70 EXTRA_DIST = include/cassert include/optional BasicTypes-gen.cc 68 71 69 72 AM_CXXFLAGS = @HOST_FLAGS@ -Wno-deprecated -Wall -Wextra -DDEBUG_ALL -I./Parser -I$(srcdir)/Parser -I$(srcdir)/include -DYY_NO_INPUT -O3 -g -std=c++14 $(TCMALLOCFLAG) -
src/Parser/module.mk
r191a190 r49a980b 23 23 Parser/ExpressionNode.cc \ 24 24 Parser/InitializerNode.cc \ 25 Parser/lex.ll \ 25 26 Parser/ParseNode.cc \ 27 Parser/ParseNode.h \ 28 Parser/parser.yy \ 29 Parser/ParserTypes.h \ 30 Parser/parserutility.cc \ 31 Parser/parserutility.h \ 26 32 Parser/StatementNode.cc \ 27 33 Parser/TypeData.cc \ 34 Parser/TypeData.h \ 28 35 Parser/TypedefTable.cc \ 29 Parser/lex.ll \ 30 Parser/parser.yy \ 31 Parser/parserutility.cc 36 Parser/TypedefTable.h 32 37 33 38 MOSTLYCLEANFILES += Parser/lex.cc Parser/parser.cc Parser/parser.hh Parser/parser.output -
src/ResolvExpr/CandidateFinder.cpp
r191a190 r49a980b 1089 1089 } 1090 1090 1091 void postvisit( const ast::KeywordCastExpr * castExpr ) { 1092 const auto & loc = castExpr->location; 1093 assertf( castExpr->result, "Cast target should have been set in Validate." ); 1094 auto ref = castExpr->result.strict_as<ast::ReferenceType>(); 1095 auto inst = ref->base.strict_as<ast::StructInstType>(); 1096 auto target = inst->base.get(); 1097 1098 CandidateFinder finder{ symtab, tenv }; 1099 1100 auto pick_alternatives = [target, this](CandidateList & found, bool expect_ref) { 1101 for(auto & cand : found) { 1102 const ast::Type * expr = cand->expr->result.get(); 1103 if(expect_ref) { 1104 auto res = dynamic_cast<const ast::ReferenceType*>(expr); 1105 if(!res) { continue; } 1106 expr = res->base.get(); 1107 } 1108 1109 if(auto insttype = dynamic_cast<const ast::TypeInstType*>(expr)) { 1110 auto td = cand->env.lookup(insttype->name); 1111 if(!td) { continue; } 1112 expr = td->bound.get(); 1113 } 1114 1115 if(auto base = dynamic_cast<const ast::StructInstType*>(expr)) { 1116 if(base->base == target) { 1117 candidates.push_back( std::move(cand) ); 1118 reason.code = NoReason; 1119 } 1120 } 1121 } 1122 }; 1123 1124 try { 1125 // Attempt 1 : turn (thread&)X into ($thread&)X.__thrd 1126 // Clone is purely for memory management 1127 std::unique_ptr<const ast::Expr> tech1 { new ast::UntypedMemberExpr(loc, new ast::NameExpr(loc, castExpr->concrete_target.field), castExpr->arg) }; 1128 1129 // don't prune here, since it's guaranteed all alternatives will have the same type 1130 finder.find( tech1.get(), ResolvMode::withoutPrune() ); 1131 pick_alternatives(finder.candidates, false); 1132 1133 return; 1134 } catch(SemanticErrorException & ) {} 1135 1136 // Fallback : turn (thread&)X into ($thread&)get_thread(X) 1137 std::unique_ptr<const ast::Expr> fallback { ast::UntypedExpr::createDeref(loc, new ast::UntypedExpr(loc, new ast::NameExpr(loc, castExpr->concrete_target.getter), { castExpr->arg })) }; 1138 // don't prune here, since it's guaranteed all alternatives will have the same type 1139 finder.find( fallback.get(), ResolvMode::withoutPrune() ); 1140 1141 pick_alternatives(finder.candidates, true); 1142 1143 // Whatever happens here, we have no more fallbacks 1144 } 1145 1091 1146 void postvisit( const ast::UntypedMemberExpr * memberExpr ) { 1092 1147 CandidateFinder aggFinder{ symtab, tenv }; -
src/ResolvExpr/module.mk
r191a190 r49a980b 19 19 ResolvExpr/Alternative.cc \ 20 20 ResolvExpr/AlternativeFinder.cc \ 21 ResolvExpr/AlternativeFinder.h \ 22 ResolvExpr/Alternative.h \ 21 23 ResolvExpr/Candidate.cpp \ 22 24 ResolvExpr/CandidateFinder.cpp \ 25 ResolvExpr/CandidateFinder.hpp \ 26 ResolvExpr/Candidate.hpp \ 23 27 ResolvExpr/CastCost.cc \ 24 28 ResolvExpr/CommonType.cc \ 25 29 ResolvExpr/ConversionCost.cc \ 30 ResolvExpr/ConversionCost.h \ 31 ResolvExpr/Cost.h \ 26 32 ResolvExpr/CurrentObject.cc \ 33 ResolvExpr/CurrentObject.h \ 27 34 ResolvExpr/ExplodedActual.cc \ 35 ResolvExpr/ExplodedActual.h \ 28 36 ResolvExpr/ExplodedArg.cpp \ 37 ResolvExpr/ExplodedArg.hpp \ 29 38 ResolvExpr/FindOpenVars.cc \ 39 ResolvExpr/FindOpenVars.h \ 30 40 ResolvExpr/Occurs.cc \ 31 41 ResolvExpr/PolyCost.cc \ … … 33 43 ResolvExpr/PtrsCastable.cc \ 34 44 ResolvExpr/RenameVars.cc \ 45 ResolvExpr/RenameVars.h \ 35 46 ResolvExpr/ResolveAssertions.cc \ 47 ResolvExpr/ResolveAssertions.h \ 36 48 ResolvExpr/Resolver.cc \ 49 ResolvExpr/Resolver.h \ 37 50 ResolvExpr/ResolveTypeof.cc \ 51 ResolvExpr/ResolveTypeof.h \ 52 ResolvExpr/ResolvMode.h \ 38 53 ResolvExpr/SatisfyAssertions.cpp \ 54 ResolvExpr/SatisfyAssertions.hpp \ 39 55 ResolvExpr/SpecCost.cc \ 40 56 ResolvExpr/TypeEnvironment.cc \ 41 ResolvExpr/Unify.cc 57 ResolvExpr/TypeEnvironment.h \ 58 ResolvExpr/typeops.h \ 59 ResolvExpr/Unify.cc \ 60 ResolvExpr/Unify.h \ 61 ResolvExpr/WidenMode.h 42 62 43 SRC += $(SRC_RESOLVEXPR) ResolvExpr/AlternativePrinter.cc 63 64 SRC += $(SRC_RESOLVEXPR) ResolvExpr/AlternativePrinter.cc ResolvExpr/AlternativePrinter.h 44 65 SRCDEMANGLE += $(SRC_RESOLVEXPR) -
src/SymTab/module.mk
r191a190 r49a980b 17 17 SRC_SYMTAB = \ 18 18 SymTab/Autogen.cc \ 19 SymTab/Autogen.h \ 19 20 SymTab/FixFunction.cc \ 21 SymTab/FixFunction.h \ 20 22 SymTab/Indexer.cc \ 23 SymTab/Indexer.h \ 21 24 SymTab/Mangler.cc \ 22 25 SymTab/ManglerCommon.cc \ 23 SymTab/Validate.cc 26 SymTab/Mangler.h \ 27 SymTab/Validate.cc \ 28 SymTab/Validate.h 24 29 25 30 SRC += $(SRC_SYMTAB) -
src/SynTree/Expression.cc
r191a190 r49a980b 302 302 } 303 303 304 KeywordCastExpr::KeywordCastExpr( Expression * arg, AggregateDecl::Aggregate target ) : Expression(), arg(arg), target( target ) { 305 } 306 307 KeywordCastExpr::KeywordCastExpr( const KeywordCastExpr & other ) : Expression( other ), arg( maybeClone( other.arg ) ), target( other.target ) { 308 } 304 KeywordCastExpr::KeywordCastExpr( Expression * arg, AggregateDecl::Aggregate target ) : Expression(), arg(arg), target( target ) {} 305 KeywordCastExpr::KeywordCastExpr( Expression * arg, AggregateDecl::Aggregate target, const KeywordCastExpr::Concrete & concrete_target ) : Expression(), arg(arg), target( target ), concrete_target(concrete_target) {} 306 307 KeywordCastExpr::KeywordCastExpr( const KeywordCastExpr & other ) : Expression( other ), arg( maybeClone( other.arg ) ), target( other.target ) {} 309 308 310 309 KeywordCastExpr::~KeywordCastExpr() { -
src/SynTree/Expression.h
r191a190 r49a980b 248 248 249 249 KeywordCastExpr( Expression * arg, AggregateDecl::Aggregate target ); 250 KeywordCastExpr( Expression * arg, AggregateDecl::Aggregate target, const Concrete & concrete_target ); 250 251 KeywordCastExpr( const KeywordCastExpr & other ); 251 252 virtual ~KeywordCastExpr(); -
src/SynTree/module.mk
r191a190 r49a980b 20 20 SynTree/ApplicationExpr.cc \ 21 21 SynTree/ArrayType.cc \ 22 SynTree/Attribute.cc \ 23 SynTree/Attribute.h \ 22 24 SynTree/AttrType.cc \ 23 SynTree/ Attribute.cc\25 SynTree/BaseSyntaxNode.h \ 24 26 SynTree/BasicType.cc \ 25 27 SynTree/CommaExpr.cc \ 26 28 SynTree/CompoundStmt.cc \ 27 29 SynTree/Constant.cc \ 30 SynTree/Constant.h \ 31 SynTree/Declaration.cc \ 32 SynTree/Declaration.h \ 33 SynTree/DeclarationWithType.cc \ 28 34 SynTree/DeclReplacer.cc \ 35 SynTree/DeclReplacer.h \ 29 36 SynTree/DeclStmt.cc \ 30 SynTree/Declaration.cc \31 SynTree/DeclarationWithType.cc \32 37 SynTree/Expression.cc \ 38 SynTree/Expression.h \ 33 39 SynTree/FunctionDecl.cc \ 34 40 SynTree/FunctionType.cc \ 35 41 SynTree/Initializer.cc \ 42 SynTree/Initializer.h \ 43 SynTree/Label.h \ 36 44 SynTree/LinkageSpec.cc \ 45 SynTree/LinkageSpec.h \ 46 SynTree/Mutator.h \ 37 47 SynTree/NamedTypeDecl.cc \ 38 48 SynTree/ObjectDecl.cc \ … … 41 51 SynTree/ReferenceType.cc \ 42 52 SynTree/Statement.cc \ 53 SynTree/Statement.h \ 54 SynTree/SynTree.h \ 43 55 SynTree/TupleExpr.cc \ 44 56 SynTree/TupleType.cc \ … … 46 58 SynTree/TypeDecl.cc \ 47 59 SynTree/TypeExpr.cc \ 60 SynTree/Type.h \ 61 SynTree/TypeofType.cc \ 48 62 SynTree/TypeSubstitution.cc \ 49 SynTree/Type ofType.cc\63 SynTree/TypeSubstitution.h \ 50 64 SynTree/VarArgsType.cc \ 65 SynTree/Visitor.h \ 51 66 SynTree/VoidType.cc \ 52 67 SynTree/ZeroOneType.cc -
src/Tuples/module.mk
r191a190 r49a980b 15 15 ############################################################################### 16 16 17 SRC += Tuples/TupleAssignment.cc Tuples/TupleExpansion.cc Tuples/Explode.cc \ 18 Tuples/Tuples.cc 19 SRCDEMANGLE += Tuples/TupleAssignment.cc Tuples/TupleExpansion.cc Tuples/Explode.cc \ 20 Tuples/Tuples.cc 17 SRC_TUPLES = \ 18 Tuples/Explode.cc \ 19 Tuples/Explode.h \ 20 Tuples/TupleAssignment.cc \ 21 Tuples/TupleExpansion.cc \ 22 Tuples/Tuples.cc \ 23 Tuples/Tuples.h 24 25 26 SRC += $(SRC_TUPLES) 27 SRCDEMANGLE += $(SRC_TUPLES) -
src/Validate/module.mk
r191a190 r49a980b 15 15 ############################################################################### 16 16 17 SRC += Validate/HandleAttributes.cc Validate/ FindSpecialDecls.cc18 SRCDEMANGLE += Validate/HandleAttributes.cc Validate/ FindSpecialDecls.cc17 SRC += Validate/HandleAttributes.cc Validate/HandleAttributes.h Validate/FindSpecialDecls.cc Validate/FindSpecialDecls.h 18 SRCDEMANGLE += Validate/HandleAttributes.cc Validate/HandleAttributes.h Validate/FindSpecialDecls.cc Validate/FindSpecialDecls.h -
src/Virtual/module.mk
r191a190 r49a980b 15 15 ############################################################################### 16 16 17 SRC += Virtual/ExpandCasts.cc 17 SRC += Virtual/ExpandCasts.cc Virtual/ExpandCasts.h -
tests/.expect/castError.txt
r191a190 r49a980b 3 3 Name: f 4 4 ... to: 5 char6 with resolved type:7 5 char Alternatives are: 8 6 Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of: … … 11 9 ... returning nothing 12 10 13 with resolved type:14 pointer to function15 accepting unspecified arguments16 ... returning nothing17 18 11 ... to: 19 char20 with resolved type:21 12 char 22 13 (types: … … 27 18 Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of: 28 19 Variable Expression: f: double 29 with resolved type:30 double31 20 ... to: 32 char33 with resolved type:34 21 char 35 22 (types: … … 40 27 Cost ( 1, 0, 0, 0, 0, 0, 0 ): Explicit Cast of: 41 28 Variable Expression: f: signed int 42 with resolved type:43 signed int44 29 ... to: 45 char46 with resolved type:47 30 char 48 31 (types: … … 56 39 Comma Expression: 57 40 constant expression (3 3: signed int) 58 with resolved type:59 signed int60 41 Name: v 61 ... to: nothing 62 with resolved type: 63 void Alternatives are: 42 ... to: nothing Alternatives are: 64 43 Cost ( 0, 0, 2, 0, 0, 0, 0 ): Generated Cast of: 65 44 Comma Expression: 66 45 constant expression (3 3: signed int) 67 with resolved type:68 signed int69 46 Variable Expression: v: unsigned char 70 with resolved type:71 unsigned char72 with resolved type:73 unsigned char74 47 ... to: nothing 75 with resolved type:76 void77 48 (types: 78 49 void … … 83 54 Comma Expression: 84 55 constant expression (3 3: signed int) 85 with resolved type:86 signed int87 56 Variable Expression: v: signed short int 88 with resolved type:89 signed short int90 with resolved type:91 signed short int92 57 ... to: nothing 93 with resolved type:94 void95 58 (types: 96 59 void … … 106 69 char 107 70 108 with resolved type:109 instance of struct S with body 1110 ... with parameters111 char112 -
tests/.expect/init1.txt
r191a190 r49a980b 11 11 ... to: 12 12 reference to signed int 13 with resolved type:14 reference to signed int15 13 init1.cfa:97:1 error: No reasonable alternatives for expression Applying untyped: 16 14 Name: ?{} … … 18 16 Generated Cast of: 19 17 Variable Expression: _retval_f_py: pointer to signed int 20 with resolved type:21 pointer to signed int22 18 ... to: 23 reference to pointer to signed int24 with resolved type:25 19 reference to pointer to signed int 26 20 Name: px … … 30 24 ... to: 31 25 reference to float 32 with resolved type:33 reference to float34 26 init1.cfa:107:1 error: No reasonable alternatives for expression Applying untyped: 35 27 Name: ?{} … … 37 29 Generated Cast of: 38 30 Variable Expression: _retval_f_py2: pointer to float 39 with resolved type:40 pointer to float41 31 ... to: 42 reference to pointer to float43 with resolved type:44 32 reference to pointer to float 45 33 Name: cpx … … 49 37 ... to: 50 38 reference to instance of type T (not function type) 51 with resolved type:52 reference to instance of type T (not function type)53 39 init1.cfa:118:1 error: No reasonable alternatives for expression Applying untyped: 54 40 Name: ?{} … … 56 42 Generated Cast of: 57 43 Variable Expression: _retval_anycvt: pointer to instance of type T (not function type) 58 with resolved type:59 pointer to instance of type T (not function type)60 44 ... to: 61 reference to pointer to instance of type T (not function type)62 with resolved type:63 45 reference to pointer to instance of type T (not function type) 64 46 Name: s -
tests/Makefile.am
r191a190 r49a980b 67 67 avl_test_SOURCES = avltree/avl_test.cfa avltree/avl0.cfa avltree/avl1.cfa avltree/avl2.cfa avltree/avl3.cfa avltree/avl4.cfa avltree/avl-private.cfa 68 68 # automake doesn't know we still need C/CPP rules so pretend like we have a C program 69 _dummy_hack_SOURCES = .dummy_hack.c .dummy_hackxx.cpp69 nodist__dummy_hack_SOURCES = .dummy_hack.c .dummy_hackxx.cpp 70 70 71 71 #---------------------------------------------------------------------------------------------------------------- -
tests/errors/.expect/completeType.x64.txt
r191a190 r49a980b 6 6 Name: x 7 7 8 ... to: nothing 9 with resolved type: 10 void Alternatives are: 8 ... to: nothing Alternatives are: 11 9 Cost ( 0, 1, 2, 0, 1, -1, 0 ): Generated Cast of: 12 10 Application of … … 22 20 23 21 24 with resolved type:25 pointer to forall26 _90_4_DT: data type27 function28 ... with parameters29 intrinsic pointer to instance of type _90_4_DT (not function type)30 ... returning31 _retval__operator_deref: reference to instance of type _90_4_DT (not function type)32 ... with attributes:33 Attribute with name: unused34 35 36 22 ... to arguments 37 23 Variable Expression: x: pointer to instance of struct A with body 0 38 with resolved type:39 pointer to instance of struct A with body 040 24 41 with resolved type:42 reference to instance of struct A with body 043 25 ... to: nothing 44 with resolved type:45 void46 26 (types: 47 27 void … … 63 43 64 44 65 with resolved type:66 pointer to forall67 _90_4_DT: data type68 function69 ... with parameters70 intrinsic pointer to instance of type _90_4_DT (not function type)71 ... returning72 _retval__operator_deref: reference to instance of type _90_4_DT (not function type)73 ... with attributes:74 Attribute with name: unused75 76 77 45 ... to arguments 78 46 Variable Expression: x: pointer to instance of struct B with body 1 79 with resolved type:80 pointer to instance of struct B with body 181 47 82 with resolved type:83 reference to instance of struct B with body 184 48 ... to: nothing 85 with resolved type:86 void87 49 (types: 88 50 void … … 159 121 ... returning nothing 160 122 161 with resolved type:162 pointer to forall163 _109_0_T: sized data type164 ... with assertions165 ?=?: pointer to function166 ... with parameters167 reference to instance of type _109_0_T (not function type)168 instance of type _109_0_T (not function type)169 ... returning170 _retval__operator_assign: instance of type _109_0_T (not function type)171 ... with attributes:172 Attribute with name: unused173 174 175 ?{}: pointer to function176 ... with parameters177 reference to instance of type _109_0_T (not function type)178 ... returning nothing179 180 ?{}: pointer to function181 ... with parameters182 reference to instance of type _109_0_T (not function type)183 instance of type _109_0_T (not function type)184 ... returning nothing185 186 ^?{}: pointer to function187 ... with parameters188 reference to instance of type _109_0_T (not function type)189 ... returning nothing190 191 192 function193 ... with parameters194 pointer to instance of type _109_0_T (not function type)195 ... returning nothing196 197 123 ... to arguments 198 124 Variable Expression: z: pointer to instance of type T (not function type) 199 with resolved type:200 pointer to instance of type T (not function type)201 125 202 with resolved type:203 void204 126 (types: 205 127 void -
tests/literals.cfa
r191a190 r49a980b 10 10 // Created On : Sat Sep 9 16:34:38 2017 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Aug 20 13:51:12202013 // Update Count : 22 512 // Last Modified On : Sat Aug 29 10:57:56 2020 13 // Update Count : 226 14 14 // 15 15 … … 151 151 -0X0123456789.0123456789P-09; -0X0123456789.0123456789P-09f; -0X0123456789.0123456789P-09l; -0X0123456789.0123456789P-09F; -0X0123456789.0123456789P-09L; 152 152 153 #if defined( __i386 ) || defined( __x86_64 ) 153 154 #if defined(__GNUC__) && __GNUC_PREREQ(7,0) // gcc version >= 7 154 155 // floating with length, gcc f16/f128x unsupported and no prelude code for any _FloatXXx, so they work by conversion to long double … … 194 195 /* -0x123456789.0123456789P-09F16; */ -0x123456789.0123456789P-09F32; -0x123456789.0123456789P-09F32x; -0x123456789.0123456789P-09F64; -0x123456789.0123456789P-09F64x; -0x123456789.0123456789P-09W; -0x123456789.0123456789P-09F128; -0x123456789.0123456789P-09q; /* -0x123456789.0123456789P-09q; */ 195 196 #endif // __GNUC_PREREQ(7,0) 197 #endif // __i386 ) || __x86_64 196 198 197 199 #ifdef __CFA__ -
tests/pybin/tools.py
r191a190 r49a980b 238 238 # helper function to check if a files contains only a specific string 239 239 def file_contains_only(file, text) : 240 with open(file ) as f:240 with open(file, encoding="latin-1") as f: # use latin-1 so all chars mean something. 241 241 ff = f.read().strip() 242 242 result = ff == text.strip() -
tests/raii/.expect/ctor-autogen-ERR1.txt
r191a190 r49a980b 7 7 x: signed int 8 8 ... returning nothing 9 10 with resolved type:11 function12 ... with parameters13 _dst: reference to instance of struct Managed with body 114 x: signed int15 ... returning nothing16 9 17 10 ... deleted by: ?{}: function … … 33 26 34 27 35 with resolved type:36 pointer to function37 ... with parameters38 intrinsic reference to signed int39 intrinsic signed int40 ... returning41 _retval__operator_assign: signed int42 ... with attributes:43 Attribute with name: unused44 45 46 28 ... to arguments 47 29 Generated Cast of: … … 51 33 Generated Cast of: 52 34 Variable Expression: m: reference to instance of struct Managed with body 1 53 with resolved type:54 reference to instance of struct Managed with body 155 35 ... to: 56 36 instance of struct Managed with body 1 57 with resolved type:58 instance of struct Managed with body 159 with resolved type:60 signed int61 37 ... to: 62 reference to signed int63 with resolved type:64 38 reference to signed int 65 39 Generated Cast of: 66 40 constant expression (0 0: zero_t) 67 with resolved type:68 zero_t69 41 ... to: 70 42 signed int 71 with resolved type:72 signed int73 43 74 with resolved type:75 signed int76 44 ... with environment: 77 45 Types: … … 82 50 Generated Cast of: 83 51 Variable Expression: x: instance of struct Managed with body 1 84 with resolved type:85 instance of struct Managed with body 186 52 ... to: 87 53 reference to instance of struct Managed with body 1 88 with resolved type:89 reference to instance of struct Managed with body 190 54 constant expression (123 123: signed int) 91 with resolved type:92 signed int93 55 94 with resolved type:95 void96 56 ... to: nothing 97 with resolved type:98 void -
tests/test.py
r191a190 r49a980b 194 194 if success(retcode): 195 195 if settings.generating : 196 # if we are o unly generating the output we still need to check that the test actually exists196 # if we are only generating the output we still need to check that the test actually exists 197 197 if no_rule(out_file, test.target()) : 198 198 retcode = 1 -
tests/warnings/.expect/self-assignment.txt
r191a190 r49a980b 1 1 warnings/self-assignment.cfa:29:1 warning: self assignment of expression: Generated Cast of: 2 2 Variable Expression: j: signed int 3 with resolved type:4 signed int5 3 ... to: 6 reference to signed int7 with resolved type:8 4 reference to signed int 9 5 warnings/self-assignment.cfa:30:1 warning: self assignment of expression: Generated Cast of: 10 6 Variable Expression: s: instance of struct S with body 1 11 with resolved type:12 instance of struct S with body 113 7 ... to: 14 reference to instance of struct S with body 115 with resolved type:16 8 reference to instance of struct S with body 1 17 9 warnings/self-assignment.cfa:31:1 warning: self assignment of expression: Generated Cast of: … … 20 12 ... from aggregate: 21 13 Variable Expression: s: instance of struct S with body 1 22 with resolved type:23 instance of struct S with body 124 with resolved type:25 signed int26 14 ... to: 27 reference to signed int28 with resolved type:29 15 reference to signed int 30 16 warnings/self-assignment.cfa:32:1 warning: self assignment of expression: Generated Cast of: … … 36 22 ... from aggregate: 37 23 Variable Expression: t: instance of struct T with body 1 38 with resolved type:39 instance of struct T with body 140 with resolved type:41 instance of struct S with body 142 with resolved type:43 signed int44 24 ... to: 45 25 reference to signed int 46 with resolved type:47 reference to signed int -
tools/Makefile.am
r191a190 r49a980b 18 18 ACLOCAL_AMFLAGS = -I automake 19 19 20 AM_CFLAGS = -Wall -Wextra -O2 -g 20 EXTRA_DIST = build/distcc_hash build/push2dist.sh 21 21 22 22 noinst_PROGRAMS = busy catchsig repeat watchdog 23 AM_CFLAGS = -Wall -Wextra -O2 -g 24 busy_LDFLAGS = -pthread 23 25 24 busy_SOURCES = busy.c 25 busy_LDFLAGS = -pthread 26 catchsig_SOURCES = catchsig.c 27 repeat_SOURCES = repeat.c 28 watchdog_SOURCES = watchdog.c 26 nodist_busy_SOURCES = busy.c 27 nodist_catchsig_SOURCES = catchsig.c 28 nodist_repeat_SOURCES = repeat.c 29 nodist_watchdog_SOURCES = watchdog.c -
tools/prettyprinter/Makefile.am
r191a190 r49a980b 30 30 tools_prettyprinter_PROGRAMS = pretty 31 31 tools_prettyprinterdir = ../ 32 pretty_SOURCES = ${SRC}32 nodist_pretty_SOURCES = ${SRC} 33 33 pretty_LDADD = ${LEXLIB} -ldl # yywrap 34 34 pretty_CXXFLAGS = -Wno-deprecated -Wall -DYY_NO_INPUT -O2 -g -std=c++14
Note: See TracChangeset
for help on using the changeset viewer.