Changeset a5de33e for src/libcfa
- Timestamp:
- Jul 5, 2017, 5:00:46 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 55a68c3, 5805d15
- Parents:
- f7cb0bc (diff), 1ce2189 (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. - Location:
- src/libcfa
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/Makefile.am
rf7cb0bc ra5de33e 50 50 51 51 libobjs = ${headers:=.o} 52 libsrc = libcfa-prelude.c interpose.c libhdr/libdebug.c ${headers:=.c} 52 libsrc = libcfa-prelude.c interpose.c libhdr/libdebug.c ${headers:=.c} exception.c 53 53 54 54 # not all platforms support concurrency, add option do disable it -
src/libcfa/Makefile.in
rf7cb0bc ra5de33e 1 # Makefile.in generated by automake 1.1 1.3from Makefile.am.1 # Makefile.in generated by automake 1.15 from Makefile.am. 2 2 # @configure_input@ 3 3 4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 5 # 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free Software 6 # Foundation, Inc. 4 # Copyright (C) 1994-2014 Free Software Foundation, Inc. 5 7 6 # This Makefile.in is free software; the Free Software Foundation 8 7 # gives unlimited permission to copy and/or distribute it, … … 21 20 22 21 VPATH = @srcdir@ 22 am__is_gnu_make = { \ 23 if test -z '$(MAKELEVEL)'; then \ 24 false; \ 25 elif test -n '$(MAKE_HOST)'; then \ 26 true; \ 27 elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \ 28 true; \ 29 else \ 30 false; \ 31 fi; \ 32 } 33 am__make_running_with_option = \ 34 case $${target_option-} in \ 35 ?) ;; \ 36 *) echo "am__make_running_with_option: internal error: invalid" \ 37 "target option '$${target_option-}' specified" >&2; \ 38 exit 1;; \ 39 esac; \ 40 has_opt=no; \ 41 sane_makeflags=$$MAKEFLAGS; \ 42 if $(am__is_gnu_make); then \ 43 sane_makeflags=$$MFLAGS; \ 44 else \ 45 case $$MAKEFLAGS in \ 46 *\\[\ \ ]*) \ 47 bs=\\; \ 48 sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ 49 | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ 50 esac; \ 51 fi; \ 52 skip_next=no; \ 53 strip_trailopt () \ 54 { \ 55 flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ 56 }; \ 57 for flg in $$sane_makeflags; do \ 58 test $$skip_next = yes && { skip_next=no; continue; }; \ 59 case $$flg in \ 60 *=*|--*) continue;; \ 61 -*I) strip_trailopt 'I'; skip_next=yes;; \ 62 -*I?*) strip_trailopt 'I';; \ 63 -*O) strip_trailopt 'O'; skip_next=yes;; \ 64 -*O?*) strip_trailopt 'O';; \ 65 -*l) strip_trailopt 'l'; skip_next=yes;; \ 66 -*l?*) strip_trailopt 'l';; \ 67 -[dEDm]) skip_next=yes;; \ 68 -[JT]) skip_next=yes;; \ 69 esac; \ 70 case $$flg in \ 71 *$$target_option*) has_opt=yes; break;; \ 72 esac; \ 73 done; \ 74 test $$has_opt = yes 75 am__make_dryrun = (target_option=n; $(am__make_running_with_option)) 76 am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) 23 77 pkgdatadir = $(datadir)/@PACKAGE@ 24 78 pkgincludedir = $(includedir)/@PACKAGE@ … … 48 102 @BUILD_CONCURRENCY_TRUE@am__append_4 = concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/alarm.c concurrency/invoke.c concurrency/preemption.c 49 103 subdir = src/libcfa 50 DIST_COMMON = $(am__nobase_cfa_include_HEADERS_DIST) \51 $(srcdir)/Makefile.am $(srcdir)/Makefile.in52 104 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 53 105 am__aclocal_m4_deps = $(top_srcdir)/configure.ac 54 106 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ 55 107 $(ACLOCAL_M4) 108 DIST_COMMON = $(srcdir)/Makefile.am \ 109 $(am__nobase_cfa_include_HEADERS_DIST) $(am__DIST_COMMON) 56 110 mkinstalldirs = $(install_sh) -d 57 111 CONFIG_HEADER = $(top_builddir)/config.h … … 91 145 AM_V_AR = $(am__v_AR_@AM_V@) 92 146 am__v_AR_ = $(am__v_AR_@AM_DEFAULT_V@) 93 am__v_AR_0 = @echo " AR " $@; 94 AM_V_at = $(am__v_at_@AM_V@) 95 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) 96 am__v_at_0 = @ 147 am__v_AR_0 = @echo " AR " $@; 148 am__v_AR_1 = 97 149 libcfa_d_a_AR = $(AR) $(ARFLAGS) 98 150 libcfa_d_a_LIBADD = … … 102 154 containers/pair.c containers/result.c containers/vector.c \ 103 155 concurrency/coroutine.c concurrency/thread.c \ 104 concurrency/kernel.c concurrency/monitor.c \156 concurrency/kernel.c concurrency/monitor.c exception.c \ 105 157 concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/alarm.c \ 106 158 concurrency/invoke.c concurrency/preemption.c … … 126 178 libcfa_d_a-interpose.$(OBJEXT) \ 127 179 libhdr/libcfa_d_a-libdebug.$(OBJEXT) $(am__objects_2) \ 128 $(am__objects_3)180 libcfa_d_a-exception.$(OBJEXT) $(am__objects_3) 129 181 am_libcfa_d_a_OBJECTS = $(am__objects_4) 130 182 libcfa_d_a_OBJECTS = $(am_libcfa_d_a_OBJECTS) … … 136 188 containers/pair.c containers/result.c containers/vector.c \ 137 189 concurrency/coroutine.c concurrency/thread.c \ 138 concurrency/kernel.c concurrency/monitor.c \190 concurrency/kernel.c concurrency/monitor.c exception.c \ 139 191 concurrency/CtxSwitch-@MACHINE_TYPE@.S concurrency/alarm.c \ 140 192 concurrency/invoke.c concurrency/preemption.c … … 158 210 libcfa_a-interpose.$(OBJEXT) \ 159 211 libhdr/libcfa_a-libdebug.$(OBJEXT) $(am__objects_6) \ 160 $(am__objects_7)212 libcfa_a-exception.$(OBJEXT) $(am__objects_7) 161 213 am_libcfa_a_OBJECTS = $(am__objects_8) 162 214 libcfa_a_OBJECTS = $(am_libcfa_a_OBJECTS) 215 AM_V_P = $(am__v_P_@AM_V@) 216 am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) 217 am__v_P_0 = false 218 am__v_P_1 = : 219 AM_V_GEN = $(am__v_GEN_@AM_V@) 220 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) 221 am__v_GEN_0 = @echo " GEN " $@; 222 am__v_GEN_1 = 223 AM_V_at = $(am__v_at_@AM_V@) 224 am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) 225 am__v_at_0 = @ 226 am__v_at_1 = 163 227 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) 164 228 depcomp = $(SHELL) $(top_srcdir)/automake/depcomp … … 169 233 AM_V_CPPAS = $(am__v_CPPAS_@AM_V@) 170 234 am__v_CPPAS_ = $(am__v_CPPAS_@AM_DEFAULT_V@) 171 am__v_CPPAS_0 = @echo " CPPAS " $@; 235 am__v_CPPAS_0 = @echo " CPPAS " $@; 236 am__v_CPPAS_1 = 172 237 AM_V_lt = $(am__v_lt_@AM_V@) 173 238 am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) 174 239 am__v_lt_0 = --silent 240 am__v_lt_1 = 175 241 COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ 176 242 $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 177 243 AM_V_CC = $(am__v_CC_@AM_V@) 178 244 am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) 179 am__v_CC_0 = @echo " CC " $@; 245 am__v_CC_0 = @echo " CC " $@; 246 am__v_CC_1 = 180 247 CCLD = $(CC) 181 248 LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@ 182 249 AM_V_CCLD = $(am__v_CCLD_@AM_V@) 183 250 am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) 184 am__v_CCLD_0 = @echo " CCLD " $@; 185 AM_V_GEN = $(am__v_GEN_@AM_V@) 186 am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) 187 am__v_GEN_0 = @echo " GEN " $@; 251 am__v_CCLD_0 = @echo " CCLD " $@; 252 am__v_CCLD_1 = 188 253 SOURCES = $(libcfa_d_a_SOURCES) $(libcfa_a_SOURCES) 189 254 DIST_SOURCES = $(am__libcfa_d_a_SOURCES_DIST) \ 190 255 $(am__libcfa_a_SOURCES_DIST) 256 am__can_run_installinfo = \ 257 case $$AM_UPDATE_INFO_DIR in \ 258 n|no|NO) false;; \ 259 *) (install-info --version) >/dev/null 2>&1;; \ 260 esac 191 261 am__nobase_cfa_include_HEADERS_DIST = assert fstream iostream iterator \ 192 262 limits math rational stdlib containers/maybe containers/pair \ … … 195 265 ${shell echo stdhdr/*} gmp concurrency/invoke.h 196 266 HEADERS = $(nobase_cfa_include_HEADERS) 267 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) 268 # Read a list of newline-separated strings from the standard input, 269 # and print each of them once, without duplicates. Input order is 270 # *not* preserved. 271 am__uniquify_input = $(AWK) '\ 272 BEGIN { nonempty = 0; } \ 273 { items[$$0] = 1; nonempty = 1; } \ 274 END { if (nonempty) { for (i in items) print i; }; } \ 275 ' 276 # Make sure the list of sources is unique. This is necessary because, 277 # e.g., the same source file might be shared among _SOURCES variables 278 # for different programs/libraries. 279 am__define_uniq_tagged_files = \ 280 list='$(am__tagged_files)'; \ 281 unique=`for i in $$list; do \ 282 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 283 done | $(am__uniquify_input)` 197 284 ETAGS = etags 198 285 CTAGS = ctags 286 am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/automake/depcomp 199 287 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 200 288 ACLOCAL = @ACLOCAL@ … … 309 397 program_transform_name = @program_transform_name@ 310 398 psdir = @psdir@ 399 runstatedir = @runstatedir@ 311 400 sbindir = @sbindir@ 312 401 sharedstatedir = @sharedstatedir@ … … 328 417 libobjs = ${headers:=.o} 329 418 libsrc = libcfa-prelude.c interpose.c libhdr/libdebug.c ${headers:=.c} \ 330 $(am__append_4)419 exception.c $(am__append_4) 331 420 libcfa_a_SOURCES = ${libsrc} 332 421 libcfa_a_CFLAGS = -nodebug -O2 … … 350 439 esac; \ 351 440 done; \ 352 echo ' cd $(top_srcdir) && $(AUTOMAKE) -- foreignsrc/libcfa/Makefile'; \441 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/libcfa/Makefile'; \ 353 442 $(am__cd) $(top_srcdir) && \ 354 $(AUTOMAKE) --foreign src/libcfa/Makefile 355 .PRECIOUS: Makefile 443 $(AUTOMAKE) --gnu src/libcfa/Makefile 356 444 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 357 445 @case '$?' in \ … … 373 461 install-libLIBRARIES: $(lib_LIBRARIES) 374 462 @$(NORMAL_INSTALL) 375 test -z "$(libdir)" || $(MKDIR_P) "$(DESTDIR)$(libdir)"376 463 @list='$(lib_LIBRARIES)'; test -n "$(libdir)" || list=; \ 377 464 list2=; for p in $$list; do \ … … 381 468 done; \ 382 469 test -z "$$list2" || { \ 470 echo " $(MKDIR_P) '$(DESTDIR)$(libdir)'"; \ 471 $(MKDIR_P) "$(DESTDIR)$(libdir)" || exit 1; \ 383 472 echo " $(INSTALL_DATA) $$list2 '$(DESTDIR)$(libdir)'"; \ 384 473 $(INSTALL_DATA) $$list2 "$(DESTDIR)$(libdir)" || exit $$?; } … … 448 537 concurrency/$(am__dirstamp) \ 449 538 concurrency/$(DEPDIR)/$(am__dirstamp) 539 450 540 libcfa-d.a: $(libcfa_d_a_OBJECTS) $(libcfa_d_a_DEPENDENCIES) $(EXTRA_libcfa_d_a_DEPENDENCIES) 451 541 $(AM_V_at)-rm -f libcfa-d.a … … 477 567 concurrency/$(am__dirstamp) \ 478 568 concurrency/$(DEPDIR)/$(am__dirstamp) 569 479 570 libcfa.a: $(libcfa_a_OBJECTS) $(libcfa_a_DEPENDENCIES) $(EXTRA_libcfa_a_DEPENDENCIES) 480 571 $(AM_V_at)-rm -f libcfa.a … … 484 575 mostlyclean-compile: 485 576 -rm -f *.$(OBJEXT) 486 -rm -f concurrency/CtxSwitch-@MACHINE_TYPE@.$(OBJEXT) 487 -rm -f concurrency/libcfa_a-alarm.$(OBJEXT) 488 -rm -f concurrency/libcfa_a-coroutine.$(OBJEXT) 489 -rm -f concurrency/libcfa_a-invoke.$(OBJEXT) 490 -rm -f concurrency/libcfa_a-kernel.$(OBJEXT) 491 -rm -f concurrency/libcfa_a-monitor.$(OBJEXT) 492 -rm -f concurrency/libcfa_a-preemption.$(OBJEXT) 493 -rm -f concurrency/libcfa_a-thread.$(OBJEXT) 494 -rm -f concurrency/libcfa_d_a-alarm.$(OBJEXT) 495 -rm -f concurrency/libcfa_d_a-coroutine.$(OBJEXT) 496 -rm -f concurrency/libcfa_d_a-invoke.$(OBJEXT) 497 -rm -f concurrency/libcfa_d_a-kernel.$(OBJEXT) 498 -rm -f concurrency/libcfa_d_a-monitor.$(OBJEXT) 499 -rm -f concurrency/libcfa_d_a-preemption.$(OBJEXT) 500 -rm -f concurrency/libcfa_d_a-thread.$(OBJEXT) 501 -rm -f containers/libcfa_a-maybe.$(OBJEXT) 502 -rm -f containers/libcfa_a-pair.$(OBJEXT) 503 -rm -f containers/libcfa_a-result.$(OBJEXT) 504 -rm -f containers/libcfa_a-vector.$(OBJEXT) 505 -rm -f containers/libcfa_d_a-maybe.$(OBJEXT) 506 -rm -f containers/libcfa_d_a-pair.$(OBJEXT) 507 -rm -f containers/libcfa_d_a-result.$(OBJEXT) 508 -rm -f containers/libcfa_d_a-vector.$(OBJEXT) 509 -rm -f libhdr/libcfa_a-libdebug.$(OBJEXT) 510 -rm -f libhdr/libcfa_d_a-libdebug.$(OBJEXT) 577 -rm -f concurrency/*.$(OBJEXT) 578 -rm -f containers/*.$(OBJEXT) 579 -rm -f libhdr/*.$(OBJEXT) 511 580 512 581 distclean-compile: … … 514 583 515 584 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_a-assert.Po@am__quote@ 585 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_a-exception.Po@am__quote@ 516 586 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_a-fstream.Po@am__quote@ 517 587 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_a-interpose.Po@am__quote@ … … 524 594 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_a-stdlib.Po@am__quote@ 525 595 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_d_a-assert.Po@am__quote@ 596 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_d_a-exception.Po@am__quote@ 526 597 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_d_a-fstream.Po@am__quote@ 527 598 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libcfa_d_a-interpose.Po@am__quote@ … … 850 921 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -c -o concurrency/libcfa_d_a-monitor.obj `if test -f 'concurrency/monitor.c'; then $(CYGPATH_W) 'concurrency/monitor.c'; else $(CYGPATH_W) '$(srcdir)/concurrency/monitor.c'; fi` 851 922 923 libcfa_d_a-exception.obj: exception.c 924 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT libcfa_d_a-exception.obj -MD -MP -MF $(DEPDIR)/libcfa_d_a-exception.Tpo -c -o libcfa_d_a-exception.obj `if test -f 'exception.c'; then $(CYGPATH_W) 'exception.c'; else $(CYGPATH_W) '$(srcdir)/exception.c'; fi` 925 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_d_a-exception.Tpo $(DEPDIR)/libcfa_d_a-exception.Po 926 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='exception.c' object='libcfa_d_a-exception.obj' libtool=no @AMDEPBACKSLASH@ 927 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 928 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -c -o libcfa_d_a-exception.obj `if test -f 'exception.c'; then $(CYGPATH_W) 'exception.c'; else $(CYGPATH_W) '$(srcdir)/exception.c'; fi` 929 852 930 concurrency/libcfa_d_a-alarm.o: concurrency/alarm.c 853 931 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_d_a_CFLAGS) $(CFLAGS) -MT concurrency/libcfa_d_a-alarm.o -MD -MP -MF concurrency/$(DEPDIR)/libcfa_d_a-alarm.Tpo -c -o concurrency/libcfa_d_a-alarm.o `test -f 'concurrency/alarm.c' || echo '$(srcdir)/'`concurrency/alarm.c … … 1144 1222 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o concurrency/libcfa_a-monitor.obj `if test -f 'concurrency/monitor.c'; then $(CYGPATH_W) 'concurrency/monitor.c'; else $(CYGPATH_W) '$(srcdir)/concurrency/monitor.c'; fi` 1145 1223 1224 libcfa_a-exception.obj: exception.c 1225 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -MT libcfa_a-exception.obj -MD -MP -MF $(DEPDIR)/libcfa_a-exception.Tpo -c -o libcfa_a-exception.obj `if test -f 'exception.c'; then $(CYGPATH_W) 'exception.c'; else $(CYGPATH_W) '$(srcdir)/exception.c'; fi` 1226 @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/libcfa_a-exception.Tpo $(DEPDIR)/libcfa_a-exception.Po 1227 @AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='exception.c' object='libcfa_a-exception.obj' libtool=no @AMDEPBACKSLASH@ 1228 @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ 1229 @am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -c -o libcfa_a-exception.obj `if test -f 'exception.c'; then $(CYGPATH_W) 'exception.c'; else $(CYGPATH_W) '$(srcdir)/exception.c'; fi` 1230 1146 1231 concurrency/libcfa_a-alarm.o: concurrency/alarm.c 1147 1232 @am__fastdepCC_TRUE@ $(AM_V_CC)$(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libcfa_a_CFLAGS) $(CFLAGS) -MT concurrency/libcfa_a-alarm.o -MD -MP -MF concurrency/$(DEPDIR)/libcfa_a-alarm.Tpo -c -o concurrency/libcfa_a-alarm.o `test -f 'concurrency/alarm.c' || echo '$(srcdir)/'`concurrency/alarm.c … … 1180 1265 install-nobase_cfa_includeHEADERS: $(nobase_cfa_include_HEADERS) 1181 1266 @$(NORMAL_INSTALL) 1182 test -z "$(cfa_includedir)" || $(MKDIR_P) "$(DESTDIR)$(cfa_includedir)"1183 1267 @list='$(nobase_cfa_include_HEADERS)'; test -n "$(cfa_includedir)" || list=; \ 1268 if test -n "$$list"; then \ 1269 echo " $(MKDIR_P) '$(DESTDIR)$(cfa_includedir)'"; \ 1270 $(MKDIR_P) "$(DESTDIR)$(cfa_includedir)" || exit 1; \ 1271 fi; \ 1184 1272 $(am__nobase_list) | while read dir files; do \ 1185 1273 xfiles=; for file in $$files; do \ … … 1188 1276 test -z "$$xfiles" || { \ 1189 1277 test "x$$dir" = x. || { \ 1190 echo " $(MKDIR_P) '$(DESTDIR)$(cfa_includedir)/$$dir'"; \1278 echo " $(MKDIR_P) '$(DESTDIR)$(cfa_includedir)/$$dir'"; \ 1191 1279 $(MKDIR_P) "$(DESTDIR)$(cfa_includedir)/$$dir"; }; \ 1192 1280 echo " $(INSTALL_HEADER) $$xfiles '$(DESTDIR)$(cfa_includedir)/$$dir'"; \ … … 1200 1288 dir='$(DESTDIR)$(cfa_includedir)'; $(am__uninstall_files_from_dir) 1201 1289 1202 ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) 1203 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 1204 unique=`for i in $$list; do \ 1205 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 1206 done | \ 1207 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 1208 END { if (nonempty) { for (i in files) print i; }; }'`; \ 1209 mkid -fID $$unique 1210 tags: TAGS 1211 1212 TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 1213 $(TAGS_FILES) $(LISP) 1290 ID: $(am__tagged_files) 1291 $(am__define_uniq_tagged_files); mkid -fID $$unique 1292 tags: tags-am 1293 TAGS: tags 1294 1295 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) 1214 1296 set x; \ 1215 1297 here=`pwd`; \ 1216 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 1217 unique=`for i in $$list; do \ 1218 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 1219 done | \ 1220 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 1221 END { if (nonempty) { for (i in files) print i; }; }'`; \ 1298 $(am__define_uniq_tagged_files); \ 1222 1299 shift; \ 1223 1300 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ … … 1231 1308 fi; \ 1232 1309 fi 1233 ctags: CTAGS 1234 CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ 1235 $(TAGS_FILES) $(LISP) 1236 list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ 1237 unique=`for i in $$list; do \ 1238 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 1239 done | \ 1240 $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ 1241 END { if (nonempty) { for (i in files) print i; }; }'`; \ 1310 ctags: ctags-am 1311 1312 CTAGS: ctags 1313 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) 1314 $(am__define_uniq_tagged_files); \ 1242 1315 test -z "$(CTAGS_ARGS)$$unique" \ 1243 1316 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ … … 1248 1321 && $(am__cd) $(top_srcdir) \ 1249 1322 && gtags -i $(GTAGS_ARGS) "$$here" 1323 cscopelist: cscopelist-am 1324 1325 cscopelist-am: $(am__tagged_files) 1326 list='$(am__tagged_files)'; \ 1327 case "$(srcdir)" in \ 1328 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ 1329 *) sdir=$(subdir)/$(srcdir) ;; \ 1330 esac; \ 1331 for i in $$list; do \ 1332 if test -f "$$i"; then \ 1333 echo "$(subdir)/$$i"; \ 1334 else \ 1335 echo "$$sdir/$$i"; \ 1336 fi; \ 1337 done >> $(top_builddir)/cscope.files 1250 1338 1251 1339 distclean-tags: … … 1399 1487 .MAKE: install-am install-strip 1400 1488 1401 .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \1402 clean-libLIBRARIES c tags distclean distclean-compile\1403 distclean- generic distclean-tags distdir dvi dvi-am html\1404 html-am info info-am install install-am install-data\1405 install-data -am install-dvi install-dvi-am install-exec\1406 install-exec -am install-html install-html-am install-info\1407 install-info -am install-libLIBRARIES install-man \1489 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ 1490 clean-libLIBRARIES cscopelist-am ctags ctags-am distclean \ 1491 distclean-compile distclean-generic distclean-tags distdir dvi \ 1492 dvi-am html html-am info info-am install install-am \ 1493 install-data install-data-am install-dvi install-dvi-am \ 1494 install-exec install-exec-am install-html install-html-am \ 1495 install-info install-info-am install-libLIBRARIES install-man \ 1408 1496 install-nobase_cfa_includeHEADERS install-pdf install-pdf-am \ 1409 1497 install-ps install-ps-am install-strip installcheck \ … … 1411 1499 maintainer-clean-generic maintainer-clean-local mostlyclean \ 1412 1500 mostlyclean-compile mostlyclean-generic pdf pdf-am ps ps-am \ 1413 tags uninstall uninstall-am uninstall-libLIBRARIES \1501 tags tags-am uninstall uninstall-am uninstall-libLIBRARIES \ 1414 1502 uninstall-nobase_cfa_includeHEADERS 1503 1504 .PRECIOUS: Makefile 1415 1505 1416 1506 -
src/libcfa/exception.c
rf7cb0bc ra5de33e 37 37 // This macro should be the only thing that needs to change across machines. 38 38 // Used in the personality function, way down in termination. 39 // struct _Unwind_Context * -> _Unwind_Reason_Code(*)( )39 // struct _Unwind_Context * -> _Unwind_Reason_Code(*)(exception *) 40 40 #define MATCHER_FROM_CONTEXT(ptr_to_context) \ 41 (*(_Unwind_Reason_Code(**)( ))(_Unwind_GetCFA(ptr_to_context) + 8))41 (*(_Unwind_Reason_Code(**)(exception*))(_Unwind_GetCFA(ptr_to_context) + 8)) 42 42 43 43 44 44 // RESUMPTION ================================================================ 45 45 46 void __cfaehm__throw_resum e(exceptionexcept) {47 48 // DEBUG 49 printf("Throwing resumption exception %d\n", except);50 51 struct __ try_resume_node * original_head = shared_stack.current_resume;52 struct __ try_resume_node * current =46 void __cfaehm__throw_resumption(exception * except) { 47 48 // DEBUG 49 printf("Throwing resumption exception %d\n", *except); 50 51 struct __cfaehm__try_resume_node * original_head = shared_stack.current_resume; 52 struct __cfaehm__try_resume_node * current = 53 53 (original_head) ? original_head->next : shared_stack.top_resume; 54 54 55 55 for ( ; current ; current = current->next) { 56 56 shared_stack.current_resume = current; 57 if (current-> try_to_handle(except)) {57 if (current->handler(except)) { 58 58 shared_stack.current_resume = original_head; 59 59 return; … … 61 61 } 62 62 63 printf("Unhandled exception %d\n", except);63 printf("Unhandled exception %d\n", *except); 64 64 shared_stack.current_resume = original_head; 65 65 66 66 // Fall back to termination: 67 __cfaehm__throw_terminat e(except);67 __cfaehm__throw_termination(except); 68 68 // TODO: Default handler for resumption. 69 69 } … … 73 73 * after the node is built but before it is made the top node. 74 74 */ 75 void __ try_resume_setup(struct__try_resume_node * node,76 bool (*handler)(exceptionexcept)) {75 void __cfaehm__try_resume_setup(struct __cfaehm__try_resume_node * node, 76 int (*handler)(exception * except)) { 77 77 node->next = shared_stack.top_resume; 78 node-> try_to_handle= handler;78 node->handler = handler; 79 79 shared_stack.top_resume = node; 80 80 } 81 81 82 void __ try_resume_cleanup(struct__try_resume_node * node) {82 void __cfaehm__try_resume_cleanup(struct __cfaehm__try_resume_node * node) { 83 83 shared_stack.top_resume = node->next; 84 84 } … … 111 111 } 112 112 113 void __cfaehm__throw_terminat e( intval ) {113 void __cfaehm__throw_termination( exception * val ) { 114 114 // Store the current exception 115 shared_stack.current_exception = val;116 117 // DEBUG 118 printf("Throwing termination exception %d\n", val);115 shared_stack.current_exception = *val; 116 117 // DEBUG 118 printf("Throwing termination exception %d\n", *val); 119 119 120 120 // Call stdlibc to raise the exception … … 147 147 148 148 // Nesting this the other way would probably be faster. 149 void __cfaehm__rethrow_terminat e(void) {149 void __cfaehm__rethrow_termination(void) { 150 150 // DEBUG 151 151 printf("Rethrowing termination exception\n"); 152 152 153 __cfaehm__throw_terminat e(shared_stack.current_exception);153 __cfaehm__throw_termination(&shared_stack.current_exception); 154 154 } 155 155 … … 261 261 // _Unwind_Reason_Code (*matcher)() = (_Unwind_Reason_Code (*)())lsd_info.LPStart + imatcher; 262 262 263 _Unwind_Reason_Code (*matcher)( ) =263 _Unwind_Reason_Code (*matcher)(exception *) = 264 264 MATCHER_FROM_CONTEXT(context); 265 int index = matcher( shared_stack.current_exception);265 int index = matcher(&shared_stack.current_exception); 266 266 _Unwind_Reason_Code ret = (0 == index) 267 267 ? _URC_CONTINUE_UNWIND : _URC_HANDLER_FOUND; … … 322 322 // for details 323 323 __attribute__((noinline)) 324 void __ try_terminate(void (*try_block)(),325 void (*catch_block)(int index, exception except),326 __attribute__((unused)) int (*match_block)(exception except)) {324 void __cfaehm__try_terminate(void (*try_block)(), 325 void (*catch_block)(int index, exception * except), 326 __attribute__((unused)) int (*match_block)(exception * except)) { 327 327 //! volatile int xy = 0; 328 328 //! printf("%p %p %p %p\n", &try_block, &catch_block, &match_block, &xy); … … 364 364 // Exception handler 365 365 catch_block(shared_stack.current_handler_index, 366 shared_stack.current_exception);366 &shared_stack.current_exception); 367 367 } 368 368 … … 384 384 // Body uses language specific data and therefore could be modified arbitrarily 385 385 ".LLSDACSBCFA2:\n" // BODY start 386 " .uleb128 .TRYSTART-__ try_terminate\n" // Handled area start (relative to start of function)386 " .uleb128 .TRYSTART-__cfaehm__try_terminate\n" // Handled area start (relative to start of function) 387 387 " .uleb128 .TRYEND-.TRYSTART\n" // Handled area length 388 " .uleb128 .CATCH-__ try_terminate\n" // Hanlder landing pad adress (relative to start of function)388 " .uleb128 .CATCH-__cfaehm__try_terminate\n" // Hanlder landing pad adress (relative to start of function) 389 389 " .uleb128 1\n" // Action code, gcc seems to use always 0 390 390 ".LLSDACSECFA2:\n" // BODY end 391 391 " .text\n" // TABLE footer 392 " .size __ try_terminate, .-__try_terminate\n"392 " .size __cfaehm__try_terminate, .-__cfaehm__try_terminate\n" 393 393 " .ident \"GCC: (Ubuntu 6.2.0-3ubuntu11~16.04) 6.2.0 20160901\"\n" 394 394 // " .section .note.GNU-stack,\"x\",@progbits\n" -
src/libcfa/exception.h
rf7cb0bc ra5de33e 38 38 // Data structure creates a list of resume handlers. 39 39 struct __cfaehm__try_resume_node { 40 __cfaehm__try_resume_node * next;40 struct __cfaehm__try_resume_node * next; 41 41 int (*handler)(exception * except); 42 42 }; 43 43 44 44 void __cfaehm__try_resume_setup( 45 __cfaehm__try_resume_node * node,45 struct __cfaehm__try_resume_node * node, 46 46 int (*handler)(exception * except)); 47 47 void __cfaehm__try_resume_cleanup( 48 __cfaehm__try_resume_node * node);48 struct __cfaehm__try_resume_node * node); 49 49 50 50 // Check for a standard way to call fake deconstructors. -
src/libcfa/fstream
rf7cb0bc ra5de33e 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 15 18:11:09201713 // Update Count : 1 0412 // Last Modified On : Sat Jul 1 16:37:53 2017 13 // Update Count : 112 14 14 // 15 15 … … 24 24 _Bool sepDefault; 25 25 _Bool sepOnOff; 26 _Bool lastSepOn; 26 27 const char * sepCur; 27 28 char separator[separateSize]; … … 35 36 const char * sepGetCur( ofstream * ); 36 37 void sepSetCur( ofstream *, const char * ); 38 _Bool lastSepOn( ofstream * ); 37 39 38 40 // public -
src/libcfa/fstream.c
rf7cb0bc ra5de33e 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 15 18:11:11201713 // Update Count : 2 3412 // Last Modified On : Sat Jul 1 16:37:54 2017 13 // Update Count : 242 14 14 // 15 15 … … 33 33 this->sepDefault = sepDefault; 34 34 this->sepOnOff = sepOnOff; 35 this->lastSepOn = false; 35 36 sepSet( this, separator ); 36 37 sepSetCur( this, sepGet( this ) ); … … 39 40 40 41 // private 41 _Bool sepPrt( ofstream * os ) { return os->sepOnOff; } 42 _Bool lastSepOn( ofstream * os ) { return os->lastSepOn; } 43 _Bool sepPrt( ofstream * os ) { os->lastSepOn = false; return os->sepOnOff; } 42 44 void sepReset( ofstream * os ) { os->sepOnOff = os->sepDefault; } 43 45 void sepReset( ofstream * os, _Bool reset ) { os->sepDefault = reset; os->sepOnOff = os->sepDefault; } … … 46 48 47 49 // public 48 void sepOn( ofstream * os ) { os-> sepOnOff = 1; }49 void sepOff( ofstream * os ) { os-> sepOnOff = 0; }50 void sepOn( ofstream * os ) { os->lastSepOn = true; os->sepOnOff = true; } 51 void sepOff( ofstream * os ) { os->lastSepOn = false; os->sepOnOff = 0; } 50 52 51 53 _Bool sepDisable( ofstream *os ) { 52 54 _Bool temp = os->sepDefault; 53 55 os->sepDefault = false; 56 os->lastSepOn = false; 54 57 sepReset( os ); 55 58 return temp; … … 92 95 exit( EXIT_FAILURE ); 93 96 } // if 94 ?{}( os, file, 1, 0, " ", ", " );97 ?{}( os, file, true, false, " ", ", " ); 95 98 } // open 96 99 … … 132 135 } // fmt 133 136 134 static ofstream soutFile = { (FILE *)(&_IO_2_1_stdout_), 1, 0, " ", ", " };137 static ofstream soutFile = { (FILE *)(&_IO_2_1_stdout_), true, false, " ", ", " }; 135 138 ofstream *sout = &soutFile; 136 static ofstream serrFile = { (FILE *)(&_IO_2_1_stderr_), 1, 0, " ", ", " };139 static ofstream serrFile = { (FILE *)(&_IO_2_1_stderr_), true, false, " ", ", " }; 137 140 ofstream *serr = &serrFile; 138 141 -
src/libcfa/iostream
rf7cb0bc ra5de33e 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 15 18:08:44201713 // Update Count : 1 0512 // Last Modified On : Sun Jul 2 08:42:56 2017 13 // Update Count : 110 14 14 // 15 15 … … 26 26 const char * sepGetCur( ostype * ); // get current separator string 27 27 void sepSetCur( ostype *, const char * ); // set current separator string 28 _Bool lastSepOn( ostype * ); // last manipulator is setOn (context sensitive) 28 29 // public 29 30 void sepOn( ostype * ); // turn separator state on … … 43 44 ostype * write( ostype *, const char *, unsigned long int ); 44 45 int fmt( ostype *, const char fmt[], ... ); 45 }; 46 }; // ostream 46 47 47 48 trait writeable( otype T ) { 48 49 forall( dtype ostype | ostream( ostype ) ) ostype * ?|?( ostype *, T ); 49 }; 50 }; // writeable 50 51 51 52 // implement writable for intrinsic types … … 103 104 istype * ungetc( istype *, char ); 104 105 int fmt( istype *, const char fmt[], ... ); 105 }; 106 }; // istream 106 107 107 108 trait readable( otype T ) { 108 109 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, T ); 109 }; 110 }; // readable 110 111 111 112 forall( dtype istype | istream( istype ) ) istype * ?|?( istype *, char * ); -
src/libcfa/iostream.c
rf7cb0bc ra5de33e 10 10 // Created On : Wed May 27 17:56:53 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon May 8 18:24:23201713 // Update Count : 3 6912 // Last Modified On : Sun Jul 2 08:54:02 2017 13 // Update Count : 375 14 14 // 15 15 … … 201 201 forall( dtype ostype, otype T, ttype Params | ostream( ostype ) | writeable( T ) | { ostype * ?|?( ostype *, Params ); } ) 202 202 ostype * ?|?( ostype * os, T arg, Params rest ) { 203 os | arg; // print first argument 203 204 sepSetCur( os, sepGetTuple( os ) ); // switch to tuple separator 204 os | arg; // print first argument205 205 os | rest; // print remaining arguments 206 206 sepSetCur( os, sepGet( os ) ); // switch to regular separator … … 217 217 forall( dtype ostype | ostream( ostype ) ) 218 218 ostype * endl( ostype * os ) { 219 if ( lastSepOn( os ) ) fmt( os, "%s", sepGetCur( os ) ); 219 220 os | '\n'; 220 221 flush( os );
Note:
See TracChangeset
for help on using the changeset viewer.