Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parser/parser.yy

    r09f34a84 raa122e9  
    5858
    5959// lex uses __null in a boolean context, it's fine.
    60 #pragma GCC diagnostic ignored "-Wpragmas"
    61 #pragma GCC diagnostic ignored "-Wparentheses-equality"
    62 #pragma GCC diagnostic warning "-Wpragmas"
     60//#pragma GCC diagnostic ignored "-Wparentheses-equality"
    6361
    6462extern DeclarationNode * parseTree;
     
    295293%token TYPEDEF
    296294%token EXTERN STATIC AUTO REGISTER
    297 %token THREADLOCALGCC THREADLOCALC11                                            // GCC, C11
     295%token THREADLOCAL                                                                              // C11
    298296%token INLINE FORTRAN                                                                   // C99, extension ISO/IEC 9899:1999 Section J.5.9(1)
    299297%token NORETURN                                                                                 // C11
     
    13471345                {
    13481346                        if ( $2 == OperKinds::LThan || $2 == OperKinds::LEThan ) { SemanticError( yylloc, MISSING_ANON_FIELD ); $$ = nullptr; }
    1349                         else { SemanticError( yylloc, MISSING_HIGH ); $$ = nullptr; }
     1347                        else { SemanticError( yylloc, MISSING_HIGH ); $$ = nullptr; } 
    13501348                }
    13511349        | comma_expression updowneq comma_expression '~' comma_expression // CFA, anonymous loop-index
     
    13591357                {
    13601358                        if ( $2 == OperKinds::LThan || $2 == OperKinds::LEThan ) { SemanticError( yylloc, MISSING_ANON_FIELD ); $$ = nullptr; }
    1361                         else { SemanticError( yylloc, MISSING_HIGH ); $$ = nullptr; }
     1359                        else { SemanticError( yylloc, MISSING_HIGH ); $$ = nullptr; } 
    13621360                }
    13631361        | comma_expression updowneq comma_expression '~' '@' // CFA, error
     
    20842082        | REGISTER
    20852083                { $$ = DeclarationNode::newStorageClass( Type::Register ); }
    2086         | THREADLOCALGCC                                                                                // GCC
    2087                 { $$ = DeclarationNode::newStorageClass( Type::ThreadlocalGcc ); }
    2088         | THREADLOCALC11                                                                                // C11
    2089                 { $$ = DeclarationNode::newStorageClass( Type::ThreadlocalC11 ); }
     2084        | THREADLOCAL                                                                           // C11
     2085                { $$ = DeclarationNode::newStorageClass( Type::Threadlocal ); }
    20902086                // Put function specifiers here to simplify parsing rules, but separate them semantically.
    20912087        | INLINE                                                                                        // C99
Note: See TracChangeset for help on using the changeset viewer.