Changes in / [fcf041c:ed0e67a]
- Location:
- src
- Files:
-
- 6 edited
-
driver/cfa.cc (modified) (1 diff)
-
libcfa/Makefile.am (modified) (2 diffs)
-
libcfa/Makefile.in (modified) (2 diffs)
-
tests/.expect/gccExtensions.txt (modified) (1 diff)
-
tests/Makefile.am (modified) (1 diff)
-
tests/Makefile.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/driver/cfa.cc
rfcf041c red0e67a 88 88 bool std_flag = false; // -std= flag 89 89 bool debugging = false; // -g flag 90 (void) debugging; // remove unused variable warning91 90 92 91 const char *args[argc + 100]; // cfa command line values, plus some space for additional flags -
src/libcfa/Makefile.am
rfcf041c red0e67a 26 26 # create extra forward types/declarations to reduce inclusion of library files 27 27 extras.cf : extras.regx extras.c 28 $(AM_V_GEN)@BACKEND_CC@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf28 @BACKEND_CC@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf 29 29 30 30 # create forward declarations for gcc builtins 31 31 builtins.cf : builtins.c 32 $(AM_V_GEN)if [ -e $< ] ; then \32 if [ -e $< ] ; then \ 33 33 @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ ; \ 34 34 fi 35 35 36 36 builtins.c : builtins.def prototypes.awk 37 $(AM_V_GEN)if [ -e $< ] ; then \37 if [ -e $< ] ; then \ 38 38 @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ ; \ 39 39 fi … … 48 48 49 49 libcfa-prelude.c : ${srcdir}/prelude.cf ${srcdir}/extras.cf ${srcdir}/builtins.cf 50 $ (AM_V_GEN)${abs_top_srcdir}/src/driver/cfa-cpp -l ${srcdir}/prelude.cf $@ # use src/cfa-cpp as not in lib until after install50 ${abs_top_srcdir}/src/driver/cfa-cpp -l ${srcdir}/prelude.cf $@ # use src/cfa-cpp as not in lib until after install 51 51 52 52 libcfa-prelude.o : libcfa-prelude.c 53 $(AM_V_GEN)@BACKEND_CC@ -c -o $@ $<53 @BACKEND_CC@ -c -o $@ $< 54 54 55 55 CFLAGS = -quiet -g -Wall -Wno-unused-function -B${abs_top_srcdir}/src/driver -XCFA -t # TEMPORARY: does not build with -O2 -
src/libcfa/Makefile.in
rfcf041c red0e67a 602 602 # create extra forward types/declarations to reduce inclusion of library files 603 603 extras.cf : extras.regx extras.c 604 $(AM_V_GEN)@BACKEND_CC@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf604 @BACKEND_CC@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf 605 605 606 606 # create forward declarations for gcc builtins 607 607 builtins.cf : builtins.c 608 $(AM_V_GEN)if [ -e $< ] ; then \608 if [ -e $< ] ; then \ 609 609 @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ ; \ 610 610 fi 611 611 612 612 builtins.c : builtins.def prototypes.awk 613 $(AM_V_GEN)if [ -e $< ] ; then \613 if [ -e $< ] ; then \ 614 614 @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ ; \ 615 615 fi … … 622 622 623 623 libcfa-prelude.c : ${srcdir}/prelude.cf ${srcdir}/extras.cf ${srcdir}/builtins.cf 624 $ (AM_V_GEN)${abs_top_srcdir}/src/driver/cfa-cpp -l ${srcdir}/prelude.cf $@ # use src/cfa-cpp as not in lib until after install624 ${abs_top_srcdir}/src/driver/cfa-cpp -l ${srcdir}/prelude.cf $@ # use src/cfa-cpp as not in lib until after install 625 625 626 626 libcfa-prelude.o : libcfa-prelude.c 627 $(AM_V_GEN)@BACKEND_CC@ -c -o $@ $<627 @BACKEND_CC@ -c -o $@ $< 628 628 629 629 # extensionless header files are overridden by -o flag in default makerule => explicitly override default rule to silently do nothing -
src/tests/.expect/gccExtensions.txt
rfcf041c red0e67a 1 extern void abort(void);2 extern int atexit(void (*__func)(void));3 extern void exit(int __status);4 int main(int __argc__i_1, const char **__argv__PPCc_1){5 asm ( "nop" : : : );6 asm ( "nop" : : : );7 asm ( "nop" : : : );8 double _Complex __c1__Xd_2;9 double _Complex __c2__Xd_2;10 const int __i1__Ci_2;11 const int __i2__Ci_2;12 const int __i3__Ci_2;13 __extension__ const int __ex__Ci_2;14 struct S {15 __extension__ int __a__i_2;16 __extension__ int __b__i_2;17 __extension__ int __c__i_2;18 };19 inline struct S ___operator_assign__F2sS_P2sS2sS_autogen___2(struct S *___dst__P2sS_2, struct S ___src__2sS_2){20 ((void)((*___dst__P2sS_2).__a__i_2=___src__2sS_2.__a__i_2));21 ((void)((*___dst__P2sS_2).__b__i_2=___src__2sS_2.__b__i_2));22 ((void)((*___dst__P2sS_2).__c__i_2=___src__2sS_2.__c__i_2));23 return ((struct S )___src__2sS_2);24 }25 inline void ___constructor__F_P2sS_autogen___2(struct S *___dst__P2sS_2){26 ((void)((*___dst__P2sS_2).__a__i_2) /* ?{} */);27 ((void)((*___dst__P2sS_2).__b__i_2) /* ?{} */);28 ((void)((*___dst__P2sS_2).__c__i_2) /* ?{} */);29 }30 inline void ___constructor__F_P2sS2sS_autogen___2(struct S *___dst__P2sS_2, struct S ___src__2sS_2){31 ((void)((*___dst__P2sS_2).__a__i_2=___src__2sS_2.__a__i_2) /* ?{} */);32 ((void)((*___dst__P2sS_2).__b__i_2=___src__2sS_2.__b__i_2) /* ?{} */);33 ((void)((*___dst__P2sS_2).__c__i_2=___src__2sS_2.__c__i_2) /* ?{} */);34 }35 inline void ___destructor__F_P2sS_autogen___2(struct S *___dst__P2sS_2){36 ((void)((*___dst__P2sS_2).__c__i_2) /* ^?{} */);37 ((void)((*___dst__P2sS_2).__b__i_2) /* ^?{} */);38 ((void)((*___dst__P2sS_2).__a__i_2) /* ^?{} */);39 }40 inline void ___constructor__F_P2sSi_autogen___2(struct S *___dst__P2sS_2, int __a__i_2){41 ((void)((*___dst__P2sS_2).__a__i_2=__a__i_2) /* ?{} */);42 ((void)((*___dst__P2sS_2).__b__i_2) /* ?{} */);43 ((void)((*___dst__P2sS_2).__c__i_2) /* ?{} */);44 }45 inline void ___constructor__F_P2sSii_autogen___2(struct S *___dst__P2sS_2, int __a__i_2, int __b__i_2){46 ((void)((*___dst__P2sS_2).__a__i_2=__a__i_2) /* ?{} */);47 ((void)((*___dst__P2sS_2).__b__i_2=__b__i_2) /* ?{} */);48 ((void)((*___dst__P2sS_2).__c__i_2) /* ?{} */);49 }50 inline void ___constructor__F_P2sSiii_autogen___2(struct S *___dst__P2sS_2, int __a__i_2, int __b__i_2, int __c__i_2){51 ((void)((*___dst__P2sS_2).__a__i_2=__a__i_2) /* ?{} */);52 ((void)((*___dst__P2sS_2).__b__i_2=__b__i_2) /* ?{} */);53 ((void)((*___dst__P2sS_2).__c__i_2=__c__i_2) /* ?{} */);54 }55 int __i__i_2;56 ((void)((*((int *)(&__i__i_2)))=__extension__ 3) /* ?{} */);57 __extension__ int __a__i_2;58 __extension__ int __b__i_2;59 __extension__ int __c__i_2;60 ((void)((__extension__ __a__i_2 , __extension__ __b__i_2) , __extension__ __c__i_2));61 ((void)(__extension__ __a__i_2=(__extension__ __b__i_2+__extension__ __c__i_2)));62 ((void)(__extension__ __a__i_2=__extension__ (__extension__ __b__i_2+__extension__ __c__i_2)));63 inline int __f1__Fi___2(){64 }65 inline int __f2__Fi___2(){66 }67 int __s1__i_2;68 int __s2__i_2;69 int __t1___2;70 int __t2___2;71 volatile int __v1__Vi_2;72 volatile int __v2__Vi_2;73 int __a1__i_2;74 const int __a2__Ci_2;75 static const int __a3__Ci_2;76 static const int __a4__Ci_2;77 static const int __a5__Ci_2;78 static const int __a6__Ci_2;79 static const int __a7__Ci_2;80 int *__p1__Pi_2;81 int *__p2__Pi_2;82 struct s1;83 struct s2 {84 int __i__i_2;85 };86 inline struct s2 ___operator_assign__F3ss2_P3ss23ss2_autogen___2(struct s2 *___dst__P3ss2_2, struct s2 ___src__3ss2_2){87 ((void)((*___dst__P3ss2_2).__i__i_2=___src__3ss2_2.__i__i_2));88 return ((struct s2 )___src__3ss2_2);89 }90 inline void ___constructor__F_P3ss2_autogen___2(struct s2 *___dst__P3ss2_2){91 ((void)((*___dst__P3ss2_2).__i__i_2) /* ?{} */);92 }93 inline void ___constructor__F_P3ss23ss2_autogen___2(struct s2 *___dst__P3ss2_2, struct s2 ___src__3ss2_2){94 ((void)((*___dst__P3ss2_2).__i__i_2=___src__3ss2_2.__i__i_2) /* ?{} */);95 }96 inline void ___destructor__F_P3ss2_autogen___2(struct s2 *___dst__P3ss2_2){97 ((void)((*___dst__P3ss2_2).__i__i_2) /* ^?{} */);98 }99 inline void ___constructor__F_P3ss2i_autogen___2(struct s2 *___dst__P3ss2_2, int __i__i_2){100 ((void)((*___dst__P3ss2_2).__i__i_2=__i__i_2) /* ?{} */);101 }102 struct s3 {103 int __i__i_2;104 };105 inline struct s3 ___operator_assign__F3ss3_P3ss33ss3_autogen___2(struct s3 *___dst__P3ss3_2, struct s3 ___src__3ss3_2){106 ((void)((*___dst__P3ss3_2).__i__i_2=___src__3ss3_2.__i__i_2));107 return ((struct s3 )___src__3ss3_2);108 }109 inline void ___constructor__F_P3ss3_autogen___2(struct s3 *___dst__P3ss3_2){110 ((void)((*___dst__P3ss3_2).__i__i_2) /* ?{} */);111 }112 inline void ___constructor__F_P3ss33ss3_autogen___2(struct s3 *___dst__P3ss3_2, struct s3 ___src__3ss3_2){113 ((void)((*___dst__P3ss3_2).__i__i_2=___src__3ss3_2.__i__i_2) /* ?{} */);114 }115 inline void ___destructor__F_P3ss3_autogen___2(struct s3 *___dst__P3ss3_2){116 ((void)((*___dst__P3ss3_2).__i__i_2) /* ^?{} */);117 }118 inline void ___constructor__F_P3ss3i_autogen___2(struct s3 *___dst__P3ss3_2, int __i__i_2){119 ((void)((*___dst__P3ss3_2).__i__i_2=__i__i_2) /* ?{} */);120 }121 struct s3 __x1__3ss3_2;122 ((void)___constructor__F_P3ss3_autogen___2(((struct s3 *)(&__x1__3ss3_2))));123 struct s3 __y1__3ss3_2;124 ((void)___constructor__F_P3ss3_autogen___2(((struct s3 *)(&__y1__3ss3_2))));125 struct s4 {126 int __i__i_2;127 };128 inline struct s4 ___operator_assign__F3ss4_P3ss43ss4_autogen___2(struct s4 *___dst__P3ss4_2, struct s4 ___src__3ss4_2){129 ((void)((*___dst__P3ss4_2).__i__i_2=___src__3ss4_2.__i__i_2));130 ((void)___destructor__F_P3ss3_autogen___2(((struct s3 *)(&__y1__3ss3_2))));131 ((void)___destructor__F_P3ss3_autogen___2(((struct s3 *)(&__x1__3ss3_2))));132 return ((struct s4 )___src__3ss4_2);133 }134 inline void ___constructor__F_P3ss4_autogen___2(struct s4 *___dst__P3ss4_2){135 ((void)((*___dst__P3ss4_2).__i__i_2) /* ?{} */);136 }137 inline void ___constructor__F_P3ss43ss4_autogen___2(struct s4 *___dst__P3ss4_2, struct s4 ___src__3ss4_2){138 ((void)((*___dst__P3ss4_2).__i__i_2=___src__3ss4_2.__i__i_2) /* ?{} */);139 }140 inline void ___destructor__F_P3ss4_autogen___2(struct s4 *___dst__P3ss4_2){141 ((void)((*___dst__P3ss4_2).__i__i_2) /* ^?{} */);142 }143 inline void ___constructor__F_P3ss4i_autogen___2(struct s4 *___dst__P3ss4_2, int __i__i_2){144 ((void)((*___dst__P3ss4_2).__i__i_2=__i__i_2) /* ?{} */);145 }146 struct s4 __x2__3ss4_2;147 ((void)___constructor__F_P3ss4_autogen___2(((struct s4 *)(&__x2__3ss4_2))));148 struct s4 __y2__3ss4_2;149 ((void)___constructor__F_P3ss4_autogen___2(((struct s4 *)(&__y2__3ss4_2))));150 int __m1__A0i_2[((long unsigned int )10)];151 int __m2__A0A0i_2[((long unsigned int )10)][((long unsigned int )10)];152 int __m3__A0A0i_2[((long unsigned int )10)][((long unsigned int )10)];153 int _retVal0 = { 0 };154 ((void)(_retVal0=0) /* ?{} */);155 ((void)___destructor__F_P3ss4_autogen___2(((struct s4 *)(&__y2__3ss4_2))));156 ((void)___destructor__F_P3ss4_autogen___2(((struct s4 *)(&__x2__3ss4_2))));157 ((void)___destructor__F_P3ss3_autogen___2(((struct s3 *)(&__y1__3ss3_2))));158 ((void)___destructor__F_P3ss3_autogen___2(((struct s3 *)(&__x1__3ss3_2))));159 return ((int )_retVal0);160 ((void)___destructor__F_P3ss4_autogen___2(((struct s4 *)(&__y2__3ss4_2))));161 ((void)___destructor__F_P3ss4_autogen___2(((struct s4 *)(&__x2__3ss4_2))));162 ((void)___destructor__F_P3ss3_autogen___2(((struct s3 *)(&__y1__3ss3_2))));163 ((void)___destructor__F_P3ss3_autogen___2(((struct s3 *)(&__x1__3ss3_2))));164 } -
src/tests/Makefile.am
rfcf041c red0e67a 53 53 ${CC} ${CFLAGS} -DERR2 ${<} -o ${@} 54 54 55 gccExtensions : gccExtensions.c56 ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@} -
src/tests/Makefile.in
rfcf041c red0e67a 660 660 ${CC} ${CFLAGS} -DERR2 ${<} -o ${@} 661 661 662 gccExtensions : gccExtensions.c663 ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}664 665 662 # Tell versions [3.59,3.63) of GNU make to not export all variables. 666 663 # Otherwise a system limit (for SysV at least) may be exceeded.
Note:
See TracChangeset
for help on using the changeset viewer.