Changeset de62360d for src/driver


Ignore:
Timestamp:
Jun 24, 2015, 4:04:19 PM (9 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
Children:
94e0864d
Parents:
a1d5d2a
Message:

fix computed goto, fixed -std=, implicit typedefs for enum and aggregates, add _Noreturn _Thread_local

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/driver/cfa.cc

    ra1d5d2a rde62360d  
    1010// Created On       : Tue Aug 20 13:44:49 2002
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Sat May 30 10:15:00 2015
    13 // Update Count     : 116
     12// Last Modified On : Tue Jun 23 17:47:03 2015
     13// Update Count     : 119
    1414//
    1515
     
    8585        bool CFA_flag = false;                                                          // -CFA flag
    8686        bool cpp_flag = false;                                                          // -E or -M flag, preprocessor only
     87        bool std_flag = false;                                                          // -std= flag
    8788        bool debugging = false;                                                         // -g flag
    8889
     
    152153                                } // if
    153154
    154                                 // C++ specific arguments
     155                                // C specific arguments
    155156
    156157                        } else if ( arg == "-v" ) {
     
    160161                        } else if ( arg == "-g" ) {
    161162                                debugging = true;                                               // symbolic debugging required
     163                                args[nargs] = argv[i];                                  // pass the argument along
     164                                nargs += 1;
     165                        } else if ( prefix( arg, "-std=" ) ) {
     166                                std_flag = true;                                                // std=XX provided
    162167                                args[nargs] = argv[i];                                  // pass the argument along
    163168                                nargs += 1;
     
    296301                args[nargs] = "-Wno-deprecated";
    297302                nargs += 1;
    298                 args[nargs] = "-std=c99";
    299                 nargs += 1;
     303                if ( ! std_flag ) {                                                             // default c99, if none specified
     304                        args[nargs] = "-std=c99";
     305                        nargs += 1;
     306                } // if
    300307                args[nargs] = ( *new string( string("-B") + Bprefix + "/" ) ).c_str();
    301308                nargs += 1;
Note: See TracChangeset for help on using the changeset viewer.