Control: tags -1 patch fixed-upstream On Sun, 21 Jan 2018 08:01:04 +0200 Adrian Bunk <b...@debian.org> wrote: > Source: cxref > ... > /usr/include/x86_64-linux-gnu/bits/mathcalls-helper-functions.h:21: cxref: > syntax error, unexpected IDENTIFIER, expecting ')' > ... > -1 | 258 : IDENTIFIER : _Float128
It seems that this was fixed upstream in revision 663: https://www.gedanken.org.uk/viewvc/cxref?view=revision&revision=663 Patch with DEP-3 metadata attached. Regards, Juhani
Description: Add support for extended floating point formats (e.g. _Float128). Author: Andrew M. Bishop Origin: http://www.gedanken.org.uk/viewvc/cxref?view=revision&revision=663 Bug-Debian: https://bugs.debian.org/887866 Last-Update: 2018-01-26 --- a/src/parse.l +++ b/src/parse.l @@ -24,7 +24,7 @@ ******************/ /****************** Written by Andrew M. Bishop - This file Copyright 1995-2011, 2014 Andrew M. Bishop + This file Copyright 1995-2011, 2014, 2017 Andrew M. Bishop It may be distributed under the GNU Public License, version 2, or any higher version. See section COPYING of the GNU Public license for conditions under which this file may be redistributed. @@ -319,6 +319,12 @@ "_Complex" { } "_Bool" { yylval="_Bool"; return(BOOL); } + /* ISO/IEC TS 18661-3:2015 */ + +"_Float128" { yylval="_Float128"; return(FLOAT_EXTENSION); } +"_Float80" { yylval="_Float80" ; return(FLOAT_EXTENSION); } +"_Float64x" { yylval="_Float64x"; return(FLOAT_EXTENSION); } + /* C language keywords. */ "auto" { yylval="auto" ; return(AUTO); } --- a/src/parse.y +++ b/src/parse.y @@ -152,7 +152,7 @@ %token LEFT_SHIFT RIGHT_SHIFT %token SIZEOF %token TYPEDEF EXTERN STATIC AUTO REGISTER CONST VOLATILE VOID INLINE -%token CHAR SHORT INT LONG SIGNED UNSIGNED FLOAT DOUBLE BOOL +%token CHAR SHORT INT LONG SIGNED UNSIGNED FLOAT DOUBLE BOOL FLOAT_EXTENSION %token STRUCT UNION ENUM %token CASE DEFAULT IF ELSE SWITCH WHILE DO FOR GOTO CONTINUE BREAK RETURN %token ASM @@ -448,6 +448,7 @@ floating_type_specifier : FLOAT | DOUBLE + | FLOAT_EXTENSION | DOUBLE LONG { $$=ConcatStrings(3,$1," ",$2); } | LONG DOUBLE @@ -1424,7 +1425,7 @@ last_yyl==GOTO || last_yyl==CHAR || last_yyl==SHORT || last_yyl==INT || last_yyl==LONG || last_yyl==SIGNED || last_yyl==UNSIGNED || - last_yyl==FLOAT || last_yyl==DOUBLE || + last_yyl==FLOAT || last_yyl==DOUBLE || last_yyl==FLOAT_EXTENSION || last_yyl==BOOL) yyl=IDENTIFIER;