Changeset e276be6
- Timestamp:
- Apr 6, 2020, 8:50:45 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 9d5d01f
- Parents:
- 23ecea4 (diff), f1b6671 (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:
-
- 9 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/prelude/Makefile.in
r23ecea4 re276be6 1 # Makefile.in generated by automake 1.1 6.1from Makefile.am.1 # Makefile.in generated by automake 1.15 from Makefile.am. 2 2 # @configure_input@ 3 3 4 # Copyright (C) 1994-201 8Free Software Foundation, Inc.4 # Copyright (C) 1994-2014 Free Software Foundation, Inc. 5 5 6 6 # This Makefile.in is free software; the Free Software Foundation … … 331 331 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ 332 332 *) \ 333 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__ maybe_remake_depfiles)'; \334 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__ maybe_remake_depfiles);; \333 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ 334 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ 335 335 esac; 336 336 … … 377 377 378 378 379 distdir: $(BUILT_SOURCES) 380 $(MAKE) $(AM_MAKEFLAGS) distdir-am 381 382 distdir-am: $(DISTFILES) 379 distdir: $(DISTFILES) 383 380 @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ 384 381 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ -
libcfa/src/Makefile.am
r23ecea4 re276be6 33 33 # The built sources must not depend on the installed headers 34 34 AM_CFAFLAGS = -quiet -cfalib -I$(srcdir)/stdhdr $(if $(findstring ${gdbwaittarget}, ${@}), -XCFA --gdb) @CONFIG_CFAFLAGS@ 35 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC - pthread @ARCH_FLAGS@ @CONFIG_CFLAGS@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@ 37 37 CFACC = @CFACC@ -
libcfa/src/Makefile.in
r23ecea4 re276be6 456 456 # The built sources must not depend on the installed headers 457 457 AM_CFAFLAGS = -quiet -cfalib -I$(srcdir)/stdhdr $(if $(findstring ${gdbwaittarget}, ${@}), -XCFA --gdb) @CONFIG_CFAFLAGS@ 458 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC - pthread @ARCH_FLAGS@ @CONFIG_CFLAGS@458 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC -fexceptions -pthread @ARCH_FLAGS@ @CONFIG_CFLAGS@ 459 459 AM_CCASFLAGS = -g -Wall -Wno-unused-function @ARCH_FLAGS@ @CONFIG_CFLAGS@ 460 460 @BUILDLIB_FALSE@headers_nosrc = -
libcfa/src/exception.c
r23ecea4 re276be6 10 10 // Created On : Mon Jun 26 15:13:00 2017 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Fri Apr 03 11:57:00 202013 // Update Count : 1 412 // Last Modified On : Mon Apr 06 14:40:00 2020 13 // Update Count : 15 14 14 // 15 15 … … 75 75 // RESUMPTION ================================================================ 76 76 77 static void reset_top_resume(struct __cfaehm_try_resume_node ** store) { 78 this_exception_context()->top_resume = *store; 79 } 80 77 81 void __cfaehm_throw_resume(exception_t * except) { 78 82 struct exception_context_t * context = this_exception_context(); … … 80 84 __cfaabi_dbg_print_safe("Throwing resumption exception\n"); 81 85 86 __attribute__((cleanup(reset_top_resume))) 82 87 struct __cfaehm_try_resume_node * original_head = context->top_resume; 83 88 struct __cfaehm_try_resume_node * current = context->top_resume; … … 86 91 context->top_resume = current->next; 87 92 if (current->handler(except)) { 88 context->top_resume = original_head;89 93 return; 90 94 } … … 92 96 93 97 __cfaabi_dbg_print_safe("Unhandled exception\n"); 94 context->top_resume = original_head;95 98 96 99 // Fall back to termination: -
tests/errors/.expect/completeType.txt
r23ecea4 re276be6 27 27 void 28 28 ) 29 Environment:( _85_ 4_DT ) -> instance of struct A with body 0 (no widening)29 Environment:( _85_2_DT ) -> instance of struct A with body 0 (no widening) 30 30 31 31 … … 50 50 void 51 51 ) 52 Environment:( _85_ 4_DT ) -> instance of struct B with body 1 (no widening)52 Environment:( _85_2_DT ) -> instance of struct B with body 1 (no widening) 53 53 54 54 -
tests/exceptions/.expect/interact.txt
r23ecea4 re276be6 14 14 resumption catch, will terminate 15 15 inner termination catch 16 17 throwing resume moon 18 resumption moon catch, will terminate 19 termination catch 20 throwing resume star 21 resumption star catch -
tests/exceptions/.expect/resume.txt
r23ecea4 re276be6 25 25 caught second exception 26 26 recaught first exception 27 28 inner catch 29 inner catch 30 outer catch -
tests/exceptions/.expect/terminate.txt
r23ecea4 re276be6 24 24 caught second exception 25 25 recaught first exception 26 27 inner catch 28 outer catch -
tests/exceptions/interact.cfa
r23ecea4 re276be6 86 86 printf("outer terminate catch (error)\n"); 87 87 } 88 #if 089 88 printf("\n"); 90 89 … … 111 110 printf("outermost catch (error)\n"); 112 111 } 113 #endif114 112 } -
tests/exceptions/resume.cfa
r23ecea4 re276be6 99 99 printf("caught second exception (bad location)\n"); 100 100 } 101 printf("\n"); 102 103 // Check successive operations. 104 try { 105 try { 106 THROW_RESUME(&(zen){}); 107 THROW_RESUME(&(zen){}); 108 } catchResume (zen *) { 109 printf("inner catch\n"); 110 } 111 THROW_RESUME(&(zen){}); 112 } catchResume (zen *) { 113 printf("outer catch\n"); 114 } 101 115 } -
tests/exceptions/terminate.cfa
r23ecea4 re276be6 99 99 printf("caught second exception (bad location)\n"); 100 100 } 101 printf("\n"); 102 103 // Check successive operations. 104 try { 105 try { 106 THROW(&(zen){}); 107 THROW(&(zen){}); 108 } catch (zen *) { 109 printf("inner catch\n"); 110 } 111 THROW(&(zen){}); 112 } catch (zen *) { 113 printf("outer catch\n"); 114 } 101 115 } -
tools/vscode/uwaterloo.cforall-0.1.0/package.json
r23ecea4 re276be6 15 15 "Other" 16 16 ], 17 "activationEvents": [ 18 "onLanguage:cforall" 19 ], 20 "main": "./client/main.js", 17 21 "contributes": { 18 22 "languages": [ … … 39 43 "path": "./syntaxes/cfa.tmLanguage.json" 40 44 } 41 ] 45 ], 46 "configuration": { 47 "type": "object", 48 "title": "Example configuration", 49 "properties": { 50 "cforall.maxNumberOfProblems": { 51 "scope": "resource", 52 "type": "number", 53 "default": 100, 54 "description": "Controls the maximum number of problems produced by the server." 55 }, 56 "cforall.trace.server": { 57 "scope": "window", 58 "type": "string", 59 "enum": [ 60 "off", 61 "messages", 62 "verbose" 63 ], 64 "default": "off", 65 "description": "Traces the communication between VS Code and the language server." 66 } 67 } 68 } 69 }, 70 "dependencies": { 71 "vscode-languageclient": "^4.1.4" 72 }, 73 "devDependencies": { 74 "vscode-languageclient": "^4.1.4" 42 75 } 43 76 }
Note: See TracChangeset
for help on using the changeset viewer.