Changeset 66f8528 for src/driver


Ignore:
Timestamp:
Dec 15, 2016, 5:16:42 PM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
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, stuck-waitfor-destruct, with_gc
Children:
43385ca, f7ff3fb
Parents:
5802a4f (diff), 596f987b (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.
Message:

Merge branch 'master' into tuples

Conflicts:

src/ResolvExpr/CommonType.cc
src/tests/.expect/32/extension.txt
src/tests/.expect/32/gccExtensions.txt
src/tests/.expect/64/declarationSpecifier.txt
src/tests/.expect/64/extension.txt
src/tests/.expect/64/gccExtensions.txt
src/tests/.expect/castError.txt
src/tests/Makefile.am

Location:
src/driver
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/driver/Makefile.am

    r5802a4f r66f8528  
    1616
    1717# applies to both programs
    18 AM_CXXFLAGS = -Wall
     18AM_CXXFLAGS = -Wall -O2
     19if BUILD_NO_LIB
     20else
     21AM_CXXFLAGS += -DHAVE_LIBCFA
     22endif
     23if BUILD_DEBUG
     24AM_CXXFLAGS += -DHAVE_LIBCFA_DEBUG
     25endif
     26if BUILD_RELEASE
     27AM_CXXFLAGS += -DHAVE_LIBCFA_RELEASE
     28endif
    1929
    2030bin_PROGRAMS = cfa
  • src/driver/Makefile.in

    r5802a4f r66f8528  
    3636PRE_UNINSTALL = :
    3737POST_UNINSTALL = :
     38build_triplet = @build@
     39host_triplet = @host@
     40@BUILD_NO_LIB_FALSE@am__append_1 = -DHAVE_LIBCFA
     41@BUILD_DEBUG_TRUE@am__append_2 = -DHAVE_LIBCFA_DEBUG
     42@BUILD_RELEASE_TRUE@am__append_3 = -DHAVE_LIBCFA_RELEASE
    3843bin_PROGRAMS = cfa$(EXEEXT)
    3944cc1lib_PROGRAMS = cc1$(EXEEXT)
     
    9297BACKEND_CC = @BACKEND_CC@
    9398CC = @CC@
     99CCAS = @CCAS@
     100CCASDEPMODE = @CCASDEPMODE@
     101CCASFLAGS = @CCASFLAGS@
    94102CCDEPMODE = @CCDEPMODE@
    95103CFA_BACKEND_CC = @CFA_BACKEND_CC@
     
    126134LIBS = @LIBS@
    127135LTLIBOBJS = @LTLIBOBJS@
     136MACHINE_TYPE = @MACHINE_TYPE@
    128137MAINT = @MAINT@
    129138MAKEINFO = @MAKEINFO@
     
    157166am__untar = @am__untar@
    158167bindir = @bindir@
     168build = @build@
    159169build_alias = @build_alias@
     170build_cpu = @build_cpu@
     171build_os = @build_os@
     172build_vendor = @build_vendor@
    160173builddir = @builddir@
    161174datadir = @datadir@
     
    164177dvidir = @dvidir@
    165178exec_prefix = @exec_prefix@
     179host = @host@
    166180host_alias = @host_alias@
     181host_cpu = @host_cpu@
     182host_os = @host_os@
     183host_vendor = @host_vendor@
    167184htmldir = @htmldir@
    168185includedir = @includedir@
     
    190207
    191208# applies to both programs
    192 AM_CXXFLAGS = -Wall
     209AM_CXXFLAGS = -Wall -O2 $(am__append_1) $(am__append_2) \
     210        $(am__append_3)
    193211cfa_SOURCES = cfa.cc
    194212
  • src/driver/cfa.cc

    r5802a4f r66f8528  
    231231        } // if
    232232
    233         string d;
    234         if ( debug ) {
    235                 d = "-d";
    236         } // if
    237 
    238233        // add the CFA include-library paths, which allow direct access to header files without directory qualification
    239 
    240234        args[nargs] = "-I" CFA_INCDIR;
    241235        nargs += 1;
     
    244238                nargs += 1;
    245239        } // if
     240        args[nargs] = "-I" CFA_INCDIR "/concurrency";
     241        nargs += 1;
    246242        args[nargs] = "-I" CFA_INCDIR "/containers";
    247243        nargs += 1;
    248244
     245#ifdef HAVE_LIBCFA
    249246        if ( link ) {
     247                #if ! defined(HAVE_LIBCFA_RELEASE)
     248                        if( !debug ) {
     249                                cerr << "error: Option -nodebug is not available, libcfa was not installed." << endl;
     250                                exit( EXIT_FAILURE );
     251                                }
     252                #endif
     253                #if ! defined(HAVE_LIBCFA_DEBUG)
     254                        if( debug ) {
     255                                cerr << "error: Option -debug is not available, libcfa-d was not installed." << endl;
     256                                exit( EXIT_FAILURE );
     257                                }
     258                #endif
     259
    250260                // include the cfa library in case it's needed
    251261                args[nargs] = "-L" CFA_LIBDIR;
    252262                nargs += 1;
    253                 args[nargs] = "-lcfa";
    254                 nargs += 1;
    255         } // if
     263                if( debug ) {
     264                        args[nargs] = "-lcfa-d";
     265                } else {
     266                        args[nargs] = "-lcfa";
     267                }
     268                nargs += 1;
     269        } // if
     270#endif //HAVE_LIBCFA
    256271
    257272        // add the correct set of flags based on the type of compile this is
Note: See TracChangeset for help on using the changeset viewer.