Changeset c680a4b
- Timestamp:
- Apr 27, 2020, 4:35:58 PM (4 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:
- 44aad8f, fd4d3017
- Parents:
- 851fd92
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
driver/cfa.cc
r851fd92 rc680a4b 385 385 } // if 386 386 387 string preludedir; 387 388 switch(path) { 388 case Installed : Putenv( argv, "--prelude-dir=" + libdir ); break;389 case BuildTree : Putenv( argv, "--prelude-dir=" + libdir + "/prelude" ); break;390 case Distributed : Putenv( argv, "--prelude-dir=" + dir(argv[0])); break;389 case Installed : preludedir = libdir; break; 390 case BuildTree : preludedir = libdir + "/prelude"; break; 391 case Distributed : preludedir = dir(argv[0]); break; 391 392 } 393 394 Putenv( argv, "--prelude-dir=" + preludedir ); 395 args[nargs++] = "-include"; 396 args[nargs++] = (*new string(preludedir + "/defines.hfa")).c_str(); 392 397 393 398 for ( int i = 0; i < nlibs; i += 1 ) { // copy non-user libraries after all user libraries -
libcfa/Makefile.in
r851fd92 rc680a4b 106 106 configure.lineno config.status.lineno 107 107 mkinstalldirs = $(install_sh) -d 108 CONFIG_HEADER = $(top_builddir)/prelude/defines.hfa 108 109 CONFIG_CLEAN_FILES = 109 110 CONFIG_CLEAN_VPATH_FILES = -
libcfa/configure
r851fd92 rc680a4b 16966 16966 16967 16967 16968 ac_config_headers="$ac_config_headers prelude/defines.hfa" 16969 16970 16968 16971 cat >confcache <<\_ACEOF 16969 16972 # This file is a shell script that caches the results of configure … … 17056 17059 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 17057 17060 17058 # Transform confdefs.h into DEFS. 17059 # Protect against shell expansion while executing Makefile rules. 17060 # Protect against Makefile macro expansion. 17061 # 17062 # If the first sed substitution is executed (which looks for macros that 17063 # take arguments), then branch to the quote section. Otherwise, 17064 # look for a macro that doesn't take arguments. 17065 ac_script=' 17066 :mline 17067 /\\$/{ 17068 N 17069 s,\\\n,, 17070 b mline 17071 } 17072 t clear 17073 :clear 17074 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 17075 t quote 17076 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 17077 t quote 17078 b any 17079 :quote 17080 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 17081 s/\[/\\&/g 17082 s/\]/\\&/g 17083 s/\$/$$/g 17084 H 17085 :any 17086 ${ 17087 g 17088 s/^\n// 17089 s/\n/ /g 17090 p 17091 } 17092 ' 17093 DEFS=`sed -n "$ac_script" confdefs.h` 17094 17061 DEFS=-DHAVE_CONFIG_H 17095 17062 17096 17063 ac_libobjs= … … 17570 17537 esac 17571 17538 17539 case $ac_config_headers in *" 17540 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 17541 esac 17572 17542 17573 17543 … … 17575 17545 # Files that config.status was made for. 17576 17546 config_files="$ac_config_files" 17547 config_headers="$ac_config_headers" 17577 17548 config_commands="$ac_config_commands" 17578 17549 … … 17596 17567 --file=FILE[:TEMPLATE] 17597 17568 instantiate the configuration file FILE 17569 --header=FILE[:TEMPLATE] 17570 instantiate the configuration header FILE 17598 17571 17599 17572 Configuration files: 17600 17573 $config_files 17574 17575 Configuration headers: 17576 $config_headers 17601 17577 17602 17578 Configuration commands: … … 17666 17642 as_fn_append CONFIG_FILES " '$ac_optarg'" 17667 17643 ac_need_defaults=false;; 17668 --he | --h | --help | --hel | -h ) 17644 --header | --heade | --head | --hea ) 17645 $ac_shift 17646 case $ac_optarg in 17647 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 17648 esac 17649 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 17650 ac_need_defaults=false;; 17651 --he | --h) 17652 # Conflict between --help and --header 17653 as_fn_error $? "ambiguous option: \`$1' 17654 Try \`$0 --help' for more information.";; 17655 --help | --hel | -h ) 17669 17656 $as_echo "$ac_cs_usage"; exit ;; 17670 17657 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ … … 18113 18100 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 18114 18101 "prelude/Makefile") CONFIG_FILES="$CONFIG_FILES prelude/Makefile" ;; 18102 "prelude/defines.hfa") CONFIG_HEADERS="$CONFIG_HEADERS prelude/defines.hfa" ;; 18115 18103 18116 18104 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; … … 18125 18113 if $ac_need_defaults; then 18126 18114 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18115 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18127 18116 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18128 18117 fi … … 18313 18302 fi # test -n "$CONFIG_FILES" 18314 18303 18315 18316 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" 18304 # Set up the scripts for CONFIG_HEADERS section. 18305 # No need to generate them if there are no CONFIG_HEADERS. 18306 # This happens for instance with `./config.status Makefile'. 18307 if test -n "$CONFIG_HEADERS"; then 18308 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 18309 BEGIN { 18310 _ACEOF 18311 18312 # Transform confdefs.h into an awk script `defines.awk', embedded as 18313 # here-document in config.status, that substitutes the proper values into 18314 # config.h.in to produce config.h. 18315 18316 # Create a delimiter string that does not exist in confdefs.h, to ease 18317 # handling of long lines. 18318 ac_delim='%!_!# ' 18319 for ac_last_try in false false :; do 18320 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 18321 if test -z "$ac_tt"; then 18322 break 18323 elif $ac_last_try; then 18324 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 18325 else 18326 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 18327 fi 18328 done 18329 18330 # For the awk script, D is an array of macro values keyed by name, 18331 # likewise P contains macro parameters if any. Preserve backslash 18332 # newline sequences. 18333 18334 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 18335 sed -n ' 18336 s/.\{148\}/&'"$ac_delim"'/g 18337 t rset 18338 :rset 18339 s/^[ ]*#[ ]*define[ ][ ]*/ / 18340 t def 18341 d 18342 :def 18343 s/\\$// 18344 t bsnl 18345 s/["\\]/\\&/g 18346 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18347 D["\1"]=" \3"/p 18348 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 18349 d 18350 :bsnl 18351 s/["\\]/\\&/g 18352 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 18353 D["\1"]=" \3\\\\\\n"\\/p 18354 t cont 18355 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 18356 t cont 18357 d 18358 :cont 18359 n 18360 s/.\{148\}/&'"$ac_delim"'/g 18361 t clear 18362 :clear 18363 s/\\$// 18364 t bsnlc 18365 s/["\\]/\\&/g; s/^/"/; s/$/"/p 18366 d 18367 :bsnlc 18368 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 18369 b cont 18370 ' <confdefs.h | sed ' 18371 s/'"$ac_delim"'/"\\\ 18372 "/g' >>$CONFIG_STATUS || ac_write_fail=1 18373 18374 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18375 for (key in D) D_is_set[key] = 1 18376 FS = "" 18377 } 18378 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 18379 line = \$ 0 18380 split(line, arg, " ") 18381 if (arg[1] == "#") { 18382 defundef = arg[2] 18383 mac1 = arg[3] 18384 } else { 18385 defundef = substr(arg[1], 2) 18386 mac1 = arg[2] 18387 } 18388 split(mac1, mac2, "(") #) 18389 macro = mac2[1] 18390 prefix = substr(line, 1, index(line, defundef) - 1) 18391 if (D_is_set[macro]) { 18392 # Preserve the white space surrounding the "#". 18393 print prefix "define", macro P[macro] D[macro] 18394 next 18395 } else { 18396 # Replace #undef with comments. This is necessary, for example, 18397 # in the case of _POSIX_SOURCE, which is predefined and required 18398 # on some systems where configure will not decide to define it. 18399 if (defundef == "undef") { 18400 print "/*", prefix defundef, macro, "*/" 18401 next 18402 } 18403 } 18404 } 18405 { print } 18406 _ACAWK 18407 _ACEOF 18408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18409 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 18410 fi # test -n "$CONFIG_HEADERS" 18411 18412 18413 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 18317 18414 shift 18318 18415 for ac_tag … … 18533 18630 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18534 18631 ;; 18535 18632 :H) 18633 # 18634 # CONFIG_HEADER 18635 # 18636 if test x"$ac_file" != x-; then 18637 { 18638 $as_echo "/* $configure_input */" \ 18639 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 18640 } >"$ac_tmp/config.h" \ 18641 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18642 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 18643 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 18644 $as_echo "$as_me: $ac_file is unchanged" >&6;} 18645 else 18646 rm -f "$ac_file" 18647 mv "$ac_tmp/config.h" "$ac_file" \ 18648 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 18649 fi 18650 else 18651 $as_echo "/* $configure_input */" \ 18652 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 18653 || as_fn_error $? "could not create -" "$LINENO" 5 18654 fi 18655 # Compute "$ac_file"'s index in $config_headers. 18656 _am_arg="$ac_file" 18657 _am_stamp_count=1 18658 for _am_header in $config_headers :; do 18659 case $_am_header in 18660 $_am_arg | $_am_arg:* ) 18661 break ;; 18662 * ) 18663 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 18664 esac 18665 done 18666 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 18667 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18668 X"$_am_arg" : 'X\(//\)[^/]' \| \ 18669 X"$_am_arg" : 'X\(//\)$' \| \ 18670 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 18671 $as_echo X"$_am_arg" | 18672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18673 s//\1/ 18674 q 18675 } 18676 /^X\(\/\/\)[^/].*/{ 18677 s//\1/ 18678 q 18679 } 18680 /^X\(\/\/\)$/{ 18681 s//\1/ 18682 q 18683 } 18684 /^X\(\/\).*/{ 18685 s//\1/ 18686 q 18687 } 18688 s/.*/./; q'`/stamp-h$_am_stamp_count 18689 ;; 18536 18690 18537 18691 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 -
libcfa/configure.ac
r851fd92 rc680a4b 126 126 ]) 127 127 128 AC_CONFIG_HEADERS(prelude/defines.hfa) 129 128 130 AC_OUTPUT() 129 131 -
libcfa/prelude/Makefile.am
r851fd92 rc680a4b 21 21 # put into lib for now 22 22 cfalibdir = ${CFA_LIBDIR} 23 cfalib_DATA = gcc-builtins.cf builtins.cf extras.cf prelude.cfa bootloader.c 23 cfalib_DATA = gcc-builtins.cf builtins.cf extras.cf prelude.cfa bootloader.c defines.hfa 24 24 25 25 CC = @LOCAL_CFACC@ -
libcfa/prelude/Makefile.in
r851fd92 rc680a4b 104 104 DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) 105 105 mkinstalldirs = $(install_sh) -d 106 CONFIG_HEADER = defines.hfa 106 107 CONFIG_CLEAN_FILES = 107 108 CONFIG_CLEAN_VPATH_FILES = … … 154 155 am__installdirs = "$(DESTDIR)$(cfalibdir)" 155 156 DATA = $(cfalib_DATA) 156 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) 157 am__DIST_COMMON = $(srcdir)/Makefile.in 157 am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ 158 $(LISP)defines.hfa.in 159 # Read a list of newline-separated strings from the standard input, 160 # and print each of them once, without duplicates. Input order is 161 # *not* preserved. 162 am__uniquify_input = $(AWK) '\ 163 BEGIN { nonempty = 0; } \ 164 { items[$$0] = 1; nonempty = 1; } \ 165 END { if (nonempty) { for (i in items) print i; }; } \ 166 ' 167 # Make sure the list of sources is unique. This is necessary because, 168 # e.g., the same source file might be shared among _SOURCES variables 169 # for different programs/libraries. 170 am__define_uniq_tagged_files = \ 171 list='$(am__tagged_files)'; \ 172 unique=`for i in $$list; do \ 173 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ 174 done | $(am__uniquify_input)` 175 ETAGS = etags 176 CTAGS = ctags 177 am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/defines.hfa.in 158 178 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) 159 179 ACLOCAL = @ACLOCAL@ … … 306 326 # put into lib for now 307 327 cfalibdir = ${CFA_LIBDIR} 308 cfalib_DATA = gcc-builtins.cf builtins.cf extras.cf prelude.cfa bootloader.c 328 cfalib_DATA = gcc-builtins.cf builtins.cf extras.cf prelude.cfa bootloader.c defines.hfa 309 329 AM_CFLAGS = -g -Wall -Wno-unused-function -fPIC @ARCH_FLAGS@ @CONFIG_CFLAGS@ 310 330 AM_CFAFLAGS = @CONFIG_CFAFLAGS@ 311 331 MOSTLYCLEANFILES = bootloader.c builtins.cf extras.cf gcc-builtins.c gcc-builtins.cf prelude.cfa 312 332 MAINTAINERCLEANFILES = ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}} 313 all: all-am 333 all: defines.hfa 334 $(MAKE) $(AM_MAKEFLAGS) all-am 314 335 315 336 .SUFFIXES: … … 344 365 $(am__aclocal_m4_deps): 345 366 367 defines.hfa: stamp-h1 368 @test -f $@ || rm -f stamp-h1 369 @test -f $@ || $(MAKE) $(AM_MAKEFLAGS) stamp-h1 370 371 stamp-h1: $(srcdir)/defines.hfa.in $(top_builddir)/config.status 372 @rm -f stamp-h1 373 cd $(top_builddir) && $(SHELL) ./config.status prelude/defines.hfa 374 $(srcdir)/defines.hfa.in: $(am__configure_deps) 375 ($(am__cd) $(top_srcdir) && $(AUTOHEADER)) 376 rm -f stamp-h1 377 touch $@ 378 379 distclean-hdr: 380 -rm -f defines.hfa stamp-h1 381 346 382 mostlyclean-libtool: 347 383 -rm -f *.lo … … 370 406 files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ 371 407 dir='$(DESTDIR)$(cfalibdir)'; $(am__uninstall_files_from_dir) 372 tags TAGS: 373 374 ctags CTAGS: 375 376 cscope cscopelist: 377 408 409 ID: $(am__tagged_files) 410 $(am__define_uniq_tagged_files); mkid -fID $$unique 411 tags: tags-am 412 TAGS: tags 413 414 tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) 415 set x; \ 416 here=`pwd`; \ 417 $(am__define_uniq_tagged_files); \ 418 shift; \ 419 if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ 420 test -n "$$unique" || unique=$$empty_fix; \ 421 if test $$# -gt 0; then \ 422 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 423 "$$@" $$unique; \ 424 else \ 425 $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ 426 $$unique; \ 427 fi; \ 428 fi 429 ctags: ctags-am 430 431 CTAGS: ctags 432 ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files) 433 $(am__define_uniq_tagged_files); \ 434 test -z "$(CTAGS_ARGS)$$unique" \ 435 || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ 436 $$unique 437 438 GTAGS: 439 here=`$(am__cd) $(top_builddir) && pwd` \ 440 && $(am__cd) $(top_srcdir) \ 441 && gtags -i $(GTAGS_ARGS) "$$here" 442 cscopelist: cscopelist-am 443 444 cscopelist-am: $(am__tagged_files) 445 list='$(am__tagged_files)'; \ 446 case "$(srcdir)" in \ 447 [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ 448 *) sdir=$(subdir)/$(srcdir) ;; \ 449 esac; \ 450 for i in $$list; do \ 451 if test -f "$$i"; then \ 452 echo "$(subdir)/$$i"; \ 453 else \ 454 echo "$$sdir/$$i"; \ 455 fi; \ 456 done >> $(top_builddir)/cscope.files 457 458 distclean-tags: 459 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags 378 460 379 461 distdir: $(DISTFILES) … … 409 491 check-am: all-am 410 492 check: check-am 411 all-am: Makefile $(DATA) 493 all-am: Makefile $(DATA) defines.hfa 412 494 installdirs: 413 495 for dir in "$(DESTDIR)$(cfalibdir)"; do \ … … 452 534 distclean: distclean-am 453 535 -rm -f Makefile 454 distclean-am: clean-am distclean-generic 536 distclean-am: clean-am distclean-generic distclean-hdr distclean-tags 455 537 456 538 dvi: dvi-am … … 513 595 uninstall-am: uninstall-cfalibDATA 514 596 515 .MAKE: install-am install-strip 516 517 .PHONY: all all-am check check-am clean clean-generic clean-libtool \ 518 cscopelist-am ctags-am distclean distclean-generic \ 519 distclean-libtool distdir dvi dvi-am html html-am info info-am \ 597 .MAKE: all install-am install-strip 598 599 .PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \ 600 clean-libtool cscopelist-am ctags ctags-am distclean \ 601 distclean-generic distclean-hdr distclean-libtool \ 602 distclean-tags distdir dvi dvi-am html html-am info info-am \ 520 603 install install-am install-cfalibDATA install-data \ 521 604 install-data-am install-dvi install-dvi-am install-exec \ … … 526 609 maintainer-clean-generic maintainer-clean-local mostlyclean \ 527 610 mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ 528 tags -am uninstall uninstall-am uninstall-cfalibDATA611 tags tags-am uninstall uninstall-am uninstall-cfalibDATA 529 612 530 613 .PRECIOUS: Makefile -
libcfa/src/Makefile.in
r851fd92 rc680a4b 105 105 $(am__nobase_cfa_include_HEADERS_DIST) $(am__DIST_COMMON) 106 106 mkinstalldirs = $(install_sh) -d 107 CONFIG_HEADER = $(top_builddir)/prelude/defines.hfa 107 108 CONFIG_CLEAN_FILES = 108 109 CONFIG_CLEAN_VPATH_FILES = … … 194 195 am__v_at_0 = @ 195 196 am__v_at_1 = 196 DEFAULT_INCLUDES = -I.@am__isrc@ 197 DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/prelude 197 198 depcomp = $(SHELL) $(top_srcdir)/automake/depcomp 198 199 am__depfiles_maybe = depfiles -
tools/build/push2dist.sh
r851fd92 rc680a4b 19 19 # echo "Copying to machines : ${hosts} (hash=${hash})" 20 20 21 files="../../../driver/cfa ../../../driver/cfa-cpp ../../../driver/cc1 ../../../driver/as $(find . -name '*.c*' | tr '\n' ' ')"21 files="../../../driver/cfa ../../../driver/cfa-cpp ../../../driver/cc1 ../../../driver/as defines.hfa $(find . -name '*.c*' | tr '\n' ' ')" 22 22 # echo "Files ${files}" 23 23
Note: See TracChangeset
for help on using the changeset viewer.