Changes in / [fcf041c:ed0e67a]


Ignore:
Location:
src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • src/driver/cfa.cc

    rfcf041c red0e67a  
    8888        bool std_flag = false;                                                          // -std= flag
    8989        bool debugging = false;                                                         // -g flag
    90         (void) debugging;                                                               // remove unused variable warning
    9190
    9291        const char *args[argc + 100];                                           // cfa command line values, plus some space for additional flags
  • src/libcfa/Makefile.am

    rfcf041c red0e67a  
    2626# create extra forward types/declarations to reduce inclusion of library files
    2727extras.cf : extras.regx extras.c
    28         $(AM_V_GEN)@BACKEND_CC@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf
     28        @BACKEND_CC@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf
    2929
    3030# create forward declarations for gcc builtins
    3131builtins.cf : builtins.c
    32         $(AM_V_GEN)if [ -e $< ] ; then \
     32        if [ -e $< ] ; then \
    3333                @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ ; \
    3434        fi
    3535
    3636builtins.c : builtins.def prototypes.awk
    37         $(AM_V_GEN)if [ -e $< ] ; then \
     37        if [ -e $< ] ; then \
    3838                @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ ; \
    3939        fi
     
    4848
    4949libcfa-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 install
     50        ${abs_top_srcdir}/src/driver/cfa-cpp -l ${srcdir}/prelude.cf $@  # use src/cfa-cpp as not in lib until after install
    5151
    5252libcfa-prelude.o : libcfa-prelude.c
    53          $(AM_V_GEN)@BACKEND_CC@ -c -o $@ $<
     53        @BACKEND_CC@ -c -o $@ $<
    5454
    5555CFLAGS = -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  
    602602# create extra forward types/declarations to reduce inclusion of library files
    603603extras.cf : extras.regx extras.c
    604         $(AM_V_GEN)@BACKEND_CC@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf
     604        @BACKEND_CC@ -E ${srcdir}/extras.c | grep -f extras.regx > ${srcdir}/extras.cf
    605605
    606606# create forward declarations for gcc builtins
    607607builtins.cf : builtins.c
    608         $(AM_V_GEN)if [ -e $< ] ; then \
     608        if [ -e $< ] ; then \
    609609                @BACKEND_CC@ -E -P $^ | sed -e "/targetm/s/.*//" -e "/_Decimal/s/.*//" -e "s/void (const char \*)0();//" -e "s/\"//g" -e "s/\(__builtin_\) /\1/" > $@ ; \
    610610        fi
    611611
    612612builtins.c : builtins.def prototypes.awk
    613         $(AM_V_GEN)if [ -e $< ] ; then \
     613        if [ -e $< ] ; then \
    614614                @BACKEND_CC@ -E prototypes.c | awk -f prototypes.awk > $@ ; \
    615615        fi
     
    622622
    623623libcfa-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 install
     624        ${abs_top_srcdir}/src/driver/cfa-cpp -l ${srcdir}/prelude.cf $@  # use src/cfa-cpp as not in lib until after install
    625625
    626626libcfa-prelude.o : libcfa-prelude.c
    627          $(AM_V_GEN)@BACKEND_CC@ -c -o $@ $<
     627        @BACKEND_CC@ -c -o $@ $<
    628628
    629629# 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  
    5353        ${CC} ${CFLAGS} -DERR2 ${<} -o ${@}
    5454
    55 gccExtensions : gccExtensions.c
    56         ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
  • src/tests/Makefile.in

    rfcf041c red0e67a  
    660660        ${CC} ${CFLAGS} -DERR2 ${<} -o ${@}
    661661
    662 gccExtensions : gccExtensions.c
    663         ${CC} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
    664 
    665662# Tell versions [3.59,3.63) of GNU make to not export all variables.
    666663# Otherwise a system limit (for SysV at least) may be exceeded.
Note: See TracChangeset for help on using the changeset viewer.