pkgsrc/devel/bison/patches/patch-data_glr.c
rumko 911565911a devel/bison: resulting glr.c contains incorrect attribute order
For yyFail and yyMemoryExhausted, the ordering of _Noreturn is
incorrect on at least fbsd with clang.

Runtime issue, PKGREVISION bumped.

Ok@ joerg
2015-01-16 19:34:44 +00:00

25 lines
710 B
C

$NetBSD: patch-data_glr.c,v 1.1 2015/01/16 19:34:44 rumko Exp $
Fixes "error: an attribute list cannot appear here" on fbsd
under clang
--- data/glr.c.orig 2013-11-14 15:01:22.000000000 +0000
+++ data/glr.c
@@ -669,7 +669,7 @@ struct yyGLRStack {
static void yyexpandGLRStack (yyGLRStack* yystackp);
#endif
-static _Noreturn void
+_Noreturn static void
yyFail (yyGLRStack* yystackp]b4_pure_formals[, const char* yymsg)
{
if (yymsg != YY_NULLPTR)
@@ -677,7 +677,7 @@ yyFail (yyGLRStack* yystackp]b4_pure_for
YYLONGJMP (yystackp->yyexception_buffer, 1);
}
-static _Noreturn void
+_Noreturn static void
yyMemoryExhausted (yyGLRStack* yystackp)
{
YYLONGJMP (yystackp->yyexception_buffer, 2);