Release notes:
https://github.com/ispc/ispc/releases/tag/v1.22.0

Signed-off-by: Naveen Saini <[email protected]>
---
 ...01-Fix-return-type-of-lParseOperator.patch | 51 +++++++++++++++++++
 .../ispc/{ispc_1.21.1.bb => ispc_1.22.0.bb}   |  5 +-
 2 files changed, 54 insertions(+), 2 deletions(-)
 create mode 100644 
dynamic-layers/openembedded-layer/recipes-core/ispc/ispc/0001-Fix-return-type-of-lParseOperator.patch
 rename dynamic-layers/openembedded-layer/recipes-core/ispc/{ispc_1.21.1.bb => 
ispc_1.22.0.bb} (95%)

diff --git 
a/dynamic-layers/openembedded-layer/recipes-core/ispc/ispc/0001-Fix-return-type-of-lParseOperator.patch
 
b/dynamic-layers/openembedded-layer/recipes-core/ispc/ispc/0001-Fix-return-type-of-lParseOperator.patch
new file mode 100644
index 00000000..6ef6cba1
--- /dev/null
+++ 
b/dynamic-layers/openembedded-layer/recipes-core/ispc/ispc/0001-Fix-return-type-of-lParseOperator.patch
@@ -0,0 +1,51 @@
+From 1d1b0f4eacb7d3875d7dd53e2df8dfca2031fa3a Mon Sep 17 00:00:00 2001
+From: Aleksei Nurmukhametov <[email protected]>
+Date: Tue, 28 Nov 2023 04:11:44 -0800
+Subject: [PATCH] Fix return type of lParseOperator
+
+When bison is used in -y mode that emulates POSIX Yacc, tokens are
+defined as enums (under YYTOKENTYPE ifdef) or as int via macro
+definitions. Defining return type as yytokentype causes compile error:
+invalid conversion from 'int' to 'yytokentype'. To avoid it, return int
+as we do with lParseInteger and lParseFP.
+
+Upstream-Status: Submitted [https://github.com/ispc/ispc/pull/2709]
+
+Signed-off-by: Aleksei Nurmukhametov <[email protected]>
+Signed-off-by: Naveen Saini <[email protected]>
+---
+ src/lex.ll | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/lex.ll b/src/lex.ll
+index f9e47578..0279831d 100644
+--- a/src/lex.ll
++++ b/src/lex.ll
+@@ -20,6 +20,7 @@ using namespace ispc;
+ static uint64_t lParseBinary(const char *ptr, SourcePos pos, char **endPtr);
+ static int lParseInteger(bool dotdotdot);
+ static int lParseFP();
++static int lParseOperator(const char *ptr);
+ static void lCComment(SourcePos *);
+ static void lCppComment(SourcePos *);
+ static void lNextValidChar(SourcePos *, char const*&);
+@@ -29,7 +30,6 @@ static bool lConsumePragma(YYSTYPE *, SourcePos *);
+ static void lHandleCppHash(SourcePos *);
+ static void lStringConst(YYSTYPE *, SourcePos *);
+ static double lParseHexFloat(const char *ptr);
+-static yytokentype lParseOperator(const char *ptr);
+ extern const char *RegisterDependency(const std::string &fileName);
+ 
+ #define YY_USER_ACTION \
+@@ -1162,7 +1162,7 @@ lParseHexFloat(const char *ptr) {
+ 
+ /** Parse an operator.
+ */
+-static yytokentype
++static int
+ lParseOperator(const char *ptr) {
+     yylval.stringVal = new std::string(ptr);
+     if (m->symbolTable->LookupFunctionTemplate(yytext))
+-- 
+2.37.3
+
diff --git a/dynamic-layers/openembedded-layer/recipes-core/ispc/ispc_1.21.1.bb 
b/dynamic-layers/openembedded-layer/recipes-core/ispc/ispc_1.22.0.bb
similarity index 95%
rename from dynamic-layers/openembedded-layer/recipes-core/ispc/ispc_1.21.1.bb
rename to dynamic-layers/openembedded-layer/recipes-core/ispc/ispc_1.22.0.bb
index 53e88f6e..4b434bb0 100644
--- a/dynamic-layers/openembedded-layer/recipes-core/ispc/ispc_1.21.1.bb
+++ b/dynamic-layers/openembedded-layer/recipes-core/ispc/ispc_1.22.0.bb
@@ -11,14 +11,15 @@ inherit cmake python3native ptest
 
 S = "${WORKDIR}/git"
 
-SRC_URI = 
"git://github.com/ispc/ispc.git;protocol=https;branch=releases/1.21.x \
+SRC_URI = "git://github.com/ispc/ispc.git;protocol=https;branch=main \
            file://0002-cmake-don-t-build-for-32-bit-targets.patch \
            file://0001-Fix-QA-Issues.patch \
            
file://0001-Add-print-function-to-print-test-run-status-in-ptest.patch \
+           file://0001-Fix-return-type-of-lParseOperator.patch \
            file://run-ptest \
            "
 
-SRCREV = "a0e8e48169f35a129941475c7023920e968dbc31"
+SRCREV = "bd2c42d42e0cc3da1baf92160b82d4dc820a02ee"
 
 COMPATIBLE_HOST = '(x86_64).*-linux'
 
-- 
2.37.3

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8173): 
https://lists.yoctoproject.org/g/meta-intel/message/8173
Mute This Topic: https://lists.yoctoproject.org/mt/102887167/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-intel/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to