Changes in src/Parser/parser.yy [aa122e9:09f34a84]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
raa122e9 r09f34a84 58 58 59 59 // lex uses __null in a boolean context, it's fine. 60 //#pragma GCC diagnostic ignored "-Wparentheses-equality" 60 #pragma GCC diagnostic ignored "-Wpragmas" 61 #pragma GCC diagnostic ignored "-Wparentheses-equality" 62 #pragma GCC diagnostic warning "-Wpragmas" 61 63 62 64 extern DeclarationNode * parseTree; … … 293 295 %token TYPEDEF 294 296 %token EXTERN STATIC AUTO REGISTER 295 %token THREADLOCAL //C11297 %token THREADLOCALGCC THREADLOCALC11 // GCC, C11 296 298 %token INLINE FORTRAN // C99, extension ISO/IEC 9899:1999 Section J.5.9(1) 297 299 %token NORETURN // C11 … … 1345 1347 { 1346 1348 if ( $2 == OperKinds::LThan || $2 == OperKinds::LEThan ) { SemanticError( yylloc, MISSING_ANON_FIELD ); $$ = nullptr; } 1347 else { SemanticError( yylloc, MISSING_HIGH ); $$ = nullptr; } 1349 else { SemanticError( yylloc, MISSING_HIGH ); $$ = nullptr; } 1348 1350 } 1349 1351 | comma_expression updowneq comma_expression '~' comma_expression // CFA, anonymous loop-index … … 1357 1359 { 1358 1360 if ( $2 == OperKinds::LThan || $2 == OperKinds::LEThan ) { SemanticError( yylloc, MISSING_ANON_FIELD ); $$ = nullptr; } 1359 else { SemanticError( yylloc, MISSING_HIGH ); $$ = nullptr; } 1361 else { SemanticError( yylloc, MISSING_HIGH ); $$ = nullptr; } 1360 1362 } 1361 1363 | comma_expression updowneq comma_expression '~' '@' // CFA, error … … 2082 2084 | REGISTER 2083 2085 { $$ = DeclarationNode::newStorageClass( Type::Register ); } 2084 | THREADLOCAL // C11 2085 { $$ = DeclarationNode::newStorageClass( Type::Threadlocal ); } 2086 | THREADLOCALGCC // GCC 2087 { $$ = DeclarationNode::newStorageClass( Type::ThreadlocalGcc ); } 2088 | THREADLOCALC11 // C11 2089 { $$ = DeclarationNode::newStorageClass( Type::ThreadlocalC11 ); } 2086 2090 // Put function specifiers here to simplify parsing rules, but separate them semantically. 2087 2091 | INLINE // C99
Note:
See TracChangeset
for help on using the changeset viewer.