Changeset 3f0c6a5 for src/driver


Ignore:
Timestamp:
Oct 28, 2016, 1:40:31 PM (7 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, with_gc
Children:
066d77a
Parents:
77971f6 (diff), 47a8d17 (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/Parser/parser.cc
src/Parser/parser.yy

Location:
src/driver
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/driver/Makefile.am

    r77971f6 r3f0c6a5  
    66## file "LICENCE" distributed with Cforall.
    77##
    8 ## Makefile.am -- 
     8## Makefile.am --
    99##
    1010## Author           : Peter A. Buhr
     
    2626cc1_SOURCES = cc1.cc
    2727
     28cfa.cc : ${abs_top_srcdir}/version
     29        @true
     30
    2831MAINTAINERCLEANFILES = @CFA_PREFIX@/bin/${bin_PROGRAMS} @CFA_PREFIX@/lib/${cc1lib_PROGRAMS}
  • src/driver/Makefile.in

    r77971f6 r3f0c6a5  
    100100CFA_PREFIX = @CFA_PREFIX@
    101101CFLAGS = @CFLAGS@
     102CONFIG_STATUS_DEPENDENCIES = @CONFIG_STATUS_DEPENDENCIES@
    102103CPP = @CPP@
    103104CPPFLAGS = @CPPFLAGS@
     
    542543
    543544
     545cfa.cc : ${abs_top_srcdir}/version
     546        @true
     547
    544548# Tell versions [3.59,3.63) of GNU make to not export all variables.
    545549# Otherwise a system limit (for SysV at least) may be exceeded.
  • src/driver/cfa.cc

    r77971f6 r3f0c6a5  
    1010// Created On       : Tue Aug 20 13:44:49 2002
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat Aug  6 16:14:55 2016
    13 // Update Count     : 148
     12// Last Modified On : Tue Oct 25 21:29:48 2016
     13// Update Count     : 152
    1414//
    1515
     
    2525using std::endl;
    2626using std::string;
     27using std::to_string;
    2728
    2829
     
    5051
    5152int main( int argc, char *argv[] ) {
    52         string Version( VERSION );                                                      // current version number from CONFIG
    53         string Major( "0" ), Minor( "0" ), Patch( "0" );        // default version numbers
    54 
    55         int posn1 = Version.find( "." );                                        // find the divider between major and minor version numbers
    56         if ( posn1 == -1 ) {                                                            // not there ?
    57                 Major = Version;
    58         } else {
    59                 Major = Version.substr( 0, posn1 );
    60                 int posn2 = Version.find( ".", posn1 + 1 );             // find the divider between minor and patch numbers
    61                 if ( posn2 == -1 ) {                                                    // not there ?
    62                         Minor = Version.substr( posn1 );
    63                 } else {
    64                         Minor = Version.substr( posn1 + 1, posn2 - posn1 - 1 );
    65                         Patch = Version.substr( posn2 + 1 );
    66                 } // if
    67         } // if
     53        string Version( CFA_VERSION_LONG );                                                     // current version number from CONFIG
     54        string Major( to_string( CFA_VERSION_MAJOR ) ), Minor( to_string( CFA_VERSION_MINOR ) ), Patch( to_string( CFA_VERSION_PATCH ) );
    6855
    6956        string installincdir( CFA_INCDIR );                                     // fixed location of include files
     
    268255        // add the correct set of flags based on the type of compile this is
    269256
    270         args[nargs] = ( *new string( string("-D__CFA__=") + Major ) ).c_str();
     257        args[nargs] = ( *new string( string("-D__CFA_MAJOR__=") + Major ) ).c_str();
    271258        nargs += 1;
    272259        args[nargs] = ( *new string( string("-D__CFA_MINOR__=") + Minor ) ).c_str();
    273260        nargs += 1;
    274         args[nargs] = ( *new string( string("-D__CFA_PATCHLEVEL__=") + Patch ) ).c_str();
     261        args[nargs] = ( *new string( string("-D__CFA_PATCH__=") + Patch ) ).c_str();
    275262        nargs += 1;
    276263        args[nargs] = "-D__CFA__";
Note: See TracChangeset for help on using the changeset viewer.