Changes in src/Parser/parser.yy [09f34a84:aa122e9]
- File:
-
- 1 edited
-
src/Parser/parser.yy (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/parser.yy
r09f34a84 raa122e9 58 58 59 59 // 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" 63 61 64 62 extern DeclarationNode * parseTree; … … 295 293 %token TYPEDEF 296 294 %token EXTERN STATIC AUTO REGISTER 297 %token THREADLOCAL GCC THREADLOCALC11 // GCC,C11295 %token THREADLOCAL // C11 298 296 %token INLINE FORTRAN // C99, extension ISO/IEC 9899:1999 Section J.5.9(1) 299 297 %token NORETURN // C11 … … 1347 1345 { 1348 1346 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; } 1350 1348 } 1351 1349 | comma_expression updowneq comma_expression '~' comma_expression // CFA, anonymous loop-index … … 1359 1357 { 1360 1358 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; } 1362 1360 } 1363 1361 | comma_expression updowneq comma_expression '~' '@' // CFA, error … … 2084 2082 | REGISTER 2085 2083 { $$ = 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 ); } 2090 2086 // Put function specifiers here to simplify parsing rules, but separate them semantically. 2091 2087 | INLINE // C99
Note:
See TracChangeset
for help on using the changeset viewer.