Changeset be3f163
- Timestamp:
- Nov 1, 2023, 10:03:59 PM (14 months ago)
- Branches:
- master
- Children:
- 5ad24a2c
- Parents:
- fa761c2
- Files:
-
- 4 edited
- 3 moved
Legend:
- Unmodified
- Added
- Removed
-
libcfa/prelude/Makefile.am
rfa761c2 rbe3f163 11 11 ## Created On : Sun May 31 08:54:01 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Thu Jan 13 17:06:27 202214 ## Update Count : 2 1513 ## Last Modified On : Wed Nov 1 21:09:25 2023 14 ## Update Count : 221 15 15 ############################################################################### 16 16 … … 21 21 # put into lib for now 22 22 cfalibdir = ${CFA_LIBDIR} 23 cfalib_DATA = gcc-builtins.cf builtins.cf extras.cfprelude.cfa bootloader.c defines.hfa23 cfalib_DATA = gcc-builtins.cfa builtins.cfa extras.cfa prelude.cfa bootloader.c defines.hfa 24 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.cf25 EXTRA_DIST = bootloader.cfa builtins.c builtins.def extras.c extras.regx extras.regx2 prelude-gen.cc prototypes.awk prototypes.c prototypes.sed sync-builtins.cfa 26 26 27 27 CC = @LOCAL_CFACC@ … … 36 36 37 37 # create extra forward types/declarations to reduce inclusion of library files 38 extras.cf : ${srcdir}/extras.regx ${srcdir}/extras.c38 extras.cfa : ${srcdir}/extras.regx ${srcdir}/extras.c 39 39 @echo '# 2 "${@}" // needed for error messages from this file' > ${@} 40 40 ${AM_V_GEN}gcc ${AM_CFLAGS} -E ${srcdir}/extras.c | grep -f ${srcdir}/extras.regx >> ${@} … … 42 42 43 43 # create forward declarations for gcc builtins 44 gcc-builtins.cf : gcc-builtins.c ${srcdir}/prototypes.sed44 gcc-builtins.cfa : gcc-builtins.c ${srcdir}/prototypes.sed 45 45 @echo '# 2 "${@}" // needed for error messages from this file' > ${@} 46 46 ${AM_V_GEN}gcc -I${srcdir} -E -P $< | sed -r -f ${srcdir}/prototypes.sed >> ${@} 47 47 48 gcc-builtins.c : ${srcdir}/builtins.def ${srcdir}/prototypes.awk ${srcdir}/sync-builtins.cf ${srcdir}/prototypes.c48 gcc-builtins.c : ${srcdir}/builtins.def ${srcdir}/prototypes.awk ${srcdir}/sync-builtins.cfa ${srcdir}/prototypes.c 49 49 ${AM_V_GEN}gcc -I${srcdir} -E ${srcdir}/prototypes.c | awk -f ${srcdir}/prototypes.awk > ${@} 50 50 … … 59 59 60 60 # create forward declarations for cfa builtins 61 builtins.cf : builtins.c @LOCAL_CFACC@61 builtins.cfa : builtins.c @LOCAL_CFACC@ 62 62 ${AM_V_GEN}gcc ${AM_CFLAGS} -E ${<} -o ${@} -MD -MP -MF $(DEPDIR)/builtins.Po -D__cforall 63 ${AM_V_at}sed -i 's/builtins.o/builtins.cf /g' $(DEPDIR)/builtins.Po63 ${AM_V_at}sed -i 's/builtins.o/builtins.cfa/g' $(DEPDIR)/builtins.Po 64 64 65 65 include $(DEPDIR)/builtins.Po 66 66 67 bootloader.c : ${srcdir}/bootloader.cf prelude.cfa extras.cf gcc-builtins.cf builtins.cf@CFACPP@68 ${AM_V_GEN}@CFACPP@ --prelude-dir=${builddir} -tpm ${srcdir}/bootloader.cf ${@} # use src/cfa-cpp as not in lib until after install67 bootloader.c : ${srcdir}/bootloader.cfa prelude.cfa extras.cfa gcc-builtins.cfa builtins.cfa @CFACPP@ 68 ${AM_V_GEN}@CFACPP@ --prelude-dir=${builddir} -tpm ${srcdir}/bootloader.cfa ${@} # use src/cfa-cpp as not in lib until after install 69 69 70 70 maintainer-clean-local : 71 71 rm -rf $(DEPDIR) 72 72 73 MOSTLYCLEANFILES = bootloader.c builtins.cf extras.cf gcc-builtins.c gcc-builtins.cfprelude.cfa73 MOSTLYCLEANFILES = bootloader.c builtins.cfa extras.cfa gcc-builtins.c gcc-builtins.cfa prelude.cfa 74 74 DISTCLEANFILES = $(DEPDIR)/builtins.Po 75 75 MAINTAINERCLEANFILES = ${addprefix ${libdir}/,${cfalib_DATA}} ${addprefix ${libdir}/,${lib_LIBRARIES}} 76 76 77 77 if ENABLE_DISTCC 78 distribution: @LOCAL_CFACC@ @LOCAL_CC1@ @CFACPP@ defines.hfa gcc-builtins.cf builtins.cf extras.cfprelude.cfa bootloader.c $(srcdir)/../../tools/build/push2dist.sh78 distribution: @LOCAL_CFACC@ @LOCAL_CC1@ @CFACPP@ defines.hfa gcc-builtins.cfa builtins.cfa extras.cfa prelude.cfa bootloader.c $(srcdir)/../../tools/build/push2dist.sh 79 79 ${AM_V_GEN}$(srcdir)/../../tools/build/push2dist.sh @CFADIR_HASH@ @DIST_BWLIMIT@ 80 80 @echo "Dummy file to track distribution to remote hosts" > ${@} -
libcfa/prelude/prototypes.awk
rfa761c2 rbe3f163 10 10 # Created On : Sat May 16 07:57:37 2015 11 11 # Last Modified By : Peter A. Buhr 12 # Last Modified On : Sat Feb 8 09:46:58 202013 # Update Count : 3 612 # Last Modified On : Wed Nov 1 20:44:04 2023 13 # Update Count : 37 14 14 # 15 15 … … 150 150 # extras 151 151 printf( "\n#include \"builtins.def\"\n\n" ); 152 printf( "\n#include \"sync-builtins.cf \"\n\n" );152 printf( "\n#include \"sync-builtins.cfa\"\n\n" ); 153 153 printf( "extern const char *__PRETTY_FUNCTION__;\n" ); 154 154 printf( "float _Complex __builtin_complex( float, float );\n" ); -
libcfa/src/Makefile.am
rfa761c2 rbe3f163 11 11 ## Created On : Sun May 31 08:54:01 2015 12 12 ## Last Modified By : Peter A. Buhr 13 ## Last Modified On : Mon Sep 18 17:06:56202314 ## Update Count : 26 413 ## Last Modified On : Wed Nov 1 19:03:42 2023 14 ## Update Count : 266 15 15 ############################################################################### 16 16 … … 195 195 if ENABLE_DISTCC 196 196 197 ../prelude/distribution: @LOCAL_CFACC@ @LOCAL_CC1@ @CFACPP@ ../prelude/defines.hfa ../prelude/gcc-builtins.cf ../prelude/builtins.cf ../prelude/extras.cf../prelude/prelude.cfa ../prelude/bootloader.c $(srcdir)/../../tools/build/push2dist.sh197 ../prelude/distribution: @LOCAL_CFACC@ @LOCAL_CC1@ @CFACPP@ ../prelude/defines.hfa ../prelude/gcc-builtins.cfa ../prelude/builtins.cfa ../prelude/extras.cfa ../prelude/prelude.cfa ../prelude/bootloader.c $(srcdir)/../../tools/build/push2dist.sh 198 198 @+make -C ../prelude distribution 199 199 … … 202 202 endif ENABLE_DISTCC 203 203 204 prelude.o : prelude.cfa extras.cf gcc-builtins.cf builtins.cf@LOCAL_CFACC@ @CFACPP@204 prelude.o : prelude.cfa extras.cfa gcc-builtins.cfa builtins.cfa @LOCAL_CFACC@ @CFACPP@ 205 205 ${AM_V_GEN}$(CFACOMPILE) -quiet -XCFA,-l ${<} -c -fvisibility=default -o ${@} 206 206 207 prelude.lo: prelude.cfa extras.cf gcc-builtins.cf builtins.cf@LOCAL_CFACC@ @CFACPP@207 prelude.lo: prelude.cfa extras.cfa gcc-builtins.cfa builtins.cfa @LOCAL_CFACC@ @CFACPP@ 208 208 ${AM_V_GEN}$(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile \ 209 209 $(CFACOMPILE) -quiet -XCFA,-l ${<} -c -fvisibility=default -o ${@} -
src/main.cc
rfa761c2 rbe3f163 10 10 // Created On : Fri May 15 23:12:02 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Sep 28 22:28:45202313 // Update Count : 6 8712 // Last Modified On : Wed Nov 1 21:12:58 2023 13 // Update Count : 690 14 14 // 15 15 … … 289 289 290 290 // Read to gcc builtins, if not generating the cfa library 291 FILE * gcc_builtins = fopen( (PreludeDirector + "/gcc-builtins.cf ").c_str(), "r" );291 FILE * gcc_builtins = fopen( (PreludeDirector + "/gcc-builtins.cfa").c_str(), "r" ); 292 292 assertf( gcc_builtins, "cannot open gcc-builtins.cf\n" ); 293 293 parse( gcc_builtins, ast::Linkage::Compiler ); 294 294 295 295 // read the extra prelude in, if not generating the cfa library 296 FILE * extras = fopen( (PreludeDirector + "/extras.cf ").c_str(), "r" );296 FILE * extras = fopen( (PreludeDirector + "/extras.cfa").c_str(), "r" ); 297 297 assertf( extras, "cannot open extras.cf\n" ); 298 298 parse( extras, ast::Linkage::BuiltinC ); … … 305 305 306 306 // Read to cfa builtins, if not generating the cfa library 307 FILE * builtins = fopen( (PreludeDirector + "/builtins.cf ").c_str(), "r" );307 FILE * builtins = fopen( (PreludeDirector + "/builtins.cfa").c_str(), "r" ); 308 308 assertf( builtins, "cannot open builtins.cf\n" ); 309 309 parse( builtins, ast::Linkage::BuiltinCFA ); … … 431 431 PASS( "Code Gen", CodeGen::generate, transUnit, *output, !genproto, prettycodegenp, true, linemarks, false ); 432 432 433 CodeGen::FixMain::fix( transUnit, *output, 434 (PreludeDirector + "/bootloader.c").c_str() ); 433 CodeGen::FixMain::fix( transUnit, *output, (PreludeDirector + "/bootloader.c").c_str() ); 435 434 if ( output != &cout ) { 436 435 delete output;
Note: See TracChangeset
for help on using the changeset viewer.