@@ -459,36 +459,31 @@ void ansi_c_scanner_init()
459459 return make_identifier ();
460460 }
461461
462- " _Float16" { // clang doesn't have it
463- if (PARSER.mode ==configt::ansi_ct::flavourt::GCC)
462+ " _Float16" { if (PARSER.ts_18661_3_Floatn_types )
464463 { loc (); return TOK_GCC_FLOAT16; }
465464 else
466465 return make_identifier ();
467466 }
468467
469- " _Float32" { // clang doesn't have it
470- if (PARSER.mode ==configt::ansi_ct::flavourt::GCC)
468+ " _Float32" { if (PARSER.ts_18661_3_Floatn_types )
471469 { loc (); return TOK_GCC_FLOAT32; }
472470 else
473471 return make_identifier ();
474472 }
475473
476- " _Float32x" { // clang doesn't have it
477- if (PARSER.mode ==configt::ansi_ct::flavourt::GCC)
474+ " _Float32x" { if (PARSER.ts_18661_3_Floatn_types )
478475 { loc (); return TOK_GCC_FLOAT32X; }
479476 else
480477 return make_identifier ();
481478 }
482479
483- " _Float64" { // clang doesn't have it
484- if (PARSER.mode ==configt::ansi_ct::flavourt::GCC)
480+ " _Float64" { if (PARSER.ts_18661_3_Floatn_types )
485481 { loc (); return TOK_GCC_FLOAT64; }
486482 else
487483 return make_identifier ();
488484 }
489485
490- " _Float64x" { // clang doesn't have it
491- if (PARSER.mode ==configt::ansi_ct::flavourt::GCC)
486+ " _Float64x" { if (PARSER.ts_18661_3_Floatn_types )
492487 { loc (); return TOK_GCC_FLOAT64X; }
493488 else
494489 return make_identifier ();
@@ -501,16 +496,20 @@ void ansi_c_scanner_init()
501496 return make_identifier ();
502497 }
503498
504- " __float128" |
505- " _Float128" { // clang doesn't have it
499+ " __float128" { // clang doesn't have it
506500 if (PARSER.mode ==configt::ansi_ct::flavourt::GCC)
507501 { loc (); return TOK_GCC_FLOAT128; }
508502 else
509503 return make_identifier ();
510504 }
511505
512- " _Float128x" { // clang doesn't have it
513- if (PARSER.mode ==configt::ansi_ct::flavourt::GCC)
506+ " _Float128" { if (PARSER.ts_18661_3_Floatn_types )
507+ { loc (); return TOK_GCC_FLOAT128; }
508+ else
509+ return make_identifier ();
510+ }
511+
512+ " _Float128x" { if (PARSER.ts_18661_3_Floatn_types )
514513 { loc (); return TOK_GCC_FLOAT128X; }
515514 else
516515 return make_identifier ();
0 commit comments